Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

MarcherGA/pdca-ai-coding-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PDCA AI Coding Skill

License: MIT Version Claude AI PRs Welcome

Production-ready Claude Skill implementing the Plan-Do-Check-Act framework for AI-assisted code generation.

Based on Ken Judy's InfoQ article - a research-backed methodology that reduces debugging time by 80% while maintaining code quality.


⚑ Quick Links

πŸ“– Getting Started Guide | 🀝 Contributing | πŸ“ Changelog | πŸ”’ Security


🎯 What is This?

This skill helps you write better code with AI assistants (Claude Code, Cline, etc.) by providing:

  • βœ… Structured workflow preventing common AI coding pitfalls
  • βœ… Test-driven development discipline
  • βœ… Quality metrics tracking
  • βœ… Continuous improvement through retrospectives
  • βœ… Prevention of code duplication and regressions

πŸ“Š Research-Backed Results

From the InfoQ article's experiment:

  • 10% fewer tokens used
  • 34% less production code (more maintainable)
  • 30% more test coverage
  • 80% less troubleshooting time
  • Better developer experience

πŸš€ Quick Start

Installation (< 2 minutes)

Option 1: Download Release

  1. Go to Releases
  2. Download pdca-ai-coding.skill
  3. Upload to Claude.ai:
    • Open Claude.ai
    • Click Skills menu
    • Select "Upload Skill"
    • Choose the downloaded .skill file
  4. βœ… Ready to use!

Option 2: Build from Source

git clone https://github.com/YOUR_USERNAME/pdca-ai-coding-skill.git
cd pdca-ai-coding-skill
# Upload pdca-ai-coding.skill to Claude.ai

Your First Session (< 5 minutes)

I need to implement [your feature]. Let's use the PDCA framework.

Claude will guide you through:

  1. Analysis - Search existing patterns, propose approaches
  2. Planning - Break into TDD steps
  3. Implementation - Red-Green-Refactor with human oversight
  4. Check - Verify quality and completeness
  5. Retrospective - Learn and improve

πŸ“ Repository Structure

.
β”œβ”€β”€ pdca-ai-coding.skill          # Upload this to Claude.ai
β”œβ”€β”€ SKILL.md                      # Main skill documentation
β”œβ”€β”€ references/                   # Prompt templates
β”‚   β”œβ”€β”€ working-agreements.md
β”‚   β”œβ”€β”€ analysis-prompt.md
β”‚   β”œβ”€β”€ planning-prompt.md
β”‚   β”œβ”€β”€ implementation-prompt.md
β”‚   β”œβ”€β”€ completion-prompt.md
β”‚   └── retrospective-prompt.md
β”œβ”€β”€ scripts/                      # Automation tools
β”‚   β”œβ”€β”€ track_metrics.py         # Quality metrics tracking
β”‚   └── init_session.py          # Session initialization
β”œβ”€β”€ assets/
β”‚   └── session-template.md      # Session logging template
└── docs/                        # Additional documentation
    β”œβ”€β”€ README.md
    β”œβ”€β”€ GETTING-STARTED.md
    β”œβ”€β”€ PROJECT-CONFIGURATION.md
    └── REFINEMENTS-V1.1.md

πŸŽ“ Documentation

πŸ”§ Key Features

Working Agreements

  • Test-driven development discipline
  • Small, atomic commits (<100 lines, <5 files)
  • Respect for existing architecture
  • Human accountability for all AI-generated code

5-Phase Workflow

  1. Plan (Analysis) - 2-10 min: Search patterns, propose approaches
  2. Plan (Breakdown) - 2 min: Create TDD execution plan
  3. Do - <3 hours: Implement with red-green-refactor
  4. Check - 5 min: Verify quality and process adherence
  5. Act - 2-10 min: Retrospective and continuous improvement

Quality Metrics

Track your progress:

  • Large commits: <20% (>100 lines)
  • Sprawling commits: <10% (>5 files)
  • Test-first discipline: >50%
  • Avg files per commit: <5
  • Avg lines per commit: <100

Automation Scripts

# Track quality metrics
python scripts/track_metrics.py --repo /path/to/repo --since "7 days ago"

# Initialize session with logging
python scripts/init_session.py "Feature name" --objective "What you're building"

🎯 Use Cases

