Skip to content

Update /skill to match Anthropic's latest Agent Skills best practices #13

Description

@mike-diff

Goal

Update .claude/skills/skill (the meta-skill that authors other skills) to incorporate Anthropic's latest Agent Skills best practices, so skills produced by /skill reflect current official guidance.

Source of truth

Consume the entire document before making any changes:
https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices

Fetch the full page (it is long — read all of it, not just the headings). Treat this Anthropic doc as authoritative where it conflicts with the existing skill's internal guidance.

What to do

  1. Read the whole Anthropic best-practices doc. If the page is large, cache it under .context/mcp-cache/ per the repo's MCP-caching rule so it survives context pressure.
  2. Audit the current skill against the doc. The relevant files:
    • .claude/skills/skill/SKILL.md (the router)
    • .claude/skills/skill/references/agent-skills-spec.md
    • .claude/skills/skill/references/prompting-guide.md
    • .claude/skills/skill/references/skill-templates.md
    • .claude/skills/skill/assets/*.md (the templates /skill emits)
    • .claude/skills/skill/scripts/validate-skill.sh
  3. Produce a gap analysis (include it in the PR body / wrapup): a table of Best practice from the docCurrent state in the skillGap / change. Cite the doc for each row.
  4. Apply the improvements to the skill files. Likely areas (verify against the doc, do not assume): description-writing guidance and the "Use when…" trigger pattern, progressive-disclosure / file-reference rules, naming conventions, when to use scripts/ vs references/ vs assets/, frontmatter fields, evaluation/testing guidance, and anything the doc covers that the skill currently omits.
  5. Keep the skill's own rules consistent with the templates it emits and the validate-skill.sh checks — if a rule changes, update the validator and templates to match.

Acceptance criteria

  • The Anthropic best-practices doc has been read in full and is cited in the gap analysis
  • A gap-analysis table (best practice → current state → change) appears in the PR body
  • .claude/skills/skill/SKILL.md and its references/ reflect the doc's current guidance
  • Templates in assets/ and the validate-skill.sh checks remain consistent with the updated rules
  • bash scripts/sync-plugin.sh exits 0 with no warning (plugin copy regenerated)
  • bash .claude/skills/skill/scripts/validate-skill.sh .claude/skills/skill passes
  • Any other skill validated by the script still passes (no rule change breaks existing skills)

Scope boundaries

  • Improve only .claude/skills/skill and its bundled files. Do not refactor other skills, agents, or unrelated repo files.
  • Do not restructure the skill wholesale — make targeted, doc-justified changes. Preserve the existing /skill phase flow and the skill-author delegation unless the doc specifically warrants changing it.
  • Do not add new dependencies or tooling.
  • If the doc recommends something that conflicts with this repo's house conventions (e.g. coding-standards.md prompting rules), note the conflict in the gap analysis and prefer the repo convention, flagging it for human review rather than silently overriding.

Execution

This issue is intended to be run by the /dev --unattended workflow: add the dispatch label to trigger it. Unattended mode resolves ambiguity by simplest reasonable interpretation and logs assumptions — the explicit acceptance criteria and scope boundaries above are written to keep that bounded.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dispatchTrigger /dev --unattended via the dispatch workflow

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions