返回技能列表

update-skill-content

pjt222
更新于 2 days ago
5 次查看
17
2
17
在 GitHub 上查看
api

关于

This skill updates an existing SKILL.md file to enhance its accuracy and clarity, focusing on refining procedures, expanding common pitfalls, and synchronizing related skills. It is triggered when documentation references outdated tools, has thin pitfall sections, or contains broken cross-references. The process includes version bumping and is designed for maintenance after receiving feedback that procedures are unclear or incomplete.

快速安装

Claude Code

推荐
主要方式
npx skills add pjt222/agent-almanac -a claude-code
插件命令备选方式
/plugin add https://github.com/pjt222/agent-almanac
Git 克隆备选方式
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/update-skill-content

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

Update Skill Content

Improve existing SKILL.md → refine procedure, expand pitfalls w/ real failure modes, sync Related Skills, bump ver. Use after format passes but content has gaps, stale refs, incomplete procedures.

Use When

  • Procedure refs outdated tools|APIs|vers
  • Pitfalls thin (< 3) or missing real failure modes
  • Related Skills broken refs|missing relevant
  • Procedure lacks concrete code|vague instructions
  • New skill added → existing should cross-ref
  • Feedback → procedures unclear|incomplete

In

  • Required: Path to SKILL.md
  • Optional: Specific section(s) ("procedure", "pitfalls", "related-skills")
  • Optional: Update source (changelog, issue, feedback)
  • Optional: Bump ver (default: yes, minor)

Do

Step 1: Read + Assess

Read entire SKILL.md, eval each section.

Per-section criteria:

  • When to Use: Triggers concrete + actionable? (3-5 items)
  • Inputs: Types, defaults, required|optional clear?
  • Procedure: Each step has concrete code, Expected, On failure?
  • Validation: Checklist objectively testable? (5+)
  • Pitfalls: Specific w/ symptoms + fixes? (3-6)
  • Related Skills: Refs exist? Obvious related missing?

Got: Clear picture of which sections need work, specific gaps ID'd.

If err: Can't read (path err) → verify path. Broken YAML frontmatter → fix first via review-skill-format before content updates.

Step 2: Stale Refs

Scan procedure for ver-specific refs, tool names, URLs, API patterns.

Staleness indicators:

  • Specific vers (v1.24, R 4.3.0, Node 18)
  • URLs maybe moved|expired
  • CLI flags|cmd syntax changed
  • Pkg names renamed|deprecated
  • Config formats evolved
# 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: List of stale refs w/ line nums. Each verified current or flagged.

If err: Too many to check manually → prioritize: procedure code blocks first (most likely runtime fail), then Pitfalls (old workarounds), then info text.

Step 3: Update Procedure

Per step needing improvement:

  1. Verify code blocks exec correctly|reflect best practices
  2. Add missing ctx → explain why
  3. Concrete cmds: real paths, real flags, real out
  4. Update Expected → match current tool behavior
  5. Update On failure → current err msgs + fixes

When updating code, preserve orig structure:

  • Step numbering consistent
  • ### Step N: Title format
  • No reorder unless orig wrong

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

If err: Unsure code still correct → add note <!-- TODO: Verify this command against current version -->. No remove working code → untested replace.

Step 4: Expand Pitfalls

Review Pitfalls, expand if gaps.

Quality:

  • Each: bold name + specific description
  • Description: symptom (what wrong) + fix (avoid|recover)
  • Real failure modes, not hypothetical
  • 3-6 target

Sources for new:

  • Procedure steps w/ complex On failure (likely pitfalls)
  • Related skills warning about same tools|patterns
  • Common user-reported issues

Got: 3-6 pitfalls, each w/ specific symptom + fix. No generic "be careful"|"test thoroughly".

If err: Only 1-2 ID'd → OK for basic. Intermediate|advanced w/ < 3 → author hasn't fully explored failure modes → flag for future.

Step 5: Sync Related Skills

Verify cross-refs valid + add missing.

  1. Per ref'd skill → verify exists:
    # Check if referenced skill exists
    test -d skills/referenced-skill-name && echo "EXISTS" || echo "NOT FOUND"
    
  2. Skills referencing this (should cross-link):
    # Find skills that reference this skill
    grep -rl "skill-name" skills/*/SKILL.md
    
  3. Check obvious related → domain + tags
  4. Format: - \skill-id` — one-line description of relationship`

Got: All ref'd skills exist on disk. Bidirectional refs in place. No orphaned links.

If err: Ref'd doesn't exist → remove ref or note as planned future. Many skills ref this but missing from Related → add 2-3 most relevant.

Step 6: Bump Ver

Update metadata.version per semver:

  • Patch (1.0 → 1.1): Typos, minor clarifications, URL updates
  • Minor (1.0 → 2.0): New procedure steps, significant additions, structural changes
  • Note: Skills use simplified two-part (major.minor)

Update date fields if present.

Got: Ver bumped appropriately. Change magnitude matches scope.

If err: Current ver unparseable → set "1.1" + comment noting history gap.

Check

  • All procedure steps current + executable code|concrete instructions
  • No stale ver refs, URLs, deprecated tool names
  • Every step has Expected: + On failure: blocks
  • Pitfalls 3-6 specific w/ symptoms + fixes
  • All Related Skills refs → existing skills
  • Bidirectional refs for closely related
  • Ver bumped appropriately
  • Line count < 500
  • SKILL.md still passes review-skill-format after changes

Traps

  • Update code w/o testing: Changing cmd w/o verify works → worse than leaving old. Uncertain → add verify comment, not untested replace.
  • Over-expand pitfalls: 10+ dilutes section. Keep 3-6 most impactful → edge cases → references/.
  • Break refs during updates: Renaming|domain change → grep entire library. grep -rl "old-name" skills/ finds all.
  • Forget bump: Every update, no matter small, bump ver. Lets consumers detect changes.
  • Scope creep → refactor: Content updates improve what skill says. Restructuring|extracting → switch to refactor-skill-structure.

  • review-skill-format — Run format validation before content updates
  • refactor-skill-structure — Content updates push > 500 lines → refactor structure for room
  • evolve-skill — Deeper changes beyond content updates (advanced variant)
  • create-skill — Reference canonical format spec for new sections|steps
  • repair-broken-references — Bulk cross-ref repair across library

GitHub 仓库

pjt222/agent-almanac
路径: i18n/caveman-ultra/skills/update-skill-content
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

相关推荐技能

content-collections

Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。

查看技能

polymarket

这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。

查看技能

creating-opencode-plugins

该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。

查看技能

sglang

SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。

查看技能