원클릭으로
capability-discovery
Dynamic plugin enumeration and capability mapping with delegation priority and explicit routing announcements
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Dynamic plugin enumeration and capability mapping with delegation priority and explicit routing announcements
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Interactively elicit, capture, and maintain software/system requirements as a living, traceable repository. Use whenever the user wants to gather, write, refine, or organize requirements — including producing or updating an SRS (software/system requirements specification), writing ADRs / architecture decision records, building a requirements traceability graph (DAG), or keeping a decision ledger. Trigger proactively when the working folder already holds requirements artifacts (a `requirements/` folder of YAML, `decisions/` ADRs, an `srs.md`, or `ledger.md`), or when the user shares documents that are clearly specs, RFCs, or feature briefs and wants them structured. Also use for phrases like "let's spec this out", "interview me about what we're building", "capture these requirements", "write a decision record", or "turn these notes into a spec". Not for project management, code review, application code, dependency manifests like requirements.txt, or hardware "system requirements" (RAM/CPU).
Use this skill whenever the user wants to create a bash script that drives an autonomous coding loop — scripts that run Claude Code on a schedule (cron, GitHub Actions, systemd timer) or on-demand to make repository improvements, execute plans, triage issues, or otherwise do agentic work with minimal human intervention. Triggers include phrases like "scout script", "autonomous script", "agent harness", "script that runs on a schedule", "script that implements a plan", ".scripts/*.sh", or any request for a bash script whose body is "run Claude Code with a prompt and commit the results". Always use this skill before writing such a script — it encodes the interview flow, the adversarial-reviewer pattern, and the locking/ledger conventions.
Task structure and atomic commit patterns for granular, verifiable work units
Conflict identification and resolution patterns for requirements, decisions, and plans
Context window management techniques for maintaining efficiency and preventing context bloat
Exploration map management for tracking discussed areas and uncharted territory during DISCUSS phase
| name | capability-discovery |
| description | Dynamic plugin enumeration and capability mapping with delegation priority and explicit routing announcements |
| triggers | ["plugin discovery","capability mapping","agent routing","plugin enumeration","delegation"] |
This skill enables dynamic discovery and mapping of installed plugins to abstract capability categories, allowing the workflow to route tasks to appropriate agents without hardcoding plugin names. It includes explicit delegation announcements so users understand routing decisions.
| Capability | Purpose | Phase | Default Agent |
|---|---|---|---|
requirements-gathering | Structured requirements elicitation | DISCUSS | defaults/interviewer |
brainstorming | Ideation and option exploration | DISCUSS | defaults/interviewer |
codebase-analysis | Understanding existing code | DISCUSS, PLAN | defaults/researcher |
tdd-implementation | Test-driven development | EXECUTE | defaults/executor |
code-implementation | General code writing | EXECUTE | defaults/executor |
infrastructure | DevOps/infra tasks | EXECUTE | defaults/executor |
code-review | Quality validation | VERIFY | validator |
requirements-validation | Requirements compliance | VERIFY | validator |
1. Locate Plugins/ directory
2. List all subdirectories (each is a plugin)
3. For each plugin:
a. Read .claude-plugin/plugin.json for metadata
b. Scan agents/*.md for agent definitions
c. Scan commands/*.md for command definitions
4. Build plugin registry
For each agent/command file, extract the description from YAML frontmatter:
---
name: implementer
description: TDD implementation specialist for .NET. Use to write minimal code that makes tests pass.
model: opus
tools: [Read, Write, Edit, Bash, Grep, Glob]
---
Apply keyword matching to descriptions:
For each plugin agent/command:
1. Tokenize description into words (lowercase)
2. Match against capability keywords
3. Calculate score:
- Exact keyword match: +10 points
- Partial match (word contains keyword): +3 points
- Keyword in first sentence: +5 bonus
- Multiple keywords from same category: +2 each after first
4. Assign to highest-scoring capability
5. Record match confidence (High: 25+, Medium: 15-24, Low: <15)
Scan project root for technology indicators:
| File Pattern | Project Type | Keywords |
|---|---|---|
*.csproj, *.sln | dotnet | .NET, dotnet, C#, csharp |
package.json, *.js, *.ts | node | Node.js, JavaScript, TypeScript |
*.py, requirements.txt | python | Python, pip, pytest |
go.mod, *.go | go | Go, golang |
Cargo.toml, *.rs | rust | Rust, Cargo |
pom.xml, build.gradle | java | Java, Maven, Gradle |
Store capability mappings in the Capabilities Cache section of FLOW.md.
When routing a task to an agent, follow this priority order:
If project is detected (e.g., dotnet), prefer plugins with matching technology keywords in their description.
Detected: dotnet project
Capability needed: tdd-implementation
Matches:
- dotnet-tdd:implementer (description: "TDD for .NET") → Score: 35 + project bonus
- node-tdd:implementer (description: "TDD for Node.js") → Score: 30
Winner: dotnet-tdd:implementer (project type match)
Prefer agents with exact keyword matches over partial matches.
When both an agent and a command match a capability, prefer the agent (more capable).
When no plugin matches the capability, use the appropriate default agent.
CRITICAL: Always announce delegation decisions to the user with reasoning.
**Delegating [capability]** → [plugin-name]:[agent-name]
Matched via keyword scoring:
- Keywords: [matched keywords]
- Score: [score] (High confidence)
- Project type: [type] (matched)
Spawning agent...
**Using built-in agent** for [capability] → flow-workflow:defaults/[agent]
No installed plugin matched this capability.
- Searched: [N] plugins
- Keywords tried: [keywords]
Consider installing: [suggested plugin type]
→ [capability]: [plugin:agent] (keyword match)
→ [capability]: defaults/[agent] (no plugin match)
1. Determine capability needed for current task
2. Look up FLOW.md capability cache
3. If cache stale (>24h) or missing, re-scan plugins
4. If multiple matches for capability:
a. Filter by project type preference
b. Prefer exact keyword matches
c. Prefer agents over commands
5. If single match:
a. Announce delegation with reasoning
b. Return agent reference
6. If no match:
a. Announce using default
b. Return default agent reference
| Phase | Primary Capability | Secondary Capabilities |
|---|---|---|
| DISCUSS | requirements-gathering | brainstorming, codebase-analysis |
| PLAN | (internal coordinator) | codebase-analysis |
| EXECUTE | code-implementation | tdd-implementation, infrastructure |
| VERIFY | code-review | requirements-validation |
When no plugin matches a capability:
| Capability | Default Agent | Location |
|---|---|---|
| requirements-gathering | interviewer | flow-workflow:defaults/interviewer |
| brainstorming | interviewer | flow-workflow:defaults/interviewer |
| codebase-analysis | researcher | flow-workflow:defaults/researcher |
| tdd-implementation | executor | flow-workflow:defaults/executor |
| code-implementation | executor | flow-workflow:defaults/executor |
| infrastructure | executor | flow-workflow:defaults/executor |
| code-review | validator | flow-workflow:validator |
| requirements-validation | validator | flow-workflow:validator |
Re-scan plugins when:
/flow-workflow:start is run on uninitialized project/flow-workflow:status --refreshWhen no plugin matches a capability, log in FLOW.md:
## Capability Warnings
**[TIMESTAMP]**: No plugin found for capability 'infrastructure'
- Searched: 5 plugins
- Keywords tried: infra, devops, pipeline, deploy
- Using: flow-workflow:defaults/executor
- Suggestion: Consider installing a DevOps plugin
See categories.md for detailed capability category definitions.