From context-engine
Refresh one or more skills by diffing their current content against what the project actually does today. Pulls from `.context/knowledge/`, live source files, and dependency manifests to keep skills accurate and actionable.
npx claudepluginhub littlelingo/context-engine --plugin context-engine# /update-skill - Update Existing Skills from Project Knowledge Refresh one or more skills by diffing their current content against what the project actually does today. Pulls from `.context/knowledge/`, live source files, and dependency manifests to keep skills accurate and actionable. ## When to Run - After `/learn` accumulates several entries for a domain a skill covers - After a library version upgrade that a skill documents - After conventions drift and the skill no longer reflects reality - Periodically (e.g., after every few features) to keep skills sharp ## $ARGUMENTS Parse the ...
/update-skillUpdate workspace to the latest plugin version — sync artifacts and apply migrations
Share bugs, ideas, or general feedback.
Refresh one or more skills by diffing their current content against what the project actually does today. Pulls from .context/knowledge/, live source files, and dependency manifests to keep skills accurate and actionable.
/learn accumulates several entries for a domain a skill coversParse the invocation:
/update-skill [name] — update a specific skill by directory name (e.g., testing-conventions)/update-skill --stale — scan all skills, identify drift, report, ask which to update/update-skill --all — run --stale check then update every stale skill/update-skill [name]Validate the skill exists at skills/[name]/SKILL.md. If not, stop and list available skills.
Measure baseline: wc -c skills/[name]/SKILL.md and record the byte count.
Diff current state — compare skill content against project reality:
package.json, requirements.txt, Gemfile, or equivalent. Compare installed version against the version the skill documents. Flag if major version differs..context/knowledge/ for entries that belong in this skill's domain — see step 4.Gather new content from knowledge sources:
.context/knowledge/LEARNINGS.md for entries related to this skill's domain.context/knowledge/libraries/ for relevant library knowledge files.context/patterns/CODE_PATTERNS.md and ANTI_PATTERNS.md for patterns that fit this skill's scopeDraft the update:
/init uses (read real project files, fill sections with concrete, greppable examples)skills/[name]/REFERENCE.md and link from SKILL.mdReview pass: Delegate to reviewer agent with:
Reviewer checks:
description frontmatter field still accurately describes what the skill coversApply reviewer-approved changes by writing the updated SKILL.md.
Measure after: wc -c skills/[name]/SKILL.md. Report delta.
Report:
Skill updated: skills/[name]/SKILL.md
Before: [N] bytes | After: [N] bytes | Delta: [+/-N]
Changes:
- Added: [what was added and why]
- Removed: [what was removed and why]
- Unchanged: [what was preserved]
Sources used: [list of .context/ files or source files consulted]
/update-skill --staleEnumerate all skills in skills/*/SKILL.md.
Classify each skill:
For each project-specific skill: run the diff check from step 3 of the single-skill flow (lightweight — just flag mismatches, don't gather full new content yet).
For each library skill: read the relevant manifest (package.json, requirements.txt, Gemfile, pyproject.toml) and compare the installed version to what the skill documents.
Report staleness:
## Skill Staleness Report
| Skill | Type | Status | Drift Details |
|------------------------|-----------------|---------|----------------------------------------|
| testing-conventions | project-specific| STALE | Skill says jest, project uses vitest |
| api-conventions | project-specific| OK | No drift detected |
| postgres | library | STALE | Skill: v14, installed: v16 |
| redis | library | OK | Version matches |
| auth-security | framework | SKIPPED | Framework-level, not project-specific |
Ask: "Which skills would you like to update? List names or say 'all stale'."
Update each confirmed skill using the single-skill flow above.
/update-skill --allRun the --stale scan, then update every skill flagged as STALE without prompting per-skill. Present a combined report at the end.
skills/[name]/REFERENCE.md.$ARGUMENTS