hashicorp/web-unified-docs/check-code-examples
Claude Code and agent skill by hashicorp/web-unified-docs
- community
Checking that the SKILL.md file is still in the repository.
Validate code examples have summaries, are complete, use realistic values, and follow WAF patterns for Terraform, Packer, and other tools.
Install
npx vskill@latest install hashicorp/web-unified-docs/check-code-examplesSKILL.md
The same SKILL.md was published earlier as hashicorp/web-unified-docs/check-code-examples.
Check Code Examples Skill
Validates code examples against AGENTS.md standards.
Arguments
- file-paths: One or more
.mdxfiles (required) - --fix: Add placeholder summaries where missing (partial auto-fix only)
- --report-only: Report without changes
Rules
1. Code block summaries [AUTO-FIX: Partial]
Each code block needs 1-2 sentences after it explaining what it does, what it produces, and why it matters. Placeholder summaries added by --fix require manual review.
2. Complete examples, not empty templates [MANUAL]
Packer build blocks must have provisioners and post-processors. No empty builds showing only source blocks.
3. Realistic values [MANUAL]
Use data sources for dynamic values instead of hardcoded placeholders:
- Bad:
ami = "ami-12345678" - Good:
ami = data.aws_ami.packer_image.id(with data source that queries by tag)
4. Packer requirements [MANUAL]
Must include: provisioner "file" or provisioner "shell" (copies/installs app), post-processor (docker-tag, manifest), realistic application content.
5. Terraform requirements [MANUAL]
Must include: backend config for state management, data sources for dynamic values, resource tags.
6. Language tags on all code blocks [AUTO-FIX: Partial]
Every ` block must have a language identifier. Auto-detect: resource/data/provider → hcl; vault write/terraform commands → bash.
7. Code examples when valuable [MANUAL]
Required for implementation guides, how-tos, workflow demos. Not required for strategic overviews or high-level concepts.
Output
For each code block: report type detected, issues found with line numbers, auto-fixable flag, and specific fix suggestion. Apply placeholder summaries with Edit tool when --fix used.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcontent/well-architected-framework/docs/.claude/skills/check-code-examples/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hashicorp/web-unified-docs/check-code-examples)