Learn cron builder

From weiyangzen/b3ehive · View interactive version

Learn cron builder is an AI agent skill from the GitHub repository weiyangzen/b3ehive. Turns a frozen source scope into validated artifacts such as one-to-one code understanding, code-to-code transforms, translations, or a pinned canon of normative documents, at a chosen depth of what, how, or why. Use to learn a codebase or spec, migrate code, or translate docs. 学习代码库、规范子集、迁移、翻译、原理与动

How to use this skill

Skill file

Learn

For a user-facing choice guide, read docs/skill-selection.md. Lock the source

scope before producing learning, transformation, translation, or canon output.

core v2 · loop v2; an item's oracle is traceability to its source row, plus the

depth check. Read references/core.md and references/loop.md first; this body

adds only learning rules. Working frame: understand it until you can make it.

Modes

| Mode | Direction | Final artifact |

|---|---|---|

| understand | code → human language | one note per source file plus one per folder |

| transform | code → code, API, schema, runtime, tool asset | target files with source-target traceability |

| translate | human language → human language | translated docs with structural parity |

| canon | external documents → pinned normative subset | canon/manifest.tsv plus excerpts |

Every mode runs:

scope → subset → manifest → target contract → depth → submissions [_] → master [x] → cleanup.

Depth

Decide learn_depth per run, and optionally per glob through depth_map:

| Level | Adds | Each artifact must show |

|---|---|---|

| what (default) | what it is and does | purpose, entry points, flow, data, dependencies, side effects, risks, unknowns |

| how | how it is done well | the quality principles followed, each with evidence (path:line, test, mapping row, glossary entry), plus departures from them |

| why | why it is done this way | per decision: driver, alternatives and why each is worse here, tradeoff, deeper significance, level V (cited) or I (inferred, worded as inference) |

to a mirrored companion note under Docs/learn/rationale/.

non-author reviewer checks sampled entries against the source and its

history; an unsupported V drops to I or the entry is rejected.

boundaries, this dependency direction.

Principles per mode, note format, and acceptance: references/depth.md.

Mechanical check: scripts/check_depth.py --depth <level> [--map depth_map.tsv] <dir>.

Manifest And Coverage

scope; an output that traces to no row counts for nothing.

src/app/main.ts → Docs/learn/files/src/app/main.ts_learn.md;

src/app/ → Docs/learn/src/app/current_folder_learn.md. Slug-only final

paths are invalid; group and chunk reports stay intermediate.

check. Detail: references/coverage-contract.md.

Subsets

subset_decision.md, and a locked manifest under

Docs/learn/subsets/<subset_id>/. High-confidence files enter; borderline

files go to the master; context-only files count for nothing until promoted.

Canon Mode

Canon is how outside knowledge enters the hive: documentation MCP servers,

official specs, datasheets, source code, and curated wikis.

level (V primary, F community, I inferred), license, and governs.

in full as mcp:<server>:<tool>.

every prompt, and ablation measures its value.

Validated attempts add rows; agents search before acting

(scripts/find_lesson.py search), at most 20 summaries per query. A row is

active only when a use-site query recalls it; applied and helpful are

recorded apart.

Schema, experience rules, and audit: references/canon.md.

Route

route_policy=auto|high_reasoning|standard|cheap_translation|uncommon_translation|custom.

Complex code, transforms, and why depth take high reasoning; mechanical

conversions and most what-depth translation take cheaper routes; escalate on

high-stakes meaning, glossary conflicts, or repeated check failure. Record

route, depth, and map in Docs/learn/route_decision.md. Detail:

references/route-policy.md.

Surfaces

Base: source_manifest.tsv, learn_checklist.md, todos_YYYYMMDD.md,

file_learn_index.tsv, folder_learn_index.tsv, route_decision.md under

Docs/learn/. Transform adds target_contract.md, mapping_policy.tsv,

validation_policy.md, traceability_index.tsv. Depth how or why on

transform or translate adds rationale/ and rationale_index.tsv. Canon adds

canon/manifest.tsv and canon/excerpts/.

Validation

notes cover every represented folder; subsets exclude out-of-scope files.

glossary decisions, and section parity.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.