coding-practices
Mandatory TDD, verification, and root-cause debugging for governed work-order implementation.
Skill by TribalScale
Chalk Labs
Need help deploying coding-practices?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/tribalscale-coding-practices
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/coding-practices
What's inside
- Skill name
coding-practices- Description
- Mandatory TDD, verification, and root-cause debugging for governed work-order implementation. Use whenever implementing WO-NNN via OpenCode.
- License
- Apache-2.0
- Compatibility
- opencode
- Metadata
- owner: ts-harness · audience: coding-backend
- Instructions
- 82 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Coding practices Follow these practices for every governed work-order implementation. This run is **non-interactive**: implement immediately. Do not ask for approval, present a design for sign-off, or wait for a human. Specs under `docs/` are already approved. The host coding backend owns git/gh. Do **not** commit, push, or open a pull request. ## Test-driven development **Core principle:** If you didn't watch the test fail, you don't know if it tests the right thing. ``` NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST ``` For each behavior slice in this work order: 1. **RED** — write one failing unit or integration test that names the behavior. 2. Run it. Confirm it fails for the **right** reason (missing behavior, not a syntax/import error). 3. **GREEN** — write the minimal production code to pass. 4. **REFACTOR** — clean up with tests still green. Do **not** write production code before a failing test for that slice. If you already wrote implementation first, delete it and start from the test. Do not keep it as "reference" or "adapt" it while writing tests. **Always** for new features, bug fixes, and behavior changes. Skip only for throwaway config/docs-only chores with no observable behavior. Thinking "skip TDD just this once"? Stop. That's rationalization. RED tests must: - Cover one behavior with a clear name - Exercise real code (mocks only when unavoidable) - Fail because the behavior is missing, not because the test is broken Installing dependencies or fixing test runners is **not** implementation. After runners work, still deliver this work order's behavior with tests. ## Verification before claiming done **Core principle:** Evidence before claims, always. ``` NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE ``` Before saying the work order is implemented, tests pass, or a bug is fixed: 1. Identify the command that proves the claim (repo test runner, BDD runner). 2. Run the **full** command in this session. 3. Read the output and exit code. 4. Only then state the result **with** that evidence. Not sufficient: previous runs, "should pass", "looks correct", "I'm confident", partial checks. The host will also run verification after you finish. Your job is still to leave a green, WO-scoped suite — not to assume the host will catch gaps. ## Debug failures before patching When tests fail, verification fails, or behavior is wrong: ``` NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST ``` 1. Read the full error, stack, and command output. 2. Reproduce it. 3. Check what changed (this WO vs pre-existing suite). 4. Fix the **cause**, then re-run the same command. Do not paper over missing WO behavior by only adding packages, ignoring tests, or making an unrelated suite green. If host verification complains about missing features/code for this WO, implement that WO — do not stop at runner/deps. ## Repo conventions - Use the target repo’s existing test runner, layout, and linters. - Prefer small, focused diffs that stay inside the work-order scope. - Do not invent a second test stack when one already exists. ## Done when - Each in-scope behavior had a failing test first, then passing code (TDD). - Fresh test/BDD output in this session is green for the change set. - You stated results with that evidence, not with "should work".
From TribalScale/ts-harness, Apache-2.0.
More from TribalScale/ts-harness
- 0.600score
program-builder
TribalScale
Draft a new program (workflow, program, and routing intent) from a person's description on the admin program builder page.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
implement-work-order
TribalScale
Implement one governed work order from docs/planner specs.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
prd-to-work-orders
TribalScale
Converts Product Requirements Documents (PRDs) into validated Feature Requirements Documents (FRDs), technical Blueprints, and agent-ready Work Orders through…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
verified-merge
TribalScale
Delivers a unit of work through scoping, implementation, local verification, PR review, CI, merge approval, and post-merge verification using a pluggable…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
source-work-order
TribalScale
Source adapter that fetches Work Orders from docs/planner and maps them to NormalizedDeliveryContext for verified-merge.
SkillAFreshness: A★ 2Claude Code +9 - 0.597score
prd-to-work-orders-governed
TribalScale
Governed-runtime PRD-to-Work-Orders for enterprise workflow dispatch (JSON artifacts, no manifest/filesystem).
SkillAFreshness: A★ 2Claude Code +9 - 0.595score
verified-merge-governed
TribalScale
Governed-runtime work-order delivery via run_coding_backend (OpenCode) and host git/gh.
SkillAFreshness: A★ 2Claude Code +9 - 0.595score
bdd-acceptance
TribalScale
Derive and automate BDD/Gherkin acceptance scenarios from work orders and planning docs.
SkillAFreshness: A★ 2Claude Code +9 - 0.595score
source-work-order-governed
TribalScale
Governed-runtime source adapter that reads Work Orders from planner JSON artifacts and maps them to NormalizedDeliveryContext for implement handoff.
SkillAFreshness: A★ 2Claude Code +9 - 0.595score
governed-qa-gate
TribalScale
Governed QA gate that verifies delivered PRs against acceptance criteria before the human merge wait.
SkillAFreshness: A★ 2Claude Code +9 - 0.595score
governed-code-review
TribalScale
Governed code review of delivered PRs against the work order before the QA gate.
SkillAFreshness: A★ 2Claude Code +9 - 0.592score
draft-rfp
TribalScale
Draft an RFP response markdown artifact for governed sales review.
SkillAFreshness: A★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 17, 2026 (14 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/TribalScale/ts-harness
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from TribalScale
- 0.600score
program-builder
TribalScale
Draft a new program (workflow, program, and routing intent) from a person's description on the admin program builder page.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
prd-to-work-orders
TribalScale
Converts Product Requirements Documents (PRDs) into validated Feature Requirements Documents (FRDs), technical Blueprints, and agent-ready Work Orders through…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
implement-work-order
TribalScale
Implement one governed work order from docs/planner specs.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
verified-merge
TribalScale
Delivers a unit of work through scoping, implementation, local verification, PR review, CI, merge approval, and post-merge verification using a pluggable…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
source-work-order
TribalScale
Source adapter that fetches Work Orders from docs/planner and maps them to NormalizedDeliveryContext for verified-merge.
SkillAFreshness: A★ 2Claude Code +9 - 0.597score
prd-to-work-orders-governed
TribalScale
Governed-runtime PRD-to-Work-Orders for enterprise workflow dispatch (JSON artifacts, no manifest/filesystem).
SkillAFreshness: A★ 2Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get coding-practices running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
coding-practices skill. Agent Mart. https://agentmart.dev/skills/tribalscale-coding-practices (last updated 2026-10-24)