Protocol Guardian

Enforces TDD discipline and artifact documentation across project phases.

6|3|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/carson-sweet/sweetclaude --skill protocol-guardian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Protocol Guardian
Source: https://github.com/carson-sweet/sweetclaude/tree/main/skills/guardian-on
Command: npx skills add https://github.com/carson-sweet/sweetclaude --skill protocol-guardian

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents common development workflow violations by enforcing strict adherence to Test-Driven Development (TDD) cycles, mandatory artifact creation, and required skill invocations during the project lifecycle.

Core Features & Use Cases

  • Workflow Enforcement: Automatically blocks source code writes until corresponding tests are created and verified.
  • Session Integrity: Tracks and validates that all required phase-specific tasks (e.g., design docs, PRDs) are completed before moving forward.
  • Use Case: Use this to ensure that every feature implementation follows a strict red-green-refactor cycle and that all architectural decisions are documented as artifacts before code is committed.

Quick Start

Enable the protocol guardian to enforce strict development discipline for the current session by running the initialization commands provided in the skill documentation.

Frequently Asked Questions about Protocol Guardian

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce TDD discipline and prevent source code writes before tests are verified?

You can enforce TDD discipline by implementing an automated workflow guardian that blocks source code writes until corresponding tests are created and verified. This guarantees strict adherence to the red-green-refactor cycle during feature implementation.

What is the best way to mandate artifact documentation during the project lifecycle?

The best way to mandate artifact documentation is using a governance tool that validates phase-specific tasks like design docs and PRDs are completed before moving forward. This prevents workflow bypasses across project phases like IMPLEMENT and DESIGN.

How do I track session-scoped state to prevent development workflow bypasses?

You can track session-scoped state to prevent workflow bypasses by enabling a protocol enforcement mechanism. It requires shell access to manage state files and gitignore configurations for tracking session integrity across project phases.

Does enforcing mandatory skill invocation chains require shell access?

Yes, enforcing mandatory skill invocation chains and managing session integrity requires shell access. This access is necessary to manage state files and gitignore configurations for accurate session-scoped tracking throughout the project lifecycle.

Can I use workflow enforcement to validate architectural decisions before code is committed?

Yes, you can use workflow enforcement to validate architectural decisions before code is committed. It ensures all architectural decisions are documented as artifacts and that phase-specific tasks are completed prior to moving into implementation.