agentleFS
philippe-desplatsphilippe-desplats/second-brain/.claude/skills/review-knowledge/SKILL.md

review-knowledge

Skill8 starsChanged 5 days agoMITView on GitHub

Monthly curation of the workspace. Automatically detects candidates for `/to-knowledge` (recurring patterns not yet distilled), `/archive-project` (dormant entities), and `/to-map` (dense topics without a MOC). Presents a report grouped by action and lets the user trigger each skill through interactive validation. Aligned with the periodic curation ritual ("what did I learn this week that deserves distillation, archiving, or mapping?"). It never writes files directly, apart from the links kept in a random revisit, and it orchestrates suggestions rather than executing them on its own. Use for the monthly curation (first of the month), after an intense writing period, or for a random revisit. The weekly review is /weekly-review.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Numeric detection, not instinct: every candidate must produce a score and the reason behind the score (count, dates, etc.)

    line 111
  2. Very specific:

    Clean delegation: call the /to-knowledge, /archive-project, /to-map skills by loading each skill (see AGENTS.md, Invoking a skill), never …

    line 114

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Arguments

/review-knowledge [-s scope] [-w window] [-min N] [-only distill|archive|moc|lint] [-revisit N] [-r report-only] [-a auto]

Flags, input and examples are detailed below.

Questions to the owner follow AGENTS.md, Asking the owner.

After the last write of a run, add one line to the operations log with --skill review-knowledge, see AGENTS.md, Logging writes. Every run logs one line at its end, even when nothing was validated: --action "curation, {n} actions validated", the report-only mode (-r) with its report path, a revisit with --action "revisit, {n} links kept". /weekly-review reads these lines to know when the last curation and the last revisit ran.

<objective> Periodically scan the workspace to identify curation opportunities: distilling recurring patterns into `knowledge/`, archiving dormant entities into `archives/`, and creating MOCs for dense, unmapped topics. Present a grouped report to the user and trigger the matching skills (`/to-knowledge`, `/archive-project`, `/to-map`) based on their validation.

Aligned with the LYT/PARA philosophy: "a second brain is maintained, not built once and forgotten." The goal is to prevent workspace entropy while keeping the human in the loop for every action.

Out of scope: writing or moving files directly; that is the job of the delegated skills. Out of scope: archiving or distilling without user validation. </objective>

Design constraints: this skill is a review ritual. Before changing it, read .claude/skills/references/review-rituals.md, which states the four properties a review must keep to survive its own abandonment rate.

<quick_start>

/review-knowledge                                          # full review, full workspace scope
/review-knowledge -s clients                               # scope only clients (archive candidates mostly)
/review-knowledge -s knowledge                             # scope distillation (recurring patterns)
/review-knowledge -w 30                                    # monthly curation, includes the semantic lint
/review-knowledge -w 7                                     # short window
/review-knowledge -only distill                            # only distill candidates
/review-knowledge -only archive -min 12                    # archive candidates inactive > 12 months
/review-knowledge -a                                       # auto mode, execute without confirmation (discouraged)
/review-knowledge -w 7 -r                                  # report-only: write the report to atlas/reviews/, no questions
/review-knowledge -only lint                               # contradictions and stale claims in knowledge/, report only
/review-knowledge -revisit 10                              # draw 10 random notes and propose links (default 5)

</quick_start>

<flags>
FlagLongDescription
-s--scopeScan scope: full (default), any zone kept in the zones array of .sb-config.json (clients, partners, internal, personal), plus knowledge and topics
-w--windowTime window in days to detect "recent" (default: 30)
-min--min-inactiveMonths of inactivity to qualify a dormant entity (default: 6)
-only--onlyFilter suggestion type: distill, archive, moc, prune, lint, or a comma-separated combination. lint is included by default when the window is 30 days or more
-revisit--revisitRandom revisit: draw N notes (default 5) and propose missing links, the owner picks. Runs alone, the other scans are skipped. Refused with -r or -a
-r--reportReport-only: scan and write the report to atlas/reviews/{date}-review.md, no questions, no delegation. Safe for headless scheduled runs. Exclusive with -a
-a--autoSkip confirmations, execute all suggestions (discouraged outside tests)
</flags><workflow> 1. **Init** -> Parse flags, validate scope and windows 2. **Scan** -> Detect the 3 candidate types with numeric criteria 3. **Report** -> Present a report grouped by action and allow per-candidate validation 4. **Execute** -> For each validated candidate, delegate to the matching skill (`/to-knowledge`, `/archive-project`, `/to-map`) </workflow>

<step_files>

StepFilePurpose
00steps/step-00-init.mdParse args, validate scope
01steps/step-01-scan.mdDetect distill/archive/moc candidates with criteria
02steps/step-02-report.mdPresent the grouped report, a question to the owner per candidate
03steps/step-03-execute.mdDelegate to validated skills, track executions

</step_files>

<state_variables>

VariableTypeSet by
{scope}enumstep-00
{window_days}numberstep-00
{min_inactive_months}numberstep-00
{only_filter}liststep-00
{auto_mode}booleanstep-00
{report_mode}booleanstep-00
{revisit_n}number or nullstep-00 (null unless -revisit is set)
{candidates_distill}list of dictsstep-01
{candidates_archive}list of dictsstep-01
{candidates_moc}list of dictsstep-01
{candidates_prune}list of dictsstep-01
{candidates_lint}list of dictsstep-01
{validated_actions}liststep-02
{executed_actions}liststep-03

</state_variables>

<references>
ReferenceUsed by
.claude/skills/to-knowledge/SKILL.mdstep-03 (delegation)
.claude/skills/archive-project/SKILL.mdstep-03 (delegation)
.claude/skills/to-map/SKILL.mdstep-03 (delegation)
.claude/rules/knowledge.mdstep-01 (the "3rd repetition" criterion)
.claude/rules/atlas.mdstep-01 (MOC vs index)
</references>

<execution_rules>

  • Numeric detection, not instinct: every candidate must produce a score and the reason behind the score (count, dates, etc.)
  • No direct writes: this skill orchestrates, it never writes into the workspace (except optional logs)
  • Per-candidate validation: unless {auto_mode}, each candidate goes through an individual question to the owner (or grouped if the volume is high)
  • Clean delegation: call the /to-knowledge, /archive-project, /to-map skills by loading each skill (see AGENTS.md, Invoking a skill), never reimplement them inline
  • Idempotence: running /review-knowledge twice in a row must give the same result if nothing changed
  • Review log: optionally create a note atlas/reviews/{YYYY-MM-DD}-review.md for traceability (validated in step-03) </execution_rules>

<entry_point> FIRST ACTION: Load steps/step-00-init.md </entry_point>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.