skills/documenting/SKILL.md
Maintain SSOT documentation with drift detection. Runs drift_detector.py scan on invoke to identify stale memories. Creates/updates Serena memories with auto-generated INDEX blocks. MUST be suggested after any feature, refactor, or architecture change is verified complete.
npx skillsauth add jaggerxtrm/jaggers-agent-tools documentingInstall 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.
This skill provides workflows and tools for maintaining the Serena Single Source of Truth (SSOT) documentation system/memories.
MANDATORY: Suggest or Use this skill in the following scenarios:
_ssot. Is this a new pattern? Create _pattern. Did I change architecture? Update _ssot."const shouldDocument =
/(document|ssot|memory|metadata|changelog|bump version)/i.test(userMessage) ||
(taskCompleted && (newFeature || refactor || architectureChange));
🚨 MANDATORY FIRST STEP FOR ALL WORKFLOWS:
Before using ANY Serena tools, activate the project:
mcp__plugin_serena_serena__activate_project({ project: "/path/to/current/working/directory" })
python3 "$HOME/.claude/skills/documenting/scripts/drift_detector.py" scan
Review the output. If nothing is stale and no explicit documentation request was made → confirm to user and stop.
| Situation | Action |
|---|---|
| New feature shipped | Create new SSOT memory OR update existing |
| Refactor / architecture change | Update relevant SSOT, bump minor version |
| Bug fix only | CHANGELOG entry only (skip memory update unless behaviour changed) |
| SKILL.md drift flagged | Update skill + run validate_metadata.py on it |
Creating a new memory:
python3 "$HOME/.claude/skills/documenting/scripts/generate_template.py" \
ssot <name>_ssot.md title="..." domain="..." subcategory="..."
Fill [PENDING] placeholders. Add tracks: globs pointing to the files this memory documents.
Updating an existing memory:
<!-- INDEX --> block only — identify which sections need updatingsearch_for_pattern to jump directly to stale sections (avoids reading the full file)version: (patch = content fix, minor = new section, major = full rewrite)updated: timestamp to todaypython3 "$HOME/.claude/skills/documenting/scripts/validate_metadata.py" <memory-file>
This regenerates the <!-- INDEX --> block automatically from the current ## headings.
python3 "$HOME/.claude/skills/documenting/scripts/changelog/add_entry.py" \
<changelog_file> <type> "<summary>"
<changelog_file>: path to target CHANGELOG.md (e.g.CHANGELOG.mdor.serena/memories/CHANGELOG.md)
Types: Added, Changed, Fixed, Removed.
development
Operational service-knowledge system for a project's services. One skill that creates, discovers, activates, updates, and scopes per-service expert skill packages (SKILL.md + diagnostic scripts + references), kept in sync with the code via a GitNexus-aware drift engine. Use when onboarding to a service, routing a task to the right expert, scaffolding a missing skill, or syncing a skill after the implementation drifted. Triggers: /service-skills, /creating-service-skills, /using-service-skills, /updating-service-skills, /scope, or any task that touches a registered service territory.
development
Bootstrap a complete security pipeline (Dependabot + OSV + Semgrep + gitleaks + pre-commit hooks + Codex review) on any GitHub repo. Designed for free user-private repos where GitHub Advanced Security is unavailable. Reusable across Python/TypeScript/Go/Rust stacks.
testing
Merges queued PRs from xt worktree sessions in the correct order (FIFO), maintaining linear history by rebasing remaining PRs after each merge. Use this skill whenever the user has multiple open PRs from xt worktrees, asks to "merge my PRs", "process the PR queue", "drain the queue", "merge worktree branches", or says "what PRs do I have open". Also activate after any xt-end completion when other PRs are already open, or when the user asks "can I merge yet" or "is CI green". Handles the full sequence: list → sort → CI check → merge oldest → rebase cascade → repeat until queue is empty.
testing
Autonomous session close flow for xt worktree sessions. Use this skill whenever the user says "done", "finished", "wrap up", "close session", "ship it", "I'm done", "ready to merge", or similar. Also activate when all beads issues in the session are closed, or when the user explicitly runs /xt-end. This skill is designed for headless/specialist use: it must make deterministic decisions, auto-remediate common anomalies, and avoid clarification questions unless execution is truly blocked.