Autonomous tdd agent

From SHAdd0WTAka/Zen-Ai-Pentest · View interactive version

Autonomous tdd agent is an AI agent skill from the GitHub repository SHAdd0WTAka/Zen-Ai-Pentest. Autonomous Test-Driven Development Agent workflow for implementing features without human intervention. Use this skill when: - Implementing new features from failing tests - Fixing broken test suites - Creating production-ready code with test coverage - Working in TDD mode with minimal guidance The

How to use this skill

Skill file

Autonomous TDD Agent

Execute Test-Driven Development autonomously without asking for clarification. Make reasonable assumptions, document them, and proceed through the implementation loop.

The 6-Step Autonomous Loop

Step 1: Analyze Failing Tests

Step 2: Initial Implementation

Step 3: Predict Test Results

Step 4: Iterate Until Green

Step 5: Refactor

Step 6: Summarize

Workflow Pattern

# 1. READ TESTS
# Read and understand all test requirements

# 2. IMPLEMENT
# Write initial implementation

# 3. TEST & ITERATE
while failing_tests > 0:
    run_tests()
    fix_failures()
    document_fixes()

# 4. REFACTOR
improve_code_quality()
verify_tests_still_pass()

# 5. SUMMARIZE
report_changes()

Rules

  1. Never ask for clarification - Make reasonable assumptions and document them
  2. Implement both approaches - If two valid approaches exist, implement both as branches
  3. Minimal changes - Only change what's necessary to make tests pass
  4. Document everything - Every assumption, every fix, every iteration
  5. Test everything - All code paths must be covered

Example Usage

Feature: Implement a rate limiter
Test file: tests/unit/test_rate_limiter.py

[Execute 6-step loop autonomously]

Output Format

After completion, provide:

  1. Final implementation code
  2. Iteration summary table
  3. Test results
  4. Key assumptions made

See references/WORKFLOW_EXAMPLES.md for detailed examples.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.