Update skill content

From pjt222/agent-almanac · View interactive version

Update skill content is an AI agent skill from the GitHub repository pjt222/agent-almanac. Update the content of an existing SKILL.md to improve accuracy, completeness, and clarity. Covers version bumping, procedure refinement, pitfall expansion, and related skills synchronization. Use when a skill's procedures reference outdated tools or APIs, the Common Pitfalls section is thin, Related

How to use this skill

Skill file

Update Skill Content

Improve an existing SKILL.md by refining procedure steps, expanding Common Pitfalls with real failure modes, synchronizing the Related Skills section, and bumping the version number. Use this after a skill passes format validation but has content gaps, stale references, or incomplete procedures.

When to Use

Inputs

Procedure

Step 1: Read Current Skill and Assess Content Quality

Read the entire SKILL.md and evaluate each section for completeness and accuracy.

Assessment criteria per section:

Got: A clear picture of which sections need improvement, with specific gaps identified.

If fail: If the skill cannot be read (path error), verify the path. If the SKILL.md has broken YAML frontmatter, fix frontmatter first using review-skill-format before attempting content updates.

Step 2: Check for Stale References

Scan procedure steps for version-specific references, tool names, URLs, and API patterns that may have changed.

Common staleness indicators:

# Check for version-specific references
grep -nE '[vV][0-9]+\.[0-9]+' skills/<skill-name>/SKILL.md

# Check for URLs
grep -nE 'https?://' skills/<skill-name>/SKILL.md

Got: A list of potentially stale references with line numbers. Each reference is verified as current or flagged for update.

If fail: If too many references to check manually, prioritize: procedure code blocks first (most likely to cause runtime failures), then Common Pitfalls (may reference old workarounds), then informational text.

Step 3: Update Procedure Steps for Accuracy

For each procedure step identified as needing improvement:

  1. Verify code blocks still execute correctly or reflect current best practices
  2. Add missing context sentences that explain why the step is needed
  3. Ensure concrete commands use real paths, real flags, and real output
  4. Update Expected blocks to match current tool behavior
  5. Update On failure blocks with current error messages and fixes

When updating code blocks, preserve the original structure:

Got: All procedure steps contain current, executable code. Expected/On failure blocks reflect actual current behavior.

If fail: If unsure whether a code block is still correct, add a note: <!-- TODO: Verify this command against current version -->. Do not remove working code blocks to replace with untested alternatives.

Step 4: Expand Common Pitfalls

Review the Common Pitfalls section and expand if gaps exist.

Quality criteria for pitfalls:

Sources for new pitfalls:

Got: 3-6 pitfalls, each with a specific symptom and fix. No generic pitfalls like "be careful" or "test thoroughly".

If fail: If only 1-2 pitfalls can be identified, that is acceptable for basic-complexity skills. For intermediate and advanced skills, fewer than 3 pitfalls suggests the author has not fully explored failure modes — flag this for future expansion.

Step 5: Synchronize Related Skills Section

Verify all cross-references in the Related Skills section are valid and add any missing links.

  1. For each referenced skill, verify it exists:

```bash

# Check if referenced skill exists

test -d skills/referenced-skill-name && echo "EXISTS" || echo "NOT FOUND"

```

  1. Search for skills that reference this skill (they should be cross-linked):

```bash

# Find skills that reference this skill

grep -rl "skill-name" skills/*/SKILL.md

```

  1. Check for obvious related skills based on domain and tags
  2. Use the format: - \skill-id\ — one-line description of the relationship

Got: All referenced skills exist on disk. Bidirectional cross-references are in place. No orphaned links.

If fail: If a referenced skill does not exist, either remove the reference or note it as a planned future skill with a comment. If many skills reference this one but are not listed in Related Skills, add the most relevant 2-3.

Step 6: Bump Version in Frontmatter

Update the metadata.version field following semantic versioning:

Also update any date fields if present in the frontmatter.

Got: Version is bumped appropriately. The change magnitude matches the update scope.

If fail: If the current version cannot be parsed, set it to "1.1" and add a comment noting the version history gap.

Validation

Pitfalls

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.