一键导入
feature-discovery
Load relevant feature docs based on user query. Use when user asks about features, functionality, or how things work in the project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Load relevant feature docs based on user query. Use when user asks about features, functionality, or how things work in the project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Validate and lint code after changes. Use after editing Rust/shell script files, when user mentions compilation errors, linting, clippy warnings, shellcheck issues, or before commits/PRs. Ensures all code passes checks and has zero warnings.
Format Rust and shell script code automatically. Use immediately after editing .rs/.sh files or the install script, when user mentions formatting, code style, or before commits/PRs. Ensures consistent code style following project conventions.
Load relevant coding patterns based on user query or work context. Use when asking about coding patterns, standards, or before implementing code.
Validate pattern doc format against the specification. Use when reviewing PRs, after editing pattern docs, or before commits
Review code changes for bugs, pattern violations, security, and quality. Use when reviewing PRs, code changes, or before commits.
Run targeted tests to validate changes. Use filters to target specific tests when needed.
| name | feature-discovery |
| description | Load relevant feature docs based on user query. Use when user asks about features, functionality, or how things work in the project. |
This skill provides dynamic feature documentation discovery for the Project Amp codebase. It enables lazy loading of feature context based on user queries.
Use this skill when:
Feature documentation uses lazy loading via YAML frontmatter:
The discovery command extracts all feature frontmatter for lazy loading.
Primary Method: Use the Grep tool with multiline mode:
^---\n[\s\S]*?\n---docs/features/*.mdtruecontentExtracts YAML frontmatter from all feature docs. Returns feature metadata for matching.
Fallback: Bash command (if Grep tool is unavailable):
grep -Pzo '(?s)^---\n.*?\n---' docs/features/*.md 2>/dev/null | tr '\0' '\n'
Cross-platform alternative (macOS compatible):
awk '/^---$/{p=!p; print; next} p' docs/features/*.md
Use this when: You need to see all available features and their descriptions.
Use the Read tool to load docs/features/<feature-name>.md.
Use this when: You've identified which feature doc is relevant to the user's query.
Run the discovery command (Grep tool primary, bash fallback).
Compare the user's query against:
name field (exact or partial match)description field (semantic match)components field (crate/module names)Read the full content of matched feature docs using the Read tool.
name: "admin-api"name: "jsonl-sql-batch-query"components: "crate:metadata-db"crates/services/worker -> match components: "service:worker"admin-api handlers -> match components: "crate:admin-api"server code -> match components: "service:server"These tools/commands can run without user permission:
docs/features/ - Safe, read-onlyLoad multiple feature docs when:
/code-pattern-discovery skill/code-* skill/code-pattern-discovery skill/feature-validateQuery: "How do I execute SQL queries against datasets?"
jsonl-sql-batch-query with description "Execute one-shot SQL batch queries..."docs/features/jsonl-sql-batch-query.mdQuery: "I need to understand how the server handles requests"
components: "service:server"Query: "I want to add a new query endpoint"
Query: "How does feature X work?" (where X doesn't exist)
/code-pattern-discovery or asking for clarification| Mistake | Why It's Wrong | Do This Instead |
|---|---|---|
| Hardcode feature lists | Lists become stale | Always use dynamic discovery |
| Load all feature docs | Bloats context | Use lazy loading via frontmatter |
| Skip discovery step | Miss relevant features | Match query to metadata first |
| Guess feature names | May not exist | Run discovery command to verify |
After discovering relevant features:
/code-pattern-discovery for implementation details/code-* skills for development