AGENT SKILL

tk-studio-detect

Read-only recommendation inputs — inventory the full resource universe (installed BMad modules/skills, known-but-uninstalled official modules, user-authored resources) and detect what a project is with evidence. Use when the user says "inventory resources", "tk detect", "what's installed", or as the input step of onboarding.

License 许可
MIT
最近更新
2026-11-10
Stars
★ 0
Forks
0

01 前言 Front Matter

name
tk-studio-detect
description
Read-only recommendation inputs — inventory the full resource universe (installed BMad modules/skills, known-but-uninstalled official modules, user-authored resources) and detect what a project is with evidence. Use when the user says "inventory resources", "tk detect", "what's installed", or as the input step of onboarding.

02 资源文件 7

03 SKILL.md 正文

tk-studio-detect

The read-only half of the Recommendation pillar (AD-17): what exists and what this project is. Detection never writes and never silently guesses — its outputs feed tk-studio-onboard, where recording happens only on explicit confirmation.

Verbs (both modes)

inventory — the full resource universe (ST-4.1)

uv run "${CLAUDE_PLUGIN_ROOT}/lib/inventory.py" scan --directory <project-root>

Enumerates three planes into one structured JSON artifact on stdout, with provenance (the file of record) per resource:

Plane Source of record Entries
Installed _bmad/_config/manifest.yaml + skill-manifest.csv modules + skills, versioned
Known-but-uninstalled the plugin's bmad.lock module registry official modules not installed here
User-authored project .claude/skills (minus BMad-synced names), .claude/agents, _bmad/custom/ first-class recommendation path (AD-17)

Notes surface anomalies (installed module missing from the registry, missing manifests) without failing the scan; a project with no _bmad/ still inventories cleanly. Add --out FILE to also save the artifact (e.g. into a run workspace) — without it the scan writes nothing anywhere.

detect — what this project is, with evidence (ST-4.2)

uv run "${CLAUDE_PLUGIN_ROOT}/lib/detect.py" scan --directory <project-root>

Scores candidate project types against the shipped profile registry (profiles/*.json in this skill: weighted file_glob / dir_exists / file_content / vcs markers, per-profile confidence floor). The result lists every candidate ranked, with the concrete evidence — marker text, weight, and the file/dir that matched — behind every point scored, plus the project's VCS type.

Outcomes (legacy-council detector discipline — never a silent guess):

Outcome Meaning Downstream move
confident floor met AND clear margin over the runner-up propose top_candidate
ambiguous — ask scored, but floor/margin unmet show ranked candidates, ask the human
unknown — ask nothing scored past the floor ask the human what the project is

top_candidate on an ask outcome is the best lead to name in the question, never an answer to act on. Profiles carry suggests (module names) as data for the recommendation step — detect never acts on them.

Report

  • Attended: summarize counts per plane, list known-but-uninstalled modules and user-authored resources by name (those are the recommendation candidates), and surface every notes entry.

  • Headless: no prompts (AD-11). End with the status block — complete only on exit 0 with a decided outcome (confident); an ask outcome (ambiguous/unknown — the core exits 0, the ask is in-band) is a refusal to guess and ends blocked with the ask named in reason (contract §1: ambiguity ends the run blocked, never a downgrade to complete — ISS-002 posture); blocked on exit 2 (bad project root / unreadable registry) with the error as reason:

    {"status": "blocked", "intent": "tk-studio-detect", "artifacts": [], "reason": "unknown — ask: nothing scored past the floor; candidates ranked in the scan output"}
    

If the deterministic core is unrunnable — a tool call denied by permissions, uv/python unavailable — end blocked with the status block naming the unrunnable core as reason: never a question, never a headless run that ends without the block (AD-11).

Rules

  • Read-only, always: zero writes to the project or the store unless the caller passes --out (their explicit destination choice).
  • Provenance is per resource — a recommendation downstream must be able to cite the file its evidence came from.
  • BMad-synced .claude/skills entries are attributed to their module, never double-counted as user-authored.
  • All paths resolve through ${CLAUDE_PLUGIN_ROOT}.

04 同仓库更多 Skills

thkennedy
thkennedy/tk-studio

tk-studio-track

Tracking verbs on the bound Jira project — `block` moves a story the loop cannot progress, and each dependent story, to "Blocked - Awaiting User" with a comment that @mentions the owner (or, with `--engagement`, one engagement's questions issue, which `close` later moves to "Done"); `reply` posts the owner's answer (or "Done.") with the owner's host-only token and moves the issue to "Block Resolved"; `validate` checks that resolution and passes the issue back to work or re-blocks it with a follow-up. Use when the user says "block this story", "tk track block", "put it in the owner's inbox", "reply to the blocked issue", "validate the resolution", or a supervisor or engagement payload names this skill.

★ 0
thkennedy
thkennedy/tk-studio

tk-studio-session

Session discipline as a surface — land a boundary handoff (optionally carrying knowledge deltas) and end the session, or resume a fresh session from a run workspace alone. Use when the user says "hand off this run", "tk session", "resume the run", or a boundary/budget trigger says the session must split.

★ 0
thkennedy
thkennedy/tk-studio

tk-studio-research

Run a chartered research pass — survey the topics a charter scopes, grade every finding by evidence, land the findings in the run workspace, and emit observation events for recommendation-worthy ones. Use when the user says "run the ecosystem watch", "tk research", or a research job's invoke-skill directive names this skill.

★ 0
thkennedy
thkennedy/tk-studio

tk-studio-report

One-verb human defect report — "the skill did the wrong thing" — recorded as a report event in the local measurement ledger. Use when the user says "tk report", "report a defect", "that skill misbehaved", or "log a studio issue".

★ 0
thkennedy
thkennedy/tk-studio

tk-studio-playable-judge

The playable-verify leg's screenshot judge (Story 34.3) — reads only a playable run's report.json and its frames, answers the fixed rubric (scene loaded, player visible and framed, no magenta or error overlay, HUD reads, the named moments shown) with pass or fail and findings each naming a frame and a rubric line. Driven headless by the supervisor's host leg on the project's sandbox tier; use when the payload names a playable `media` folder, or the user says "judge the playable frames".

★ 0
thkennedy
thkennedy/tk-studio

tk-studio-plan-sync

Planning adapter — canonicalize BMad-native planning artifacts (normalize pass, sole id authority) and sync them with the bound planning backend. Use when the user says "sync the plan", "normalize planning artifacts", "tk plan sync", or after stock BMad planning flows produce or change epics/stories.

★ 0