feature-library-scout-fleet
Skill10 starsChanged 37 days agoMITView on GitHub
Orchestrator-workers variant of feature-library-scout for deep per-feature-problem library research. One worker per problem ranks libraries by adoption signal. Use when over 3 distinct feature problems each need a deep read. Do not use for 1 to 3 problems (use feature-library-scout), stack layers (use stack-recommend), framework pattern currency (use stack-currency-check), or with no task folder (run task-init).
In this repository98 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a11y-auditSkill
- ai-feature-eval-harnessSkill
- api-contract-reviewSkill
- api-runtime-verifySkill
- apply-sweep-triageSkill
- approve-planSkill
- approve-proposedSkill
- app-runtime-verifySkill
- atom-audit-fleetSkill
- atom-auditSkill
- autonomous-boardSkill
- autonomous-readinessSkill
- autonomous-runSkill
- backend-system-designSkill
- branch-commitSkill
- capture-observationSkill
- capture-referencesSkill
- code-context-mapSkill
- code-locateSkill
- color-contrast-architectSkill
- compact-task-memorySkill
- component-specSkill
- contract-signoffSkill
- db-context-postgresSkill
- db-context-supabaseSkill
- decision-interviewSkill
- delivery-assetSkill
- design-bootstrapSkill
- design-spec-reviewSkill
- direction-adjustSkill
- external-research-fleetSkill
- external-researchSkill
- extract-foundations-from-screensSkill
- feature-library-scoutSkill
- foundation-auditSkill
- frontend-architecture-reviewSkill
- frontend-system-designSkill
- godot-runtime-verifySkill
- godot-scene-planSkill
- graphql-contract-reviewSkill
- harvest-session-learningsSkill
- image-to-specSkill
- impact-analysisSkill
- implement-approved-sliceSkill
- implementation-planSkill
- implement-fleetSkill
- implement-slice-complementSkill
- im-stuckSkill
- incident-triageSkill
- invariants-and-non-goalsSkill
- inventory-snapshotSkill
- journey-mapSkill
- jtbd-switch-interviewerSkill
- mcp-server-vetSkill
- migration-safety-stewardSkill
- pattern-docSkill
- performance-budgetSkill
- portfolio-reviewSkill
- post-deploy-verifierSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are 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.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 95
Read these sections in WORKFLOW_OPERATING_SYSTEM.md first:
- Distinctive: line 103
Read additional sections only when relevant to this command's role.
- Very specific: line 133
Never fabricate adoption numbers.
- Very specific: line 165
Follow ## Global output contract in WORKFLOW_OPERATING_SYSTEM.md for APPLIED / PROPOSED / SKIP rules.
- Very specific: line 174
Every candidate traces to a source_ref from some worker's candidates[].
- Very specific: line 181
Before declaring this output done, confirm it satisfies the shared Definition of done (command outputs) and Gate conditions in …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Output contract, in brief. This body is over the per-skill re-injection cap, so after a compaction the sections below are truncated away while this summary survives. They remain authoritative in full; re-read this file before emitting if you need them.
Standard output layout (required): Produce the command output using this structure (English only):Artifact changes: Follow## Global output contractinWORKFLOW_OPERATING_SYSTEM.mdforAPPLIED/PROPOSED/SKIPrules. Every listed file...Command transcript: Brief audit trail (max 4 lines; max 3 in no-op runs withNO_OP_TRACE).Handoff: Use the adaptive ending format ofWORKFLOW_OPERATING_SYSTEM.md## Global output contract. Every Handoff is one fencedtextb...Definition of done (command output): FEATURE_LIBRARIES.md uses the canonical template fromtemplates/FEATURE_LIBRARIES.template.md(Snapshot metadata, per-problem bl...
Act as a senior/staff ecosystem research orchestrator dispatching N feature-problem-analyst sub-agents and merging their per-problem rankings into a single grounded FEATURE_LIBRARIES.md.
Goal:
For a product whose feature set decomposes into N >= 4 distinct feature problems (large lists, camera, forms, keyboard, bottom sheets, navigation, gestures, animation, offline), dispatch N mechanical workers in parallel (one per feature problem); each worker ranks the candidate libraries for its problem by adoption signal, grounded strictly in sources captured in REFERENCES.md, and returns a typed payload through the selected carrier; the orchestrator merges into a single FEATURE_LIBRARIES.md and is the sole writer of that file and of REFERENCES.md. Recommendations are optional guidance, never mandates (ADR-0045, D-F).
Mandatory context bootstrap (before any output):
- Read these sections in
WORKFLOW_OPERATING_SYSTEM.mdfirst:## LLM execution contract## Editor mode policy(mode definitions only; the tool mapping table is lazy-loaded inwos/editor-mode-mappings.mdand needed only for non-Claude-Code tools)## Global output contract(including Adaptive handoff and Mode selection rule)## Cross-cutting workflow guardrails
- Bootstrap tiers: the light-weight commands (
branch-commit,what-next,where-we-at,slice-closure,compact-task-memory) plus the high-frequencyimplement-approved-sliceandsync-task-state(v3 wave1 item D) read the four sections above with two subsections of## Cross-cutting workflow guardrailsskipped:### External web access (centralized)and### Sequencing heuristics (by phase). Everything else is read at every tier, including### Proposal vs approved persistenceand### Substrate peer ownership (per ADR-0034), since all seven write substrate sections and reason about PROPOSED (state-reconcilestays on the full tier for cross-artifact judgment). The full tier is measured at 12109 tokens, the four always-read sections combined; the two skipped subsections are 1,034 of those (measured 2026-09-28), so the reduced tier is about 11,074. The leaf-reviewer tier (verify-against-rubric, ADR-0226) reads only## Global output contract, measured at 5215 tokens, plus its rubric. - Session bootstrap reuse (skip-if-unchanged; v3 wave1 item D): WHEN this conversation already read the bootstrap sections in an earlier turn still VISIBLE in the context window AND
WORKFLOW_OPERATING_SYSTEM.mdhas not changed since, the command MAY skip the re-read and cite the earlier one, emitting one Command transcript line:Bootstrap: reusing turn <N> read, WOS unchanged. Scoped exception to the context-budget re-fetch rule (wos/context-budget.md, "The re-fetch rule"), because these sections are one large, static, byte-identical read repeated every turn; every other tool result still re-fetches. VISIBLE means the section text itself is still present and quotable now, not merely that a record of the earlier read exists: a harness that clears a tool result while the record survives (ADR-0114) has not satisfied VISIBLE, and self-declared memory after a compaction never qualifies. A stateless-per-turn harness is excluded. The transcript line is mandatory; a silent skip is invalid output. - Resolving the spec and
wos/<topic>.md: canonical repository FIRST. Otherwise use active-adapter docs:~/.claude/workflow-docs(CLAUDE_WORKFLOW_DOCS_DIR),~/.cursor/workflow-docs(WORKFLOW_DOCS_DIR; project.cursor/workflow-docson project installs),~/.codex/workflow-docs(CODEX_WORKFLOW_DOCS_DIR), or<kimi-home>/workflow-docs(KIMI_WORKFLOW_DOCS_DIR). Nonempty overrides win. Kimi home:KIMI_CODE_HOME, else existing~/.kimi-code, else existing~/.kimi, default~/.kimi-code. Use one root for both paths; try other adapters if absent or unknown. Report resolved root, fallback to other adapters, or missing mandatory context in### Command transcript. Installed snapshots refresh and prune retired topics only on sync. - Read additional sections only when relevant to this command's role.
- Align all routing recommendations and next-command suggestions with the current command set.
- Official next-command names only: recommendations, including
Run now, use registered names fromcommands/<name>.mdorcommands/<name>/SKILL.md; installed mode uses the available Fhorja command or skill inventory. No invented aliases.Run now: nonewithMode: N/Aends only if no honest next step exists, defined under### Official command names (routing integrity)(ADR-0126). Required inputs: - active task folder path
- the chosen stack (from
SOURCE_OF_TRUTH.md,STACK_RECOMMENDATION.md, orPROJECT_CHARTER.md; do not guess) - the product's feature set (the orchestrator decomposes it into concrete feature problems; one worker per problem)
- path to
REFERENCES.mdat the project root - optional: explicit max_fanout override (defaults to 12; absolute ceiling 20)
- optional: refresh flag (
refreshto regenerate an existingFEATURE_LIBRARIES.md; default is NO_OP_TRACE if a non-stale file already exists)
External web access:
- This command (the orchestrator) is in the authorized-command set in the spec
## Cross-cutting workflow guardrails ### External web access (centralized), scoped to per-feature library discovery and adoption-signal gathering. Workers are NOT in the authorized-fetch set and MUST NOT fetch the web; they read adoption signals from sources the orchestrator captured intoREFERENCES.mdbefore dispatch (any uncaptured candidate is routed throughcapture-referencesby the orchestrator in Step 3). The orchestrator funnels every fetched source intoREFERENCES.md(capture-references format, deduplicated by URL).
Operating rules:
- Handoff: end with the adaptive
### Handoffblock perWORKFLOW_OPERATING_SYSTEM.md## Global output contract. - Boundary (ADR-0045, D-Boundary): per-feature libraries only; never re-pick stack layers (
stack-recommend). - Step 1: Decompose and validate. Derive the feature-problem list from the product feature set (and a product-repo scan when a path is provided). Confirm N >= 4 problems (else NO_OP_TRACE: route to
feature-library-scoutinline). Assign a uniqueproblem_idper problem. Confirm N <=max_fanout. - Step 2: Verify prerequisites.
FEATURE_LIBRARIES.mdabsent OR refresh flag set (else NO_OP_TRACE). - Step 3: Gather and capture (orchestrator, authorized fetcher). For each problem, identify candidate libraries and gather their adoption signals from the stack's ecosystem (package registry per the stack: npm, PyPI, crates.io, Go, Maven; plus source-host repos, official docs, AAA-company posts, reference repos). Capture every cited source into
REFERENCES.mdviacapture-referencesformat BEFORE dispatch, so workers read signals rather than fetch them. When a signal cannot be fetched (rate limit, private repo), record[not fetched]; never guess. Note any rate-limit truncation for the merged Snapshot metadata. - Step 4: Verify the orchestrator constraint. Confirm this command's
suggested-modelresolves to a model at or above the model the workers'dispatch-roleresolves to inwos/model-routing.md ## Dispatch roles(wos/sub-agent-orchestration.md ## Role-aware dispatch protocol); refuse to dispatch if it does not. Workers aremechanical: per-problem ranking orders candidates by captured signals. The pick each worker names sits close to a judgment, which is why the placement is a provisional decision and experiment E1 checks it; override the workers up tojudgmentwhen a pick carries a real trade-off. The cross-problem merge is rule-based (one recommendation per problem, dedup by URL). - Step 5: Dispatch workers (ADR-0038 Rule 1, typed-return transport). For each problem, invoke a stateless sub-agent via the selected dispatch path, naming the agent type explicitly (
agentType: 'general-purpose'). Never leave it unset: a fork inherits the whole conversation and drops the input isolation a fresh sub-agent provides. Passtask_inputmatchingworker_input_schema. Each worker MUST return a payload matchingworker_output_schema; free-form prose returns are FORBIDDEN. Free-form prose responses or.partial.mdwrites are FORBIDDEN (ADR-0038 Rule 1). Workers MUST NOT writeFEATURE_LIBRARIES.mdorREFERENCES.md(ADR-0038 Rule 2). Name the path you are on before dispatch (ADR-0158 D-1). Resolve<task_root>/.wos/fleet-inbox/<run_id>/<worker_id>.jsonfor each worker and create the run inbox. On the dynamic-workflow path, declareagent(prompt, {schema})withworker_output_schema; consume the runtime's typed result and persist its JSON copy at that path. Never tell the worker to call StructuredOutput. On theAgentpath, pass the resolved path asfleet_inbox_artifactin the existing worker-contract envelope, outsidetask_input; the worker writes one schema-conforming JSON payload there and the orchestrator reads it. This return-file permission grants no other writes (ADR-0158 D-2). Supply the output schema and selected-carrier instruction outsidetask_input. End the dynamic worker prompt withReturn one payload matching worker_output_schema and nothing else; end the native worker prompt withWrite one JSON payload matching worker_output_schema to fleet_inbox_artifact and nothing else. - Step 6: Each worker (instruction template). The worker reads the captured sources for its problem's candidates from
REFERENCES.md(it MUST NOT fetch the web); fills the adoption-signal fields per candidate from those sources; marks any unfetched signal[not fetched]; selects arecommended_pickwith a one-linerecommendation_reasongrounded in the signals; listsalternativeswith when to prefer them; surfacesgaps; and returns the payload by the carrier its dispatch path names (ADR-0158 D-1), never by calling a tool it was not given. Every candidate MUST carry at least onesource_refmatching a captured source. - Step 7: Wait for convergence. Barrier: wait for all N workers OR
timeout_ms(15 min default). Consume one schema-conforming payload per expected worker from the runtime result or its assigned<task_root>/.wos/fleet-inbox/<run_id>/<worker_id>.json; ignore unrelated files and do not count replay copies twice. Classify each result percommands/_shared/convergence-policy.md(satisfied / needs_revision / max_iterations_reached / failed / interrupted / timed_out). - Step 8: Merge FEATURE_LIBRARIES.md (ADR-0038 Rule 2, deterministic apply). Apply
unionmerge followingtemplates/FEATURE_LIBRARIES.template.md: one per-problem block per surviving worker payload (candidate table fromcandidates[], recommended pick fromrecommended_pick, alternatives, sources); aggregate all sources into the consolidated Sources list (dedup by URL); recordLast refreshed: <YYYY-MM-DD>and the signal-freshness line (note any[not fetched]or truncation). Frame all picks as optional guidance. ReplaceFEATURE_LIBRARIES.mdin full. This is the single-writer sequential apply step. - Step 9: Emit VERIFICATION_LOG.jsonl. One line per per-worker classification event plus one
event=fleet-mergeline for the merged FEATURE_LIBRARIES section (partials=[worker_id, ...],strategy=union). - Step 10: Update SOURCE_OF_TRUTH.md. Append the
## Feature librarieslink to./FEATURE_LIBRARIES.mdif not already present. - Step 11: Update REFERENCES.md. Append any newly-captured sources per
capture-referencesformat. Deduplicate by URL. - Step 12: Scan substrate orphans (ADR-0038 Rule 3). After Steps 8 and 11, run
python scripts/scan-substrate-orphans.py <task_root>/FEATURE_LIBRARIES.md <project_root>/REFERENCES.md, withscripts/scan-substrate-orphans.py(resolved against the WORKFLOW ROOT, ADR-0218); its exit 2 means a named file was absent, never a pass. Any orphan bullet forces NO_OP_TRACE: surface the orphan report in the transcript, do NOT declare success, and require a correction pass before re-applying. A clean scan (exit 0) is required to declare the apply contract satisfied. - Workers NEVER write
FEATURE_LIBRARIES.mdorREFERENCES.md, because parallel writers to the same file would race and corrupt the merge and scramble provenance; sequencing every write through the orchestrator's one apply step keeps it deterministic and attributable (ADR-0038 Rule 2). The orchestrator is the SOLE writer of both in fleet mode. - Never fabricate adoption numbers;
[not fetched]is the only honest placeholder for a missing signal.
Required output:
- Problem inventory: N feature problems decomposed + the stack.
- Dispatch summary: N dispatched, M satisfied, K needs_revision, L failed, P interrupted, T timed out.
- Source inventory: pre-existing + newly captured, total unique URLs.
- Path to merged FEATURE_LIBRARIES.md.
- One-line recommended pick per feature problem.
- Top open questions (union of worker
gaps[]). - Orphan scan result on FEATURE_LIBRARIES.md and REFERENCES.md (must be clean to declare success).
- Recommended next command (typically
decision-interviewif a pick needs the maintainer's ruling, orimplementation-planif the picks are clear).
Claim grounding (active epistemic humility)
Claim grounding (active epistemic humility). This block governs what you may assert and how you record it. It is keyed to the substrate section you are writing, not to which command is running, and it is INERT on any output that writes none of the claim-bearing sections below. Full contract and rationale: wos/active-epistemic-humility.md.
- When this applies. This block fires ONLY while you are writing a claim-bearing substrate section:
TASK_STATE.md ## Current known facts,## Risks to watch,## Observations,## Active files in scope,## Canonical decisions;DECISIONS.md ## Locked decisions;IMPLEMENTATION_PLAN.md ## Current gaps,## Risks and mitigations;IMPACT_ANALYSIS.md;EXTERNAL_RESEARCH.md;REFERENCES.md; or any section whose content is a statement a later command or a human decision will act on. WHEN your output writes none of these, this block imposes nothing: skip it and proceed. This is the D-13 inert clause; a fully-grounded or claim-free output pays nothing. - The unit is the load-bearing claim. A load-bearing claim is one a downstream command or a human decision consumes. A passing aside is not load-bearing; a statement someone will act on is. Apply the rest of this block per load-bearing claim, not per sentence.
- Ground it or abstain. Before you assert a load-bearing claim, trace it to the enumerable grounded set: a captured
REFERENCES.mdentry, a file read in this session, command output actually seen, or a passing deterministic gate. A claim supported only by model memory is OUTSIDE the grounded set, including when you are right, because that support is not observable. WHEN a load-bearing claim falls outside the set, do NOT assert it: either investigate until it is grounded, or abstain per rule 6. - Status records provenance, never confidence. WHERE you attach an epistemic status to a claim, the status names WHERE THE CLAIM CAME FROM: a
REFERENCES.mdentry title, a file path plus line, or the gate output it came from. It SHALL NOT express a degree of certainty. Do NOT add a confidence field, a numeric threshold, or a self-assessment prompt anywhere; a self-reported confidence signal is not a usable control signal (wos/active-epistemic-humility.mdPart 1.3). A status whose referent slot is empty is read as UNKNOWN, not as a weak yes. - Persisted claims carry the status; chat-only claims carry it when they route. Every load-bearing claim you write into a task-memory artifact carries its provenance referent, and that referent travels with the claim so a later command reads it too; do not drop it at the write boundary. A load-bearing claim that appears only in a chat-turn output carries a status only when it crosses the grounding boundary and triggers a route (an abstention, an escalation).
- Abstain as a routed continuation, never a bare refusal. WHEN you abstain, name the specific investigation that would settle the question AND route to the command that runs it (
capture-references,code-locate,incident-triage, or the fitting one). A withholding that stalls the work is invalid output. Abstention is distinct fromNO_OP:NO_OPmeans there is no work to do; abstention means there is work and the grounding to do it is missing. - An unfired gate is not evidence. The absence of a fired check does not mean grounding existed. Do not read silence here as a pass.
Standard output layout (required)
Produce the command output using this structure (English only):
Artifact changes
Follow ## Global output contract in WORKFLOW_OPERATING_SYSTEM.md for APPLIED / PROPOSED / SKIP rules. Every listed file carries one of those three tokens, in Lean output too; a prose verb like "written" is not a label.
Command transcript
Brief audit trail (max 4 lines; max 3 in no-op runs with NO_OP_TRACE).
Handoff
Use the adaptive ending format of WORKFLOW_OPERATING_SYSTEM.md ## Global output contract. Every Handoff is one fenced text block with all four lines, Run now:, Mode:, Work complexity: and Reason:, on a stop and on a refusal too; the terminal form is Run now: none with Mode: N/A. A new Mode:, a model or a fresh session is never a stop, an offered choice is one, and Reason: names a role, never a model.
Definition of done (command output)
- FEATURE_LIBRARIES.md uses the canonical template from
templates/FEATURE_LIBRARIES.template.md(Snapshot metadata, per-problem blocks with the adoption-signal columns, recommended pick and alternatives per problem, adoption-signal legend, sources, cross-references). - Every candidate traces to a
source_reffrom some worker'scandidates[]; unsourced picks or fabricated adoption numbers are invalid output and MUST be removed at merge. - Per-worker payloads consumed from the selected carrier and recorded in
<task_root>/.wos/fleet-inbox/<run_id>/<worker_id>.json(no prose.partial.mdfiles; ADR-0038 Rule 1). - The orchestrator is the SOLE writer of FEATURE_LIBRARIES.md and REFERENCES.md; worker contract violations (mid-flight writes, missing or invalid payloads on the selected carrier) are listed in
### Command transcript. - Picks are framed as optional guidance; none is mandatory (D-F). The boundary with
stack-recommendis respected (no stack-layer re-picked). scripts/scan-substrate-orphans.pyexits 0 on the touched files post-apply; any non-zero exit forces NO_OP_TRACE with the orphan report surfaced (ADR-0038 Rule 3).- The basename in the
Run now:line corresponds to a real file incommands/<name>.mdorcommands/<name>/SKILL.md. In installed mode use the available Fhorja inventory. - Output ends with a complete
### Handoffblock per the adaptive format inWORKFLOW_OPERATING_SYSTEM.md## Global output contract. - Before declaring this output done, confirm it satisfies the shared Definition of done (command outputs) and Gate conditions in WORKFLOW_OPERATING_SYSTEM.md.
Quality bar:
The grounding integrity of feature-library-scout is preserved: every pick still traces to a captured source and no adoption number is invented. ADR-0038 enforces three invariants on this fleet variant: workers return typed payloads through the selected carrier (Rule 1); only the orchestrator writes FEATURE_LIBRARIES.md and REFERENCES.md (Rule 2); scripts/scan-substrate-orphans.py gates apply success (Rule 3). The novel risk specific to this command is signal accuracy under parallelism: a worker must mark [not fetched] rather than fabricate a download or star count, and the orchestrator must preserve those markers at merge rather than smoothing them into invented numbers.
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
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.