βœ… Use This For:

  • Implementing new features (1-3 hour tasks)
  • Refactoring existing code
  • Adding integrations
  • Any task requiring quality and maintainability

❌ Don't Use For:

  • Quick prototypes or experiments
  • Trivial changes
  • Simple bug fixes (use lightweight version)

πŸ’‘ Why This Works

From the article's research:

The Problem:

  • AI code generation increases output but decreases delivery stability
  • 10x increase in duplicated code
  • Quality issues and integration problems

The Solution:

  • Structured prompting outperforms ad-hoc by 1-74%
  • PDCA reduces software defects by 61%
  • Human-in-the-loop with clear intervention points

πŸ“ˆ Expected Results

After 1 Week:

  • Comfortable with workflow
  • Catching AI errors early
  • Smaller, better commits

After 1 Month:

  • Metrics trending positive
  • Fewer regressions
  • Faster code reviews
  • Less debugging time

After 3 Months:

  • Significantly better code quality
  • Faster delivery
  • Team wants to adopt it

πŸ› οΈ Customization

Project-Specific Configuration

The PDCA skill works globally across all projects. For project-specific tech stack and conventions, you can optionally create a .claude/instructions.md file in your project root. This tells Claude about your specific tech choices without modifying the skill itself.

See docs/PROJECT-CONFIGURATION.md for complete guide on when and how to use project-specific configuration.

Customizing the Skill Itself

The skill is designed to be customized:

# Extract and modify
unzip pdca-ai-coding.skill -d custom-pdca/

# Edit prompts in references/
# Update working agreements
# Adjust quality targets

# Repackage (requires skill-creator tools)
python package_skill.py custom-pdca/

❓ FAQ

Does this work with Claude Code and Cline?

Yes! The skill works with any Claude-based coding assistant including Claude Code, Cline, and the Claude.ai web interface.

How long does a PDCA session take?

Typical sessions are 1-3 hours. The framework helps you break larger tasks into these manageable chunks. You can also use the lightweight version for 15-30 minute tasks.

Can I customize the prompts?

Absolutely! The prompts are designed as starting points. Extract the skill, modify the references/ files, and repackage. The retrospective process will help you refine them based on your needs.

Do I need to follow all 5 phases every time?

For best results, yes. However, the skill includes lightweight versions for simple tasks. At minimum, always do TDD implementation and retrospectives.

What if my team doesn't use TDD?

The framework still provides value through analysis, planning, and retrospectives. However, TDD is core to preventing AI-generated regressions. Consider adopting TDD at least for AI-assisted coding.

How do I track metrics without GitHub Actions?

Use the included track_metrics.py script locally:

python scripts/track_metrics.py --repo . --since "7 days ago"
Do I need a .claude/instructions.md for every project?

No! Only create it for projects with specific conventions or when you find yourself repeating the same context. See PROJECT-CONFIGURATION.md for guidance.

🌟 Star History

If you find this useful, please star the repository! It helps others discover the framework.

Star History Chart

πŸ’¬ Community

πŸ“š Learn More

🀝 Contributing

We welcome contributions! See CONTRIBUTING.md for detailed guidelines.

Quick ways to contribute:

  1. ⭐ Star the repo - Help others discover it
  2. πŸ› Report bugs - Use our issue templates
  3. πŸ’‘ Suggest improvements - Based on your retrospectives
  4. πŸ“ Improve docs - Fix typos, add examples
  5. πŸ”§ Submit PRs - Share your prompt refinements

Areas we need help:

  • Framework-specific adaptations (React, Django, etc.)
  • Language-specific variations (Python, TypeScript, Go, etc.)
  • Real-world case studies
  • Video tutorials
  • Translations

See our roadmap in CHANGELOG.md for planned features.

πŸ“„ License

MIT License - feel free to adapt for your needs

πŸ™ Credits

  • Framework: Ken Judy's PDCA methodology from InfoQ article
  • Implementation: Skill created by Claude (Anthropic) based on the article
  • Validation: Multiple iterations with article cross-referencing

πŸ”— Related Resources

πŸ“ž Support

Issues? Ideas? Open an issue or discussion in this repository.

Want to share your experience? We'd love to hear how PDCA is working for you!


Version: 1.1
Last Updated: 2025
Status: Production Ready βœ…

About

Production-ready Claude Skill implementing PDCA framework for AI-assisted code generation

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages