skills/tag-resources/SKILL.md
Scan, validate, and auto-tag global OpenCode resources (skills, agents, rules, archetypes) for resource_tags filtering. Used by /init-project, config maintenance, and by stack-recommender for accurate mapping.
npx skillsauth add Thomashighbaugh/opencode tag-resourcesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Scans all global OpenCode resources — skills, agents, rules, and archetypes — and validates or suggests tag metadata for resource_tags-based filtering.
stack-recommender to ensure accurate mappingresource_tags filtering and resources are missing from resultsCheck every resource for its tags frontmatter:
Skills: ~/.config/opencode/skills/*/SKILL.md
Agents: ~/.config/opencode/agents/*.md
Rules: ~/.config/opencode/rules/*.md
Archetypes: ~/.config/opencode/archetypes/*/manifest.json
| Status | Criteria | |------------------|-----------------------------------------------| | ✅ Tagged | Has valid tags frontmatter with ≥2 tags | | ⚠️ Minimal tags | Has tags but only 1 tag (needs at least 2) | | ❌ Untagged | No tags field in frontmatter | | 🔧 Needs review | Tags exist but are non-standard or misspelled |
For each untagged resource, infer appropriate tags from its content:
resource_tags it would generate## Tag Audit Report
### Summary
- ✅ 72/95 skills tagged
- ⚠️ 12 skills with minimal tags (need at least 2)
- ❌ 8 skills untagged → suggest tags below
- ❌ 3 agents untagged
- ✅ All 14 rules tagged
### Missing Tags for [skill-name]
Suggested: `[typescript, api, conventions]`
Based on: Skill covers TypeScript API design patterns and naming conventions.
### Untagged Resources
| Resource | Type | Suggested Tags |
|----------|------|---------------|
| my-skill | skill | [typescript, react, testing] |
| my-agent | agent | [testing, playwright, e2e] |
| my-rule | rule | [conventions, python, django] |
Before modifying any file, present the proposed changes and confirm:
Apply by editing the frontmatter of each untagged resource.
See ~/.config/opencode/rules/resource-tags.md for the complete tag vocabulary and conventions.
Before stack-recommender runs, tag-resources can run to ensure complete coverage:
init-project detect → tag-resources (if needed) → stack-recommender → project-config-composer
# Run as standalone to audit
/harvest-context rule # or direct invocation of tag-resources skill
CI or post-commit hooks can run tag-resources to flag new untagged resources:
tools
Create valid, type-safe TypeScript tools for OpenCode — generates correct boilerplate, typed interfaces, and handler stubs. Use when building new tools for global config or per-project .opencode/tools/.
testing
Explore multiple solution branches in parallel, evaluate each, and recommend the best path. Use when the user explicitly invokes /ideation tree-of-thoughts or asks for "tree of thought" / "branching exploration".
testing
Run multiple independent reasoning passes and find consensus. Use when the decision is critically important, the stakes are high, or the user explicitly requests "run it multiple times" / "check consistency" / "self-consistency".
testing
Optimization by PROmpting — generate candidate prompt variations, test each against a benchmark, and report the best performer. Use when the user invokes /ideation opro or asks for "prompt optimization" / "OPRO".