tp-task-cycle

tp-task-cycle is a skill for Claude Code from CurtisThe/three-pillars-plugin. It costs 36 tokens per session (1,525 once invoked), scanned A, original, Apache-2.0.

A workflow for one red-green-refactor cycle in test-driven development, or TDD. TDD means writing a failing automated test, making the code pass, and then improving the code without changing its behavior.

In plain words
What is it for?
Implement one task from a design plan, write its failing test, make the test pass, and refactor the result.
Why use it?
It gives a coding task a small, repeatable implementation loop with a test as the check. This makes it easier to verify behavior before and after the code changes.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md.

Part of the three-pillars plugin — 40 skills, 58 agents shipped together

Good fit Implement one task from a design plan, write its failing test, make the test pass, and refactor the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/curtisthe/three-pillars-plugin/tp-task-cycle
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CurtisThe/three-pillars-plugin --skill tp-task-cycle
Clone the repo
git clone --depth 1 https://github.com/CurtisThe/three-pillars-plugin

Made for: Claude Code.

Or install three-pillars, the plugin that ships this one along with the rest of its 40 skills, 58 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tp-task-cycle

README.md
[![agentmods](https://agentmods.dev/badge/skills/curtisthe/three-pillars-plugin/tp-task-cycle/github.svg)](https://agentmods.dev/skills/curtisthe/three-pillars-plugin/tp-task-cycle)
Your own site
<a href="https://agentmods.dev/skills/curtisthe/three-pillars-plugin/tp-task-cycle"><img src="https://agentmods.dev/badge/skills/curtisthe/three-pillars-plugin/tp-task-cycle/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tp-task-cycle

Your own site · 80×15
<a href="https://agentmods.dev/skills/curtisthe/three-pillars-plugin/tp-task-cycle"><img src="https://agentmods.dev/badge/skills/curtisthe/three-pillars-plugin/tp-task-cycle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,525 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01525
Opus 5.5 $0.00014 $0.00610
Sonnet 5.5 $0.00007 $0.00305
Haiku 4.5 $0.00004 $0.00153

Measured 1mo ago against content hash e242ee129d91, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tp-task-cycle scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/tp-task-cycle/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Red-Green-Refactor

Execute one TDD cycle for a single task.

Argument: Either a task description in plain text, OR a {design-name} followed by a task ID (e.g., my-feature 2.3 for Phase 2, Task 3).

Steps

Preflight

  1. Run first-run preflight per skills/_shared/first-run.md.

  2. If a {design-name} was provided, run the collaboration preflight per skills/_shared/collaboration.md with phase: "implement". This verifies the branch and lock before writing code. Honor --force-takeover if passed. If invoked standalone with only a description (no design name), skip this step.

Red — Write a Failing Test

  1. If a task ID was given, read the task from three-pillars-docs/tp-designs/{design-name}/plan.md to get the file, test, and assertion details.
  2. Write the test from the design and plan text, as specified, and cite skills/_shared/test-fragility.md (assert behavior through the public seam; no over-mocking, no incidental coupling). Import the module/function being tested even though it may not exist yet.
  3. Run the test and confirm it fails. Acceptable failures are language-dependent but generally:
    • Missing import / module not found (function doesn't exist yet)
    • Assertion failure (function exists but doesn't behave correctly)
    • Missing attribute / method not found (class exists but method doesn't)
  4. If the test passes, something is wrong — the behavior already exists or the test is vacuous. Stop and flag this to the user. 4a. Commit the red. Stage only the task's Targets files (git add <paths>, never git add -A) and commit Red: {design-name} {phase}.{task} — {task-title} per skills/_shared/commit-after-work.md. A task with no Targets files, or a test-only task, skips this step (see §Commit).

Green — Make It Pass

  1. Write the minimal implementation that makes the test pass. Green never edits a Targets file (they are frozen at the red). Minimal means:
    • No extra methods, parameters, or branches beyond what the test exercises.
    • No error handling for cases the test doesn't cover.
    • Hard-coded return values are OK if that's all the test needs (the next test will force generalization).
  2. Run the test and confirm it passes.
  3. If it fails, fix the implementation, never the test. A wrong test means a new attempt from a new red, not an edit to a Targets file. Iterate until green.
  4. Run the broader test suite for the file/module to check for regressions via the fast iteration lane: set -o pipefail; python3 "$TP_ROOT"/skills/_shared/iteration_lane.py --lane iteration --granularity task --exec 2>&1 | tee "$(mktemp "${TMPDIR:-/tmp}/test_output.XXXXXX.log")" (--exec runs the resolved command through the shell; pipefail keeps its exit status through tee). The seam resolves the fast unit subset in the dev repo and the project-discovered command in a consumer repo. If it resolves nothing, the log carries the iteration_lane: no test command resolved diagnostic (exit 78; identify the case by that line, not the status alone): discover the runner from CLAUDE.md / Makefile / package.json / pyproject.toml as before — never tee an empty command as green.

Read the full file on GitHub · 77 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed e242ee129d91
  2. 1mo ago Changed · +3 lines 3c935d4d9742
  3. 3mo ago First seen · 74 lines · 36 tokens per session scan A 6ba944347ba6

Subscribe to this mod's changes

tp-task-cycle is a skill published in the GitHub repository CurtisThe/three-pillars-plugin (5 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 36 tokens to every session and 1,525 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

tp-task-cycle compared with skills from other repositories

tp-task-cycle next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tp-task-cycleCurtisThe/three-pillars-pluginSkill51mo agoApache-2.0A36Claude Code
engram-testing-coverageGentleman-Programming/engramSkill8.4k8d agoMITA25Claude Code, Codex
iterative-developmentalinaqi/maggySkill7135d agoMITA24Claude Code
tddglebis/claude-skillsSkill417todayMITA92Claude Code
mobiai-mobile-tddArisGuimera/MobiAI-CoreSkill4962d agoMITA38Claude Code
nw-ddd-eventsourcingnWave-ai/nWaveSkill63713d agoMITA38Claude Code
nw-leanux-methodologynWave-ai/nWaveSkill63713d agoMITA37Claude Code