一键导入
feature-fmt-check
Validate feature doc format against the specification. Use when reviewing PRs, after editing feature docs, or before commits
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validate feature doc format against the specification. Use when reviewing PRs, after editing feature docs, or before commits
用 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-fmt-check |
| description | Validate feature doc format against the specification. Use when reviewing PRs, after editing feature docs, or before commits |
This skill validates that feature documentation format follows the established patterns in docs/__meta__/feature-docs.md.
Use this skill when:
docs/features/For recent commits:
git diff --name-only HEAD~1 | grep 'docs/features/.*\.md$'
For staged changes:
git diff --cached --name-only | grep 'docs/features/.*\.md$'
For unstaged changes:
git diff --name-only | grep 'docs/features/.*\.md$'
For each changed feature doc, verify:
All format requirements are defined in docs/meta/feature-docs.md. Read that file for:
name, description, components)crate:, service:, app:)Use the Checklist section in docs/__meta__/feature-docs.md to validate feature docs.
Verify frontmatter is extractable:
Primary Method: Use the Grep tool with multiline mode:
^---\n[\s\S]*?\n---docs/features/<feature-name>.mdtruecontentFallback: Bash command:
grep -Pzo '(?s)^---\n.*?\n---' docs/features/<feature-name>.md
Cross-platform alternative (macOS compatible):
awk '/^---$/{p=!p; print; next} p' docs/features/<feature-name>.md
git diff --name-only HEAD~1 | grep 'docs/features/.*\.md$'After validation, provide a structured report listing issues found. Use the checklist from docs/meta/feature-docs.md as the validation criteria.
## Feature Doc Format Review: <filename>
### Issues Found
1. <issue description with line number>
2. <issue description with line number>
### Verdict: PASS/FAIL
<If FAIL, provide specific fixes needed referencing docs/__meta__/feature-docs.md>
When validation fails, refer to docs/meta/feature-docs.md for detailed requirements. Common issues include:
name not in kebab-case or doesn't match filenamedescription has ending period or missing "Load when" triggercomponents missing required prefixes (crate:, service:, app:)Overview instead of Summary)These tools/commands can run without user permission:
docs/features/git diff and git status read-only commandsAfter format review: