agentleFS
SterlingJFSterlingJF/knowledge-bus/skills/kb-evolve/SKILL.md

kb-evolve

Skill1 starsChanged 3 months agoMITView on GitHub

Add or re-examine document types in a Knowledge Bus universe, grounding structural changes in evidence.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the shared spine through the path that applies.

    line 10
  2. Distinctive:

    Path C — greenfield or adaptation: Start from what the user needs to understand, decide, or do.

    line 14
  3. Distinctive:

    1. State the suspicion before searching: Write down what you expect to find wrong, then go looking.

    line 31
  4. Distinctive:

    3. Gather proportionate evidence: Prefer primary sources for reference-led work and record access limitations.

    line 38
  5. Distinctive:

    A: if the enablement duplicates a declared type's, fold the form in as an alias — do not add a row.

    line 41
  6. Distinctive:

    B: ask whether any *surveyed family* deserves a type the spec lacks.

    line 42
  7. Distinctive:

    A: add boundaries for the near-misses step 5 surfaced.

    line 51
  8. Distinctive:

    10. Verify mechanically: Use Checker for Agent Workflows for code minting and validation.

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Evolve a Spec

Purpose — add a type the spec does not carry, or deepen one it already declares, so that every declaration is earned by evidence, every refusal is recorded with its reason, and the framework stays cohesive rather than locally patched.

Run the shared spine through the path that applies.

  • Path A — new type. A form exists in the world and the spec does not carry it. Governing question: does it enable something no declared type enables?
  • Path B — re-evaluation. A declared type is about to become load-bearing and its basis is unexamined. Governing question: what in this type is inherited rather than earned?
  • Path C — greenfield or adaptation. Start from what the user needs to understand, decide, or do. External references are optional.

Knowledge Bus Directory

Follow Knowledge Bus Directory. Use an explicit target when supplied; otherwise resolve the nearest .knowledge-bus/ from the user's working directory. Inspect existing files before proposing changes and preserve existing definitions and decision history. Do not combine definitions from different Knowledge Bus directories. Write only inside the selected .knowledge-bus/; leave source files untouched. If definitions are absent, ask the user to select or explicitly create a set rather than inventing one silently.

Standing constraints

  • Deepen by sharpening questions, splits and cross-connections — never by growing per-cell density. A fattening cell means the essence is not grasped yet.
  • Re-evaluate every row the new knowledge touches, revising earlier depictions the evidence has outgrown. Cohesion over local patching.
  • A refusal is an output. Record what you declined to add and why, so it is not re-litigated.
  • Nothing about a downstream app enters either file, in any form.
  • Surface, do not hack. Where the model cannot express something honestly, say so and file it — do not bend a declaration to fit.
  • Codes are stable. Renaming an id is free; reusing or reassigning a code is not.

The flow

  • 1. State the suspicion before searching. Write down what you expect to find wrong, then go looking. This is what stops a first-hit lineage from being confirmed rather than tested.
    • A: name the form and the gap it claims to fill.
    • B: name what looks inherited — a word in the id, a single-tradition guidance base, a question doing more than one job, an enablement promising something no element delivers.
    • C: name the intended decision, action, or understanding and the smallest suspected set of questions.
  • 2. Group candidate sources by enablement, not by discipline. Families are "what does this let someone do" — decide, know-what-stands, calibrate, follow-an-argument. Discipline groupings smuggle in the lineage you are trying to test.
  • 3. Gather proportionate evidence. Prefer primary sources for reference-led work and record access limitations. For greenfield work, use the user's intent and reviewed local examples without inventing a lineage.
  • 4. Run the artifact test per family. Identity is (action, actor); add timing to break ties.
    • A: if the enablement duplicates a declared type's, fold the form in as an alias — do not add a row.
    • B: ask whether any surveyed family deserves a type the spec lacks. Refusing one is an output, not an omission — record why.
  • 5. Run the element test on every candidate field, against every declared question. Identity is the question. Name the collision for each candidate and rule sharpen existing / new / refused.
    • A: decompose the external form into its documented sections; reconcile each — fold into an existing row, split one, or add. Never duplicate.
    • B: additionally audit the type's existing elements. A question with two conjunctions is usually two questions. A clause the instance layer already answers is a leak between levels, not a field.
  • 6. Derive strength; do not choose it. Core iff the enabled action cannot be taken without it. Where a frame decides, express it as when: on a core entry rather than as a second row.
  • 7. Check the relation graph.
    • A: add boundaries for the near-misses step 5 surfaced.
    • B: re-point every edge naming a renamed or split declaration, and promote any boundary that exists only as guidance prose into a distinct-from edge.
  • 8. Write the spec file. See § Outputs.
    • A: mint codes for everything new.
    • B: retain the code on any declaration keeping its identity; mint only for genuinely new ones. A rename with a stable code costs nothing downstream — that is what codes are for.
  • 9. Write the guidance file. See § Outputs.
    • A: guidance starts empty; author it.
    • B: guidance already exists and is keyed on ids you may have changed. Rekey it, and re-home entries whose subject moved — a boundary claim follows the element it is about.
  • 10. Verify mechanically. Use Checker for Agent Workflows for code minting and validation. Run the checker; expect it to catch the rekeying you missed. Grep for downstream leakage. Count codes and entries against expectation. Confirm the protocol version did not move unless you meant it to.
  • 11. Record the decision — including the refusals. One record: what changed, why, what was refused and on what grounds, what would reverse it, what stayed ambiguous.
  • 12. Raise what you surfaced but did not solve. A gap found and left unfiled becomes an assumption. File it as an item.

Outputs, by file

Spec file — carries only what something reads.

  • Declarations: elements, artifact types, frames, factors — each with id, code, and its identity (question for an element, enablement for an artifact).
  • Composition: core / situational, each entry's mode (owns | links) and any when: predicate.
  • Relations: edges with kind, plus legality, gate or freeze where they apply.
  • The alias — the external form(s) the composition aligns with, and its kind.
  • Nothing advisory. Nothing about any app built on the spec. Nothing a reader is meant to weigh rather than resolve.

Guidance file — carries everything else, and is advisory by rule.

  • One entry per claim: kind, claim, source, optional when:.
  • convention must cite a registry source; pitfall, heuristic, empty, refresh, boundary may be asserted.
  • Register each new source with cite, url and checked. Put sourcing caveats inside the cite string — rescinded, paywalled, secondary, abstract-only.
  • Give every distinct-from edge a boundary entry saying why the distinction holds.
  • Give every element you added an empty entry saying what an honest empty answer means.

Split rule: a value belongs in the spec because something reads it; everything else belongs in guidance. A spec must stay valid with no guidance file present.

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.