Platonic Coding
name: platonic-coding
by caesar0301 · published 2026-04-01
$ claw add gh:caesar0301/caesar0301-platonic-coding---
name: platonic-coding
description: Intelligent orchestrator for Platonic Coding workflow. Auto-detects project state and runs appropriate phases—init for new projects, recover specs from existing code, refine RFCs, implement from specs with guides and tests, or review code compliance. Single entry point for the complete specification-driven development lifecycle.
license: MIT
metadata:
version: "2.0.0"
author: "Xiaming Chen"
category: "workflow"
replaces:
- platonic-init
- platonic-specs
- platonic-impl
- platonic-code-review
- platonic-workflow
---
# Platonic Coding
Intelligent orchestrator for the complete **specification-driven development lifecycle**. Auto-detects project state and executes the appropriate workflow phases—initialization, specification management, implementation, or review.
When to Use This Skill
Use this skill when you need to:
**Keywords**: platonic coding, specs, RFC, implementation, review, workflow, spec-driven, initialization
Intelligent Auto-Detection
When invoked without specific instructions, this skill **automatically detects** project state and suggests the next action.
Detection Algorithm
1. Does .platonic.yml exist?
→ NO: Run INIT mode
• Has source code? → init-recover (generate specs from code)
• No code? → init-scaffold (create infrastructure)
2. Has specs directory but no RFCs?
→ Has design drafts? → WORKFLOW Phase 1 (generate RFCs)
→ No drafts? → WORKFLOW Phase 0 (conceptual design)
3. Has RFCs but no implementation guides?
→ WORKFLOW Phase 2 (implement specs)
4. Has both specs and code?
→ REVIEW mode (check compliance)
5. In middle of workflow?
→ Resume from current phaseUser Override
Users can explicitly specify operations to bypass auto-detection:
Core Workflow Phases
The Platonic Coding workflow follows four phases:
| Phase | Focus | Output | Mode |
|-------|-------|--------|------|
| **0** | Conceptual Design | Design draft (`docs/drafts/`) | WORKFLOW |
| **1** | RFC Specification | RFCs (`docs/specs/`) | WORKFLOW / SPECS |
| **2** | Implementation | Guide + Code + Tests | WORKFLOW / IMPL |
| **3** | Spec Compliance Review | Review report | WORKFLOW / REVIEW |
Operation Modes
INIT Mode
**Purpose**: Bootstrap Platonic Coding infrastructure
**Operations** (see `references/INIT/`):
**Auto-detection**: Runs when `.platonic.yml` is missing
**Examples**:
# Auto-detect: new vs existing project
Use platonic-coding to set up my new project.
# Explicit: existing codebase recovery
Use platonic-coding init-recover to scan this codebase and recover specs.
# Explicit: greenfield scaffold
Use platonic-coding init-scaffold for project "Acme" (TypeScript/Next.js).**Reference**: See `references/REFERENCE.md` → INITIALIZATION section
---
SPECS Mode
**Purpose**: Manage RFC specifications
**Operations** (see `references/SPECS/`):
**Auto-detection**: Suggested when specs exist but need validation
**Examples**:
# Auto-detect: refine all specs
Use platonic-coding to validate and update all specifications.
# Explicit: specific operation
Use platonic-coding specs-generate-index to update the RFC index.
# Explicit: comprehensive refinement
Use platonic-coding specs-refine to run all validation and generation operations.**Reference**: See `references/REFERENCE.md` → SPECIFICATION section
---
IMPL Mode
**Purpose**: Translate RFCs into implementation guides and code
**Operations** (see `references/IMPL/`):
**Auto-detection**: Suggested when RFCs exist but no implementation guides
**Confirmation Gates**: By default, pauses after impl guide and coding plan for user confirmation. Can be overridden with "no confirmations" or auto-mode.
**Examples**:
# Auto-detect: implement from RFC
Use platonic-coding to implement RFC-0042 (Message Queue) in the acme-queue module.
# Explicit: create guide only
Use platonic-coding impl-create-guide for RFC-0001, guide only, no coding.
# Explicit: implement from existing guide
Use platonic-coding impl-code from docs/impl/RFC-0001-impl.md.
# Auto-mode: no confirmations
Use platonic-coding impl-full for RFC-003 without stopping for confirmation.**Reference**: See `references/REFERENCE.md` → IMPLEMENTATION section
---
REVIEW Mode
**Purpose**: Validate code implementation against specifications
**Default Behavior**: Generates compliance report WITHOUT modifying code
**Review Process**:
1. Understand specifications (RFCs, impl guides)
2. Generate functionality checklist
3. Map specs to code locations
4. Review implementation for each item
5. Identify discrepancies (missing, inconsistent, partial, extra)
6. Generate prioritized report with recommendations
**Auto-detection**: Suggested when both specs and code exist
**Examples**:
# Auto-detect: review specific RFC implementation
Use platonic-coding to review src/auth/ against RFC-0001.md.
# Explicit: comprehensive review
Use platonic-coding review to audit all code against all RFCs in docs/specs/.
# Explicit: gap analysis
Use platonic-coding review to identify gaps between specs/ and src/.**Reference**: See `references/REFERENCE.md` → REVIEW section
---
WORKFLOW Mode
**Purpose**: Orchestrate the full 4-phase workflow from design to review
**Phases**:
**Auto-detection**: Suggested when project is initialized and ready for new features
**Phase Visibility**: Always shows current phase at each step
**Examples**:
# Run full workflow from Phase 0
Use platonic-coding workflow to implement a user preferences feature.
# Start at specific phase
Use platonic-coding workflow --phase 2 to implement RFC-0042.
# Resume workflow (auto-detected)
Use platonic-coding to continue from where we left off.**Reference**: See `references/REFERENCE.md` → WORKFLOW section
Default Paths
| Artifact | Default Path | Configurable in .platonic.yml |
|----------|--------------|-------------------------------|
| Design drafts | `docs/drafts/` | Yes |
| RFC specs | `docs/specs/` | Yes |
| Implementation guides | `docs/impl/` | Yes |
Templates
All templates are provided in the `assets/` directory:
Templates use `{{PLACEHOLDER}}` syntax. See individual reference files for details.
Best Practices
1. **Trust auto-detection**: Let the skill suggest next steps based on project state
2. **Override when needed**: Use explicit mode flags for specific operations
3. **Review generated artifacts**: All generated RFCs and guides are Draft—review before use
4. **Run refine regularly**: Keep specs validated and indices updated
5. **Use confirmation gates**: Default behavior pauses for review—don't skip unless confident
6. **Report-only by default**: Review mode generates reports, modify code only when explicitly requested
Dependencies
Integration Example
Complete workflow from greenfield to reviewed implementation:
# Day 1: Initialize
Use platonic-coding to set up my new project "Acme" (TypeScript/Next.js).
# Day 2: Start workflow (Phase 0)
Use platonic-coding workflow to design a user authentication feature.
# Day 2: Continue workflow (Phase 1-3)
# Agent auto-runs: Phase 1 (RFC) → Phase 2 (impl) → Phase 3 (review)
# Day 3: Maintenance
Use platonic-coding to refine all specs and validate consistency.
# Day 4: New feature
Use platonic-coding workflow --phase 0 to add a notification system.See `references/REFERENCE.md` for detailed operation guides.
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...