fable-debugger
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
fable-debugger — a piece of Fable, left running in the hive
This is the honest form of "Fable 5, persistently and reactively in the hive." It is not
model weights (those are neither copyable nor lawful to lift — see FABLE_DNA.md). It is
the method, written as an executable discipline so that any agent or model that runs
it debugs the way Fable does. The method is the inheritable part; this skill is the method.
It sits under the hive-conductor master harness: the Conductor routes a "something is
broken" directive here; this skill drives it to a verified close or a named escalation.
The loop (run it in order — the order is the point)
SYMPTOM
1. REPRODUCE → observe the failure from where it actually runs (not where you wish)
2. CONTRAST → find a sibling path that WORKS; the diff between them is the lead
3. ROOT-CAUSE → trace to the mechanism, not the surface; name it in one sentence
4. COUPLED-BUG → find the second defect the first is masking (it will surface post-fix)
5. FIX-MINIMAL → change only what the root cause requires; match the proven path exactly
6. VERIFY-REAL → prove it where it runs; a passing check that ran, not optimism
7. CLOSE/ESCALATE → verified → write back to memory; blocked → escalate, gate named
1 · Reproduce from the true surface
The container cannot reach *.workers.dev; a GitHub runner can. Read truth from where the
thing lives, through whatever eye can see it. If you can't observe it, you can't fix it —
say that and get an eye on it (the edge-health-probe workflow is the hive's runner-eye).
2 · Contrast against a proven-working path
The sharpest debugging tool in the hive: when one path fails and a sibling succeeds, the difference between them is the bug. Before theorizing, find the thing that already works and diff it.
- Canonical case: Kai El's chat returned the canned fallback while the heartbeat
generated live AI text on the same binding. Same account, same
env.AI— the only differences were the model name (llama-3.1-8bvs the heartbeat's provenllama-3.2-1b) and the call shape (messages[]vsprompt). Matching the proven path was the fix.
3 · Root-cause, not symptom
State the mechanism in one sentence before you touch code. "404" is not "add a route" until you know the route was present in source but absent from the deployed artifact (a stale Workers Build), or absent from source entirely. Different mechanism, different fix.
4 · Find the coupled latent bug (the Fable move)
A first defect often masks a second that only surfaces once the first is fixed. Look for it before shipping.
- Canonical case: the wrong model made
env.AI.run()throw, which hid actx.waitUntil(...)call in a handler whose signature wasfetch(request, env)— noctx. Fixing only the model would have turned the throw into aReferenceErrorand re-triggered the identical fallback. Both had to fall together. Ask always: what breaks the moment my fix works?
5 · Fix minimal, matched to the proven path
Change only what the root cause requires. When a working sibling exists, converge on its exact shape (same model, same call form, same parse) rather than inventing a third variant. Fewer variables, first-try deploys.
6 · Verify where it actually runs — never adjudicate your own claim
"Done" is a machine check that ran. For the edge: trigger edge-health-probe and read the
run log. For a build: node --check, npx tsc --noEmit, pytest. For a deploy: probe the
live surface, not the source — a merge is not a deploy; Workers Builds lags 10–15 min.
A green you asserted without a run is an F-004 violation. Probe, then claim.
7 · Close or escalate — but never fake a green
- Verified → write the close back to memory (
/v11/memory/remember, or the heartbeat already writes chat/arena) so the next recall is richer, and report the probe evidence. - Blocked / budget exhausted → escalate to the founder with the failing gate named and the exact human-only action required (a secret, a subdomain, a dashboard build-setting). A false "it works" is refused by the Constitution.
Bring-your-own generative voice (the swappable organ)
This skill is the method and runs on discipline alone. When it needs a generative voice to reason about a fix, it uses whatever the hive has bound — and it does not care which:
- Workers AI (already bound at the edge; the heartbeat and Kai El chat prove it):
env.AI.run('@cf/meta/llama-3.2-1b-instruct', { prompt }). - A Claude API key (bring-your-own; see the
claude-apiskill): higher-order reasoning when the founder providesANTHROPIC_API_KEY. - A local model later: same contract. The DNA constrains how the voice behaves (the seven steps, the six laws), never which voice it is. Swap the organ freely; the genome holds.
Governance gate (before any close)
Every fix clears F-001…F-006 (see FABLE_DNA.md, Chromosome I). Most relevant here:
F-004 Explainability — the fix ships with a probe-backed rationale (a run link, a test,
the Rationale:/Verification: line in the commit). No unexplained fix ships.
Quick start
# 0. RECALL — has the hive debugged something like this before? (RAO Phase 0)
python3 .claude/skills/hive-conductor/scripts/recall_context.py --goal "<symptom>" --brief
# 1. Reproduce from the true surface (runner-eye on production):
# trigger the edge-health-probe workflow, read the run log for the failing endpoint.
# 2. Contrast: find the working sibling path in the same file/worker and diff the calls.
# 3. Fix minimal → node --check worker/src/index.js → commit with a Verification: line.
# 4. Merge → wait for Workers Builds (~10–15 min) → re-probe → confirm from the log, not hope.
# 5. On a verified close, append the lesson to .claude/skills/recursive-growth/LESSONS.md —
# that's where a real fix here grows into hive-wide knowledge instead of evaporating.
Origin: Fable (Harness), 2026-07-13. The executable form of FABLE_DNA.md Chromosome II — a copy of the method, not the mind, so the hive keeps a Fable-level debugger running in it lawfully, freely, and for good. Every example above is a real fix this method produced.
04 同仓库更多 Skills
preamble-gate
Use BEFORE doing any work in this repo — before the first file edit, commit, push, PR, branch operation, workflow dispatch, scheduled trigger or timer, agent/subagent spawn, dependency install, or message sent to an outside service. Forces a plain-language preamble to the founder first: WHAT you are about to do, WHY, HOW, why it is NECESSARY, the PROJECTED IMPROVEMENT, and the COST and RISK — then, for consequential work (governance, security, money, CI/triggers, rewriting history, multi-agent fan-out), waits for an explicit go-ahead. Read-only investigation (reading files, grep, git log/diff, answering questions) is exempt. Applies to every AI that works in this repo, not just Claude. Founder rule, 2026-11-10, written after an unattended automation ran up cost and froze the hive. Not a substitute for wired-or-not (which governs how completion is CLAIMED); this governs what happens BEFORE work starts.
visionary-recommender
暂无简介
syllabus
Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.
research
Default entry point for any research request — a hybrid router that classifies the question deterministically and either delegates to a specialist research skill (pulse for trends/sentiment, grants for NIH funding, litreview for academic literature, syllabus for course reading, patent for prior-art + IP landscape, dossier for entity research) or runs its own plan-decompose-multi-source-search-synthesize-cite fallback workflow when no specialist matches. Always surfaces the routing decision so users can override. Use when the user makes any research request that doesn't obviously match a more-specific specialist skill (e.g., "research [topic]", "look into [topic]", "what do we know about [topic]", "investigate [topic]", "find me information on [topic]", "do some research on [topic]", "I need to understand [topic]"). Output is a markdown briefing (default) or .docx document (on request) with full citations and an audit log.
pulse
Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X/Twitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend/sentiment/problems/opportunities/comparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.
patent
Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search / freedom-to-operate / competitive landscape / acquisition diligence / litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.