astrobyte-tdd
Skill1 starsChanged 14 days agoMITView on GitHub
Use a pragmatic red-green-refactor loop for behavior changes and bug fixes when a trustworthy test seam is clear and affordable. Use when the user asks for TDD, a regression test, red-green-refactor, or implementation through tests.
In this repository43 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/adopt-skill-stack.mdcCursor rule
- adopt-skill-stackSkill
- api-and-interface-designSkill
- astrobyte-architectSkill
- astrobyte-git-identitySkill
- astrobyte-modeSkill
- astrobyte-project-startupSkill
- astrobyte-pr-workflowsSkill
- astrobyte-recallSkill
- astrobyte-reviewSkill
- astrobyte-show-workSkill
- astrobyte-verify-projectSkill
- blast-radiusSkill
- browser-testing-with-devtoolsSkill
- ci-cd-and-automationSkill
- codebase-designSkill
- continual-improvement-checkSkill
- deprecation-and-migrationSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- frontend-designSkill
- frontend-ui-engineeringSkill
- git-workflow-and-versioningSkill
- grillingSkill
- handoffSkill
- hermetic-test-suitesSkill
- observability-and-instrumentationSkill
- performance-optimizationSkill
- pr-feedback-loopSkill
- prototypeSkill
- researchSkill
- security-and-hardeningSkill
- setup-astrobyte-skillsSkill
- shipping-and-launchSkill
- source-driven-developmentSkill
- technical-writingSkill
- to-questionnaireSkill
- typescript-best-practicesSkill
- unslopSkill
- update-skill-stackSkill
- writing-for-agentsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Write one test for the requested behavior.
- Distinctive: line 17
Run it and observe the expected failure.
- Distinctive: line 25
Run the focused test.
- Distinctive: line 26
Run affected regression coverage after it passes.
≈ “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
Astrobyte TDD
Choose the seam
Describe one observable behavior and choose the cheapest test that fails for the right reason.
Use TDD when the seam is deterministic and the loop is tight. For expensive training, hardware-specific runtimes, broad end-to-end systems, or unclear failures, first build a smaller reproduction, contract test, smoke check, or measurement harness. State why a red unit test is not trustworthy before using another proof.
Red
- Write one test for the requested behavior. Assert public behavior.
- Run it and observe the expected failure.
- Fix the test or seam if it fails for setup, syntax, or an unrelated cause.
Red is complete when the failure specifically demonstrates the missing behavior or bug.
Green
- Implement the smallest change that can satisfy the test.
- Run the focused test.
- Run affected regression coverage after it passes.
Green is complete when the new test and affected tests pass without skips or weakened assertions.
Refactor
Improve names, duplication, boundaries, and data shapes while keeping the loop green. Stop when the code is direct and the abstraction level matches existing needs.
For empirical ML quality, keep code tests separate from experiment acceptance. A green training test proves the pipeline works; evaluation data proves the model improved.
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.

