Skip to content
Skills Library
Programming · Research

context-discovery

/context-discovery

Use when coding standards, security patterns, or project conventions need to be discovered before implementation begins.

Licence
MIT
Last repository change
19.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 19.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when coding standards, security patterns, or project conventions need to be discovered before implementation begins.

Original author description

Use when coding standards, security patterns, or project conventions need to be discovered before implementation begins.

How it works

  1. Overview
  2. The Process
  3. Delegation Pattern
  4. Error Handling
  5. Remember
  6. Related
Original SKILL.md headings · 108 lines, 331 words
SKILL.md preview
---
name: context-discovery
description: Use when coding standards, security patterns, or project conventions need to be discovered before implementation begins.
context: fork
agent: context-scout
---

# Context Discovery

## Overview
Discover project standards and patterns before implementing features. Context-scout resolves the context root using the [OAC Context Discovery Protocol](./context-discovery-protocol.md), then finds and ranks relevant files based on your request.

**Announce at start:** "I'm using the context-discovery skill to find relevant standards for [feature/task]."

## The Process

### Step 1: Invoke Context-Scout

Run the skill with your implementation topic:

```bash
/context-discovery [what you're implementing]
```

**Examples:**
- `/context-discovery JWT authentication`
- `/context-discovery React form validation`
- `/context-discovery database migration workflow`

### Step 2: Load Critical Priority Files

Read EVERY file marked **Critical Priority** (paths returned by context-scout, relative to the resolved context root):

```bash
Read: {context_root}/core/standards/code-quality.md
Read: {context_root}/core/standards/security-patterns.md
```

These are **mandatory**—proceed only after loading.

### Step 3: Load High Priority Files

Read files marked **High Priority**:

```bash
Read: {context_root}/core/workflows/approval-gates.md
```

These are **strongly recommended** for your implementation.

### Step 4: Load Medium Priority (If Needed)

Read **Medium Priority** files for additional context:

```bash
Read: {context_root}/project-intelligence/architecture.md
```

These are **optional but helpful**.

### Step 5: Apply to Implementation

- Follow standards from loaded files
- Apply patterns to your code
- Use naming conventions discovered
- Check workflows before executing

## Delegation Pattern

When invoking subagents, pass discovered context files:

```markdown
Invoke coder-agent:

Task: Implement JWT service

Context to load:
- .opencode/context/core/standards/code-quality.md
- .opencode/context/core/standards/security-patterns.md

Instructions: Follow functional patterns and security best practices.
```

## Error Handling

**"No context files found"**
- Run `/install-context` to download context first

**"Too many files returned"**
- Be more specific (e.g., "TypeScript coding standards" not "coding")

**"Which files do I load?"**
- Always: Critical → High → Medium (if needed)

## Remember

- Context FIRST, code SECOND—never skip discovery
- Critical priority files are MANDATORY, not optional
- Training data is outdated—context is current
- Pass context forward when delegating to subagents
- Only use file paths returned by context-scout

## Related

- task-breakdown
- code-execution
- external-research

---

**Task**: Discover context files for **$ARGUMENTS**

Follow navigation-driven discovery and return ranked recommendations.
Files in this package (2)
  • SKILL.md 3 KB
  • context-discovery-protocol.md 4 KB

Versions

The database has no other skills named context-discovery.

Database snapshot: 13.11.2026 · package version 611c613eec59 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100architect
    Use when requirements exist and a technical design is needed before implementation begins
  • 100learn
    Provides autonomous project pattern learning by analyzing the codebase to discover development conventions, architectural patterns, and coding standards, then generates project rule files in .claude/rules/. Use when user asks to "learn from project", "extract project rules",…
  • 100coding-standard
    Creates and updates coding standards, conventions, rules, and guidelines for the current project. Use when creating new standards from scratch, converting existing documents into coding standards, or updating existing standards. Does not create architectural decision records —…
  • 100implementation-planning
    Use when the user asks to build, add, change, or fix behavior and needs a decision-complete plan grounded in the current codebase.
  • 86project-context
    Auto-triggered skill for project-specific facts, structure, and conventions
  • 100project-conventions
    Guides discovery and application of project-specific conventions including code patterns, naming, structure, and team practices. Use when exploring a codebase or implementing features to match existing patterns.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.