
feature-fmt-check
by edgeandnode
The tool for building and managing blockchain datasets
SKILL.md
name: feature-fmt-check description: Validate feature doc format against .patterns/feature-docs.md. Use when reviewing PRs, after editing feature docs, or before commits
Feature Format Check Skill
This skill validates that feature documentation format follows the established patterns in .patterns/feature-docs.md.
When to Use This Skill
Use this skill when:
- Reviewing a PR that includes feature doc changes
- After creating or editing a feature doc
- Before committing changes to
docs/features/ - User requests a feature doc format review
Review Process
Step 1: Identify Changed Feature Docs
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$'
Step 2: Validate Each Feature Doc
For each changed feature doc, verify:
- Frontmatter format
- Content structure
- Discovery compatibility
Format Reference
All format requirements are defined in .patterns/feature-docs.md. Read that file for:
- Frontmatter field requirements (
name,description,components) - Description guidelines (third person, "Load when" triggers, no ending period)
- Component prefix rules (
crate:,service:,app:) - Required and optional sections (Summary, Key Concepts, Architecture, Usage, etc.)
- Reference direction rules (references flow UP the hierarchy)
- No empty sections rule
Use the Checklist section in .patterns/feature-docs.md to validate feature docs.
Discovery Validation
Verify frontmatter is extractable:
Primary Method: Use the Grep tool with multiline mode:
- Pattern:
^---\n[\s\S]*?\n--- - Path:
docs/features/<feature-name>.md - multiline:
true - output_mode:
content
Fallback: 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
Validation Process
- Identify changed files:
git diff --name-only HEAD~1 | grep 'docs/features/.*\.md$' - Read the feature doc and Read .patterns/feature-docs.md
- Validate using the checklist in the patterns file
- Report findings using format below
Review Report Format
After validation, provide a structured report listing issues found. Use the checklist from .patterns/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 .patterns/feature-docs.md>
Common Issues
When validation fails, refer to .patterns/feature-docs.md for detailed requirements. Common issues include:
- Invalid frontmatter YAML syntax
namenot in kebab-case or doesn't match filenamedescriptionhas ending period or missing "Load when" triggercomponentsmissing required prefixes (crate:,service:,app:)- Wrong section names (e.g.,
Overviewinstead ofSummary) - Missing required sections or empty optional sections
- References linking downward (violates "flow UP" rule)
Pre-approved Commands
These tools/commands can run without user permission:
- Discovery command (Grep tool or bash fallback) on
docs/features/ - All
git diffandgit statusread-only commands - Reading files via Read tool
Next Steps
After format review:
- If format issues found - List specific fixes needed
- If format passes - Approve for commit
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon