Agent Skills for Solopreneurs & Teams.
Overview
SBTD connects . Your coding agent does the work; the workflow makes scope, permissions and verification explicit. This repository is a , not a business application. The main workflow targets ; the installers also expose Claude Code and Kimi adapters. Adapter availability is not proof of identical host behavior. The catalog contains 14 bundled and 19 required external Skills. See the English CHANGELOG and Chinese counterpart for the same release history. Code, CI, installation, native checks and actual host acceptance remain separate evidence layers; publishing a tag does not upgrade your environment. See the delivery plan and acceptance boundaries. Paste this into your coding agent; replace the target agent if needed: Prefer the terminal? With Node/npm available, use the official Skills CLI: skills@latest selects the CLI version, . An unpinned repository source reads the default branch, not the latest tag.
README
SBTD connects specifications, behavior, tests and domain language. Your coding agent does the work; the workflow makes scope, permissions and verification explicit.
This repository is a configuration and Skill source, not a business application. The main workflow targets Codex and Oh My Pi (OMP); the installers also expose Claude Code and Kimi adapters. Adapter availability is not proof of identical host behavior.
Latest stable v2.1.0 is released. The catalog contains 14 bundled and 19 required external Skills. See the English CHANGELOG and Chinese counterpart for the same release history. Code, CI, installation, native checks and actual host acceptance remain separate evidence layers; publishing a tag does not upgrade your environment. See the delivery plan and acceptance boundaries.
| New installation | Already installed | Start a task |
|---|---|---|
| Bootstrap Onboard, then review setup | Check, upgrade or initialize another project | Choose a mode and copy a task prompt |
Install: start with your agent
1. Install the Onboard Skill only
Paste this into your coding agent; replace the target agent if needed:
Install only sbtd-workflow-onboard from the KunoLu/640-skills v2.1.0 tag
into my user-level global Skills directory for Codex, not this project.
First resolve that revision and verify it exists; do not silently substitute main or a v1 package.
Use the official skills CLI and copy the full directory. Show the resolved source and target.
Do not run init/reset, install other tools, or change AGENTS/MCP configuration yet.
Prefer the terminal? With Node/npm available, use the official Skills CLI:
npx --yes skills@latest add https://github.com/KunoLu/640-skills \
--skill sbtd-workflow-onboard --global --agent codex --yes --copy
npx skills list --global --agent codex
skills@latest selects the CLI version, not a Skill release. An unpinned repository source reads the default branch, not the latest tag. Pinning syntax is 'KunoLu/640-skills#@sbtd-workflow-onboard': replace `` with an existing v2 tag or reviewed commit, and follow that revision’s documentation. Do not combine a historical v1 package with the v2 setup prompts below: its initialization may install or invoke the retired Trellis/GitNexus workflow. For v1 data, use the migration prompt below instead of init/reset.
Bootstrap is not setup. It copies the self-contained Onboard package; it does not execute onboard.py, install the remaining Skills or Python dependencies, configure MCP, or initialize projects. Find the actual installed directory rather than assuming a HOME path. For OMP or another host, confirm its supported Skills CLI agent identifier and discovery path instead of assuming Onboard’s platform name is the same identifier.
2. Review and initialize selected projects
Use sbtd-workflow-onboard to initialize /abs/project-one,/abs/project-two.
Target platform: codex. These are the existing absolute project roots I want initialized;
install project AGENTS.md in both. First check the installed package's Python dependencies
and show plan --json, including global Skills, global AGENTS and host/MCP targets.
Ask before installing missing prerequisites or applying the plan. After I approve,
run init and report each project's writes, backups, skipped checks and remaining actions.
Use omp instead of codex for OMP setup. Multiple project roots are separated by English commas. A normal setup installs the 14 bundled + 19 required external Skills globally; optional tools retain their own confirmation gates.
Onboard needs Python 3.10+ and its declared dependencies for contract/state/migration validation. After reviewing and authorizing dependency installation, run this with the interpreter that will execute the installed copy:
python -m pip install -r /path/to/installed/sbtd-workflow-onboard/requirements.txt
Check the write scope. Normal
init/resetwrites global Codex rules by default, and also backs up and overwrites the OMP global rules file, following omp 18.19.0’s own resolution:$PI_CODING_AGENT_DIR/AGENTS.mdwhenPI_CODING_AGENT_DIRis non-empty (relative values, including a leading~, resolve against the process current directory —~/xmeans a folder literally named~there — and the directory is created when missing); a named profile (OMP_PROFILEbeforePI_PROFILE) targetsprofiles//agent/AGENTS.mdand ignores the variable; otherwise~/.omp/agent/AGENTS.mdonly when~/.ompalready exists, withPI_CONFIG_DIRnaming the home subdirectory that replaces.omp(an absolute value is joined under home too, never used as an absolute path). Selecting a platform does not select the global AGENTS destination.--global-agents-pathchanges only the Codex target. Use project-only mode when global writes are not wanted.
Bootstrap guide · Setup contract · Path resolution
Usage: copy a prompt for your goal
These are natural-language requests to your agent, not new CLI commands. Replace bracketed inputs and /abs/... paths. The agent should read local facts first and ask only for missing choices or required authorization.
Manage an installation
| Goal | Choose | What it means |
|---|---|---|
| Inspect without installing | check / plan |
Read-only inventory and proposed work; not proof that setup ran |
| First full setup | init |
Install missing/invalid Skills; preserve valid Skill shells, not necessarily current content |
| Add a project only | init-projects |
Project AGENTS/ignore and applicable local assets; no global installation or user MCP/hooks |
| Align an existing environment | upgrade |
Fixed-baseline plan/apply/verify, explicit drift decisions, backups and recovery |
| Deliberately reinstall | reset |
Overwrite bundled Skills without backup, reinstall required externals; not an upgrade recovery protocol |
| Move legacy data | migration |
Approved projections, retained originals and verified receipts; separate deployment authorization; interrupted deployment evidence is reconciled from current state, never backfilled |
| Retire detected legacy assets | cleanup-legacy |
Display actual candidates, then obtain separate execution consent |
| Restore an authorized batch | recovery |
Plan and confirm restoration from trusted batch evidence; not a general undo command |
The first-time initialization prompt covers a new v2 installation after bootstrap. Use the following prompts for an existing installation or a v1 project; substitute the exact reviewed v2 source, project roots and configuration domains before execution.
Use SBTD in daily development
Start here for ordinary work:
Use sbtd-task in default mode for [goal] in this repository.
Read the project rules and relevant lessons, inspect the existing implementation,
make the smallest correct change, and exercise the changed path.
Report changed files, actual verification, skipped checks and remaining risks.
Do not install tools, migrate data, deploy or sync configuration without separate authorization.
| Situation | Recommended prompt |
|---|---|
| Small, bounded change | “Use sbtd-task in lite mode for [change]. Keep a shared short task card, acceptance checklist and focused verification; preserve all project safety requirements.” |
| High-risk or audited delivery | “Use sbtd-task in strict mode for [goal]. Create a new branch, record requirements and acceptance, produce the Book Gate Plan, complete applicable gates and independent review, then report evidence.” |
| Unclear requirements | “Use grill-with-docs for [idea]. Read repository facts first, clarify decisions and record domain language. After the full interview, run book-ddd-distilled-modeling and show the independent DDD Boundary Review before design or implementation.” |
| Reproducible bug | “Use diagnosing-bugs for [observed failure]. Establish a failing feedback loop, identify the cause, then use tdd for a regression test where appropriate. Verify the preserved behavior as well as the fix.” |
| UI and regression | “For [page/flow], use ui-ux-pro-max, shadcn if the project uses it, and impeccable for visual review. Use gherkin-bdd and project-validation; persist Playwright assets with web-ui-autotest-generator only if maintainable inputs are available.” |
| Mobile / Hybrid | “Use maestro-mobile-e2e for [journey] on [iOS/Android]. Confirm the BDD source, app, device, backend, accounts and selectors before creating flows. Run the applicable Maestro validation and retain native reports plus Chinese summaries.” |
| Simplicity review | “Use ponytail-review on this diff. Propose deletions and simpler native solutions without weakening correctness, readability or safety.” Use ponytail-audit for a whole-repository audit, ponytail-debt for existing deferral markers. |
| Resume or hand off | “Continue SBTD task [task ID]. Check its root, branch and effective mode; preserve that mode and ask if candidates conflict.” / “Prepare an sbtd-task handoff for [task ID], preserving completed work, evidence, next action and limitations.” |
| Read behavior into a knowledge base | “Use knowledge-base-integration to read [configured product/repositories] at [target ref]. Resolve exact SHAs, produce the behavior catalog, and report missing mappings. Mutation: none; do not rewrite .feature or publish evidence.” |
Want tracker deliverables? Explicitly request to-spec or to-tickets, identify the tracker and authorize publication. These are not substitutes for local task state, and their tracker setup is not automatically supplied by Onboard.
Want a different reply style? adhd mode opts into i-have-adhd; /caveman requests compact replies when Caveman is available. normal mode exits both. Reply style never changes default/lite/strict execution requirements.
How the workflow fits together
SBTD is this repository’s combination of four practices, not a new runtime or framework:
| Practice | Question it answers | Typical artifact or method |
|---|---|---|
| SDD — Specification-Driven Development | What are we building, and why? | Requirements, PRD/design, acceptance criteria |
| BDD — Behavior-Driven Development | What can a user observe? | Project-owned Gherkin scenarios and traceable tests |
| TDD — Test-Driven Development | How do we prove a change at the right boundary? | Red–green–refactor at agreed test seams |
| DDD — Domain-Driven Design | Which terms, rules and boundaries must agree? | Glossary, context/ADR decisions, independent boundary review |
Read project facts and lessons → resolve task, branch, scope and mode
→ clarify requirements / domain language as needed
→ full grill-with-docs? Independent DDD Boundary Review must be confirmed
→ specify observable behavior → design and applicable pre-development gates
→ implement with risk-appropriate TDD → smoke and readability review
→ project-native validation + applicable Web / Mobile / evidence checks
→ release-readiness review when triggered → record actual completion
Choose an execution mode
| Mode | Use it for | Working contract |
|---|---|---|
default |
Ordinary tasks | On-demand investigation, implementation and focused validation; only needed local records |
lite |
Bounded tasks needing a shared trail | Short checklist and shared task card, not a mandatory full document pack |
strict |
Explicitly rigorous delivery | Applicable before-dev/check/finish obligations, Book Gate Plan and required evidence |
Mode precedence is your current explicit choice → the same task’s valid record → default for a genuinely new task. A suggested change waits for your decision; continuing a task does not reset its mode. All modes preserve explicit deliverables, project rules and safety. Every completed full grill-with-docs requires the independent DDD review in all three modes.
Strict gates are triggered by facts: domain ambiguity, persistent/shared data, uncertain legacy behavior, existing production-code edits, or production runtime/deployment changes. Not every gate runs on every task; a required but unavailable gate is blocked, not passed. Strict contract · Method routing · Workflow paths
State without a second source of truth
task.mdowns mode, status and events. Ordinary default tasks use.sbtd/tasks//; lite/strict or explicitly shared tasks useai/tasks//..sbtd/active-task.jsonis only a bookmark.cancelledis a terminal cancellation, not successful completion:completed_atstays null. Cancellation never cascades to children; archive and explicit reopen preserve its history. Importedblockedrecords with an unknown prior phase require an explicit recovery choice. Update the task runtime, schema and Skill references together before using these records with older installations.- Handoffs live under protected
docs/handoffs/on a real pause/switch or explicit request; they never override the task. Pure Q&A/read-only work creates no task, identity or handoff files. - Developer identity is needed for a durable lesson write, not ordinary work. A valid local
.sbtd/developerwins; only genuine absence in a verified linked worktree allows reading the main checkout’s identity. Never guess names or replace a malformed identity.
Task state · Handoffs · Lessons
Skill catalog
Installed together, used when relevant. Normal Onboard init/reset targets global Skills. Bootstrap alone and project-only initialization do not install or activate the complete global workflow. The catalog owns membership; click a Skill for its full instructions and references.
14 bundled Skills
| Skill | Job / when to use it |
|---|---|
| sbtd-workflow-onboard | Check, install, initialize, upgrade, migrate and recover explicitly selected environments |
| sbtd-task | Route work through default/lite/strict; manage task state and continuation |
| gherkin-bdd | Author observable behavior; distinguish writable BDD sync from read-only ingest |
| project-validation | Select native checks, applicable testing tools and truthful evidence/report status |
| web-ui-autotest-generator | Generate/audit maintainable Playwright assets and selector/coverage manifests |
| maestro-mobile-e2e | Derive Mobile/Hybrid Maestro flows from BDD and verify real device prerequisites |
| knowledge-base-integration | Product registry, Evidence Policy, Revision Sets, read-only ingest and staged smoke |
| lessons-record | Record durable lessons with validated author identity and topic/index ownership |
| book-ddd-distilled-modeling | Review domain language and boundaries; mandatory after every full grill-with-docs |
| book-ddia-data-design | Review data ownership, consistency, schema, cache, migration and recovery design |
| book-legacy-change-safety | Characterize existing behavior and establish a safety net before risky changes |
| book-refactoring-pass | Review the smallest safe structure change before production-code edits |
| book-release-readiness | Review operational risk and rollback after required validation |
| seo-geo | Audit search/AI visibility for public web surfaces, not internal apps or API regression |
19 required external Skills
These are reviewed upstream mirrors, not local forks. auto and stable install from the bundled snapshot without fetching upstream; only an explicit upstream selection opts into current upstream evaluation. Exact revisions, checksums and licenses live in the stable manifest.
| Area | Skills | Purpose |
|---|---|---|
| Clarification | grilling, grill-me, grill-with-docs | Stress-test decisions; use the documented variant for domain records |
| Specifications | to-spec, to-tickets | Turn agreed discussions into tracker specs and dependency-aware work slices |
| Design | domain-modeling, codebase-design | Shared language, context decisions, module interfaces and test seams |
| Debug & test | diagnosing-bugs, tdd | Evidence-first diagnosis and red–green feedback loops |
| UI | ui-ux-pro-max, impeccable, shadcn | UX/design systems, visual refinement and shadcn/ui-specific implementation |
| Simplicity | ponytail, ponytail-review, ponytail-audit, ponytail-debt | Minimal implementation, diff review, whole-repo audit and deferral ledger |
| Agent collaboration | handoff, writing-for-agents | General handoff prose and agent-facing documentation; SBTD state remains owned by sbtd-task |
| Reply structure | i-have-adhd | Opt-in, session-level, action-first replies; installation does not activate it |
Onboard uses the Ponytail skill-only provider. An enabled official Ponytail plugin is a conflict, not permission to disable it; plugin management and ponytail-gain/ponytail-help are outside Onboard. Provider boundary
Tools and verification boundaries
| Tool / layer | Owns | Does not prove |
|---|---|---|
| Graft | Pinned, scoped structural analysis and impact assistance | Compiler semantics, business correctness or automatic host readiness |
| Chrome DevTools MCP | Browser runtime, console/network/performance diagnosis | Repeatable CI regression |
| Playwright MCP | Page exploration and locator assistance | A passing project Playwright suite |
| Playwright CLI | Project-local Web regression and E2E | Full-stack behavior when only mocks/contracts are available |
| Maestro CLI / MCP | Mobile/Hybrid flows; device/flow diagnostics; optional Web smoke | Primary Web regression or unavailable real-device behavior |
| RTK / Caveman | Terminal-output / reply compression | Test execution, reports or reduced workflow obligations |
Graft installation is separately confirmed and pinned by the managed runtime. One global sbtd-graft connection per effective Codex/OMP configuration domain locks the real repository/worktree from startup cwd; project initialization prepares local graphs. No parent-directory multi-project graph, implicit cloud enrichment, or silent legacy binding replacement. Codex hooks are a separate opt-in; OMP setup does not write hooks. Wiring contract
Managed Graft stays on the Graft command/tool contract even when Trail is installed: child environments disable automatic Trail switching and inherited Trail configuration. Project .trail notes are subject to the same no-link/no-special-file scope checks as native graph inputs. See pin acceptance scenarios.
Report what actually ran. Native commands are preferred for report-producing tests. Keep failed runs, named native/raw reports and same-stem Chinese summaries. Distinguish full-stack, contract-backed, mock-backed/app-mocked, backend-only, smoke-only and blocked; a generated report is not a passing test. Dirty local evidence is not exact PR-head CI proof.
Agent-authored execution summaries use the fixed Chinese report template: conclusion/counts, run metadata, commands, BDD/scope, case results, failures/reruns, API URI coverage, artifacts/status, and limitations. Preserve failed rounds and source/deployment boundaries; unsupported fields need an explicit reason, not fabricated values. Coverage scoring is an appendix, not a substitute for execution results. Historical reports remain unchanged; reformatting retained evidence is a separately labeled preview, not a new test run.
| Asset | Default location in a target project |
|---|---|
| BDD source | Existing project .feature convention; Chinese scenario text + English keywords when no convention exists |
| Playwright test manifests | tests/e2e/manifest/ — pass explicit paths, not root-level generator defaults |
| Playwright retained reports | tests/e2e/reports/html/ |
| API reports | tests/api/reports/ |
| Maestro flows / reports | maestro/flow/ / .maestro/reports/ |
| Unit reports | Project convention; otherwise tests/unit/reports/ when required |
| SBTD task-local evidence | ai/tasks/**/reports/ — ignored; task documents remain shareable |
Knowledge-base P1.1 produces read-only catalogs and smoke bundles; remote Evidence Store/PR Checks and publication remain P2 scope. BDD sync is a separate writable workflow. Knowledge-base guide · Evidence contract
Reference and manual entrypoints
| Need | Read |
|---|---|
| Full Onboard commands, scope and troubleshooting | SKILL · REFERENCE |
| Bootstrap / init / reset / project-only flowcharts | Bootstrap · Init · Reset · Project-only |
| Upgrade / migration / cleanup / recovery | Upgrade · Migration & recovery · Cleanup |
| Global / project rules | Global template · Project template |
| Release history / monitored versions | English CHANGELOG · 中文变更日志 · ENTRYPOINT · Bilingual release/tag template |
Repository and maintenance
| Path | Role |
|---|---|
README.md / README.zh.md |
English and Chinese reader entrypoints; detailed contracts stay in linked sources |
sbtd-workflow-onboard/ |
Self-contained installable Skill: runtime scripts/, payload templates/, mirrored assets/, catalog and reference |
sbtd-runtime/ |
Optional local statistics runtime and contracts, including a runnable Dashboard serve (installation and use). Not installed or copied by Onboard; start it manually from the repository root after installing the documented dependencies |
install.sh / install.ps1 |
Root installation interfaces; source root is the Onboard directory |
ENTRYPOINT.md |
Tracked monitoring baseline and recoverable maintenance entrypoint |
docs/lessons.md |
Required short lessons entry; index/topic detail is loaded only when relevant |
prompts/automations/sbtd-workflow-tools-version-check.md |
Versioned automation prompt, not a live automation update |
prompts/automations/references/ |
Mandatory version-check scope policy and topic-routed compatibility checks |
.github/workflows/validation.yml |
Project-native validation matrix |
This source repository’s root AGENTS.md is optional, ignored and local-only; it is not the project template or a fresh-clone prerequisite. Its root .gitignore is intentionally separate from the target-project template:
.DS_Store
/.sbtd
/docs/handoffs
/ai/tasks/**/reports
/graft
/.graft
__pycache__/
/.pytest_cache/
/.ruff_cache/
AGENTS.md
.chrome-devtools-mcp/
.playwright-mcp/
Ignore rules do not sanitize secrets, untrack existing files or authorize deletion. Task reports are local by default; publishing evidence requires redaction and a separately approved destination. This template-source repository does not create .feature files; its durable behavioral specifications use Markdown and existing tests.
For source changes, assess both language READMEs, English CHANGELOG, Chinese CHANGELOG and the versioned automation prompt. The changelogs must match entry for entry: same versions, dates, order, facts, URLs, commit SHAs and code identifiers; only prose language differs. Update the top unpublished section in both, and preserve published history. Ordinary edits do not sync installed copies or live automation. Repository-maintenance sync requires explicit authorization; update advances monitored baselines other than Graft and archives the analyzed update. Graft’s ENTRYPOINT baseline follows the pin in a published SBTD workflow version and is not advanced by official Graft releases or update. These are not Onboard upgrade commands or BDD sync requests.
The version-check automation uses a short main prompt, a per-run scope policy and an on-demand impact checklist. It validates the assigned Orca workspace, protects existing changes, distinguishes unavailable evidence from “no update”, and keeps ENTRYPOINT.md as the fixed baseline for official tool releases. Graft is the exception: its recorded baseline changes only when a published workflow version contains a new agreed pin. Native tag names are retained separately from comparison versions. When no confirmed unpublished CHANGELOG section exists, release-note proposals stay in UPDATE.md or the run output; the automation does not invent the next tag. Updating these source files does not update the live automation; that remains an explicit sync operation.
The native full-suite command remains python -B -m unittest discover -s tests -p 'test_*.py'. CI discovers that complete Linux set and partitions it into disjoint shards weighted by measured per-case seconds, splitting fixture-free cases individually and keeping class/module fixtures together (cases without a recorded weight are estimated at the median and listed in each shard inventory); Windows partitions its native scope without repeating overlapping PowerShell/Unicode selectors. macOS keeps its native scope. The existing check names aggregate all required shards; any failed, cancelled or missing shard blocks success. The minimum supported TOML-editor run remains a separate dependency variant, not a duplicate. Per-case timings, skip reasons and Chinese result summaries are retained as CI artifacts. Consult the workflow and runner for exact scope. Source checks, installed-copy checks, real host loading and release acceptance remain separate evidence.
Catalog-independent migration boundary tests narrow only their installation inputs: they retain the complete Onboard launcher package, multiple sibling Skills and all file-routing operations. Full-catalog lifecycle and installed-copy tests remain separate anchors. Every stage still runs the real migration/recovery APIs and fresh safety checks; smaller fixtures do not authorize cached verdicts, reused receipts or omitted drift cases. Compare total runner cost separately from parallel wall-clock time.
Required native Windows checks (including ACLs, junctions, Unicode, PowerShell and enabled case-sensitive paths) and Linux case-sensitive checks must pass, not merely be selected: skip or expected failure blocks their shard.
CI artifacts retain each native run attempt without overwriting failures. Partial retries may reuse successful shards from the same SHA; aggregation selects each shard’s newest report, rejects newer failures or ambiguous duplicates, and proves that the union covers the complete scope exactly once. Skip totals count native events, including skipped subtests; parent-case status counts can differ. Preserve subtest identities and reasons when comparing runs.
Windows currently uses four shards, Linux three, and macOS one job. After downloading a complete successful native report set, refresh scheduling inputs with python -B tests/run_ci.py --platform windows --output --refresh-weights (use linux for Linux). Refresh requires a nonempty source revision and an unambiguous, complete, disjoint latest-attempt set; duplicate measurements or noncanonical shard filenames are rejected. Weights only change allocation, never test selection. Equal line/branch coverage alone does not justify removing a behavioral or platform boundary test.
License and credits
Original repository and bundled original content use Apache License 2.0, with Onboard LICENSE and NOTICE shipped in the package. Third-party mirrors retain their own licenses and pinned provenance; the adapted seo-geo NOTICE records its upstream source and local changes.
Recommended Tools
Try a different keyword or remove a filter.
Install
npx skillfish add kunolu/640-skills