Skip to content
Back to skills

Curate Project Context

ASecurity

Curates a project's public and private agent context. Use when checking context health, reorganizing accumulated guidance, repairing AGENTS.md or CLAUDE.md drift, finding stale, duplicated, misplaced or unreachable knowledge, or checking the public/private boundary.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 9, 2026
ai-agentsgo

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 9, 2026

npx -y skills add arminzou/dotbrain --skill curate-project-context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Curate Project Context?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Curate Project Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/arminzou-curate-project-context/badge)](https://www.skillsdirectory.com/skills/arminzou-curate-project-context)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: curate-project-context
description: Curates a project's public and private agent context. Use when checking context health, reorganizing accumulated guidance, repairing AGENTS.md or CLAUDE.md drift, finding stale, duplicated, misplaced or unreachable knowledge, or checking the public/private boundary.
---

# Curate Project Context

Keep the context system of a project coherent as it grows. Inspect public repository context,
private Brain knowledge, and the pointers between them; identify maintainability problems; then
apply only the repairs the user authorizes.

This skill has two modes:

- **Check** is the default. Diagnose and report without changing files.
- **Fix** applies findings the user explicitly asks to repair. An explicit request to organize,
  maintain, or fix the context authorizes repairs within the named project, but not lifecycle work
  owned by another skill.

## Scope limits

Fix mode writes files, so these bound what it may change:

- **Relocate settled facts, never adjudicate one.** A contested term or an unmade decision goes to
  `grill-decisions`; moving a fact is in scope, deciding it is not.
- **Report wiring, do not repair it.** `dotbrain doctor` supplies the mechanical baseline and
  `wire-brain` fixes it; use their evidence and route the repair.
- **Never touch another document's lifecycle.** Design closure and residue promotion are
  `close-design`'s; Beads state is `manage-work-graph`'s.
- **Credentials belong in the configured secret store**, never in public or private context files.

`write-agent-docs` supplies the writing discipline for pointers, hierarchy, completion criteria, and
pruning. Apply it when revising prose.

## Authority map

Classify each piece of project knowledge by its durable authority:

| Information | Authority |
|---|---|
| Public project purpose, commands, conventions, and hazards | Public `AGENTS.md` or a public document it points to |
| Private operating rules and tracker conventions | `.brain/AGENTS.md` |
| Domain vocabulary | `.brain/CONTEXT.md` |
| Durable decisions and rationale | `.brain/adr/` |
| Initiative-specific working design | `.brain/designs/` |
| Execution status and work notes | Beads |
| Supporting explanation | A public or private referenced document chosen by sensitivity |

The repo-root and private `AGENTS.md` files are canonical at their level. Each sibling `CLAUDE.md`
is a relative symlink to `AGENTS.md`. Public context may point to `.brain/AGENTS.md`, but must remain
useful when the Brain is absent and must not expose private Brain content. Public rationale stands
on its own; other Brain paths, ADR numbers, private-record identifiers, and tracker state stay in
the Brain.

## Check

### 1. Inventory the context surface

Read the nearest project instructions, then enumerate relevant public and private `AGENTS.md` and
`CLAUDE.md` files. If the project is wired, also inspect `.brain/DOTBRAIN.md`, `.brain/AGENTS.md`,
`.brain/CONTEXT.md`, `.brain/project.yaml`, ADR and design indexes or frontmatter, and documents
reached by context pointers. Load full ADRs, designs, or supporting docs only when a finding requires
their content.

Run `dotbrain doctor` when available to establish the mechanical baseline. Report its wiring
findings separately from content-maintainability findings.

Completion: every context surface and pointer relevant to the project has a known location,
visibility, authority, and mechanical state.

### 2. Test topology and boundaries

Check that pointers resolve, required material is reachable under the condition that needs it, and
`CLAUDE.md` symlinks resolve to the canonical sibling `AGENTS.md`. Verify that public context still
works without `.brain/` and contains no private Brain material beyond the permitted optional
pointer.

Completion: every broken link, weak pointer, invalid canonical relationship, and public/private
boundary violation is identified with its exact path and evidence.

### 3. Test authority and maintainability

Apply the authority map and `write-agent-docs` principles. Look for:

- the same meaning maintained by more than one authority;
- conflicting instructions or vocabulary across levels;
- stale guidance contradicted by the repository, configuration, or current Brain canon;
- easy environment lookups cached in prose without a useful convention, rationale, or hazard;
- knowledge stored in the wrong authority, including decisions or execution state in `AGENTS.md`;
- unreachable or orphaned documents, and pointers whose trigger does not name the branch that needs
  them;
- sprawling files whose branch-specific detail should be disclosed;
- private information in public context, or public operating knowledge hidden unnecessarily in the
  Brain.

Completion: each suspected problem is either supported by current evidence or discarded.

### 4. Report

Present findings in priority order:

| Finding | Evidence | Correct authority | Proposed repair | Owner |
|---|---|---|---|---|

Distinguish repairs this skill can apply from work routed to `wire-brain`, `grill-decisions`,
`close-design`, or `manage-work-graph`. A clean check says so and lists the surfaces examined.

Completion: every finding has an exact target and no proposed repair silently changes project
meaning or another document's lifecycle.

## Fix

Apply only the findings authorized by the user. Preserve meaning and useful history while moving a
fact to its authority, removing an exact duplicate, sharpening a pointer, pruning stale guidance,
or repairing an `AGENTS.md`/`CLAUDE.md` relationship. Back up a meaningful regular `CLAUDE.md`
before replacing it with a symlink.

After a move, update every pointer that should still reach the material. Keep public edits safe for
publication and scan the final public files for private Brain paths and identifiers. Re-run the
check against every changed surface and report any findings routed to other skills.

Completion: all authorized repairs are verified, unapproved findings remain untouched, and each
piece of moved knowledge has one reachable authority.

Files in this skill

  • SKILL.md5.9 KB
  • agents/openai.yaml113 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.