/caddis-extras:golden-nuggetsfrom caddis-extras
Extract durable tribal knowledge ('gold nuggets') from a codebase or changed files and route each to an instruction file, runbook, hub or CI review inbox. Use after a feature, fix, sprint, incident or release.
Ships in caddis-extras. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill defines what counts as a durable nugget, where it belongs, and how to write it without damaging existing docs. The same extraction logic applies in all modes, but the write target changes by mode.
| Mode | Invoked by | Judgement present? | Write target |
|---|---|---|---|
| Pipeline | knowledge-transfer agent at a gated stage | Yes | Live instruction files, runbooks, or the managed hub region |
| Independent | /golden-nuggets prompt | Yes | Live instruction files, runbooks, or the managed hub region |
| Capture (CI) | extract_nuggets.ps1 in release_metadata | No | .github/agent-docs/nuggets-inbox.md only |
Why this split:
*.instructions.md changes future agent behavior.In pipeline and independent modes, follow this order exactly:
If you are about to update the log before any live write has been verified, stop and go back.
Live writes are the primary deliverable outside CI mode. The stage is complete only when one of these is true:
An empty "Live writes" section with no explicit "no durable nugget existed" justification means the stage failed.
Identify the primary language/runtime, frameworks, hosting model, database or storage layer, test framework, CI/CD pipeline, and any unusual infrastructure. Use that to decide which nugget categories are relevant.
Before scanning, list *.instructions.md files in .github/instructions/ and note their applyTo patterns. Extract only what is not already captured.
Categories:
In CI capture mode, do not scan the full codebase. Work only from release-range commit metadata. Consider only feat, fix, perf, and refactor conventional-commit subjects. Ignore chore, docs, style, test, build, and ci.
Each candidate must carry enough metadata for later review:
fingerprint: stable hash from the normalized commit subjectsource: ci-release-captureshape: rule-shaped or project-localsuggested-route: promote-to-pool or keep-localraw: original conventional-commit subjectfrom-commits: one or more short shasCI produces candidates, not conclusions.
Route to the most specific destination before falling back to the hub.
.github/instructions/*.instructions.md for conventions, framework rules, component rules, or scoped patterns.docs/runbooks/ or equivalent for operational procedures.copilot-instructions.md, but only inside the <!-- junai:start --> to <!-- junai:end --> region, and only for genuinely global context.In capture mode, "route" means tagging the candidate with proposed-target and suggested-route. CI still writes only to the inbox.
rule-shaped: generalizable pattern that may deserve promotion to the pool later.project-local: specific to this project's wiring or infrastructure and likely to stay local.Fallback:
Write directly when:
Stop and ask before writing when:
Never:
After every live write, verify it landed.
Append each candidate to .github/agent-docs/nuggets-inbox.md. Do not touch live instruction files, runbooks, or the hub.
Inbox entry format:
## CANDIDATE {iso-date} - {release-version}
- fingerprint: {stable fingerprint derived from normalized commit subject}
- source: ci-release-capture
- shape: rule-shaped | project-local
- category: {category}
- suggested-route: keep-local | promote-to-pool
- proposed-target: {path/to/file.instructions.md | runbook | hub}
- from-commits: {sha7}, {sha7}
- raw: {original conventional-commit subject}
- nugget: {one-paragraph durable lesson, in the agent's words}
- status: pending
Only after live writes are verified, prepend to docs/gold-nuggets-log.md:
## Gold Nuggets Session - {date}
### Added
- {destination file} -> {section} -> {one-line summary}
### Conflicts flagged
- {what file said} vs {what code shows} - {resolution}
- None
### Skipped (nothing new)
- {category}
> Review/archive once verified.
The log records writes that happened. Capture mode does not write the log.
>= 15, append nothing and emit inbox full - review pending.from-commits.The inbox should trend toward empty rather than growing forever.
/golden-nuggets Full extraction, all categories, write live
/golden-nuggets chat widget Focus one area
/golden-nuggets ops Operational procedures / runbooks only
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub saajunaid/caddis-plugin --plugin caddis-extras81 skills in this plugin
/adopt-rbacPointer to the org's RBAC adoption skill. Use for "add RBAC to this app" or "adopt rbac-kit"./agent-md-refactorRefactor bloated agent instruction files (AGENTS.md, .cursorrules, .github/ files) into linked, progressively disclosed docs./agent-orchestrationBlueprint for orchestrating the agent pipeline from spec to planning, implementation, testing and debugging, plus when a second model is worth it, the intent→model map and cost guardrails./algorithmic-artGenerative and algorithmic art with p5.js: flow fields, particle systems, animations, WebGL, audio-reactive visuals; exports HTML, PNG, GIF, MP4, SVG. Use for creative coding or any p5.js visual./anchor-reviewSingle-model adversarial review technique — 3-lens analysis with confidence scoring and self-challenge/api-client-patternsTyped client-side API consumption: fetch wrappers, zod validation, auth injection, TanStack Query (useQuery, useMutation, optimistic updates), tRPC, OpenAPI codegen, pagination. Use when consuming REST or tRPC APIs.