@seclink: Share a particularly useful CLAUDE.md. Spec Driven Build system prompt - Let Claude Code / Gemini CLI design first, then code, driving AI development through the three phases: Requirements → Design → Tasks.
Summary
Share a Spec Driven Build system prompt for Claude Code and Gemini CLI, letting AI follow a three-phase development process of Requirements → Design → Tasks, designing first before coding to improve code quality.
View Cached Full Text
Cached at: 06/08/26, 01:20 PM
Sharing a particularly useful CLAUDE.md.
Spec Driven Build System Prompt - Let Claude Code / Gemini CLI design before coding, driving AI development through three phases: requirements → design → tasks.
https://t.co/St6iYirtVW
XiaomingX/systemprompt-CLAUDE
Source: https://github.com/XiaomingX/systemprompt-CLAUDE
Spec Driven Build - Claude Code / Gemini CLI System Prompt
Let AI design before coding, saying goodbye to inefficient development of “generating a bunch of garbage code with one sentence.”
What is this?
A set of Spec Driven Build system prompts for Claude Code and Gemini CLI. AI does not write code directly, but strictly goes through three phases:
Idea → Requirements Document → Architecture Design → Task List → Step-by-Step Coding
Each phase requires your review and confirmation to ensure the AI understands correctly before proceeding to the next step.
Three Steps to Get Started
1. Start Spec Mode
# Claude Code
claude -p "$(< .prompt/cli-spec-agent-system-prompt.md)"
# Gemini CLI
gemini chat --system "$(< .prompt/cli-spec-agent-system-prompt.md)"
2. Tell AI Your Idea
I want to develop a user registration and login feature
3. Review and Confirm Phase by Phase
AI will generate requirements, design, and task list in sequence. In each phase, you can supplement and modify. When satisfied, reply “Confirmed”.
Generated files are stored in the .kiro/specs/{feature_name}/ directory.
Reuse in Other Projects
# Copy prompt files to your project
mkdir -p /your/project/.prompt
cp .prompt/cli-spec-agent-system-prompt.md /your/project/.prompt/
# (Optional) Add shortcut command to ~/.zshrc
alias claude-spec='claude -p "$(< .prompt/cli-spec-agent-system-prompt.md)"'
Use Cases
- New feature development: Produce requirements and design first to avoid rework
- Team collaboration: Unified spec document aligns AI and human understanding
- Complex systems: Break down into actionable task lists, advance step by step
License
MIT
Similar Articles
@yaohui12138: I've finished reading it. Here are some key takeaways I've compiled for everyone: In this session, he primarily broke down a core mechanism overlooked by 90% of users: the CLAUDE.md context injection system. This system is divided into three levels: Enterprise-level: Organization-wide mandatory rules that cannot be overridden by individual settings. Project-level: Team-shared code standards and workflows. Loc...
The article shares key insights from a workshop by Boris on using CLAUDE.md for context injection in Claude, highlighting three usage levels, specific commands like /loop, and plan mode to improve developer workflows.
@jbarbier: For those starting with AI coding, I just shared my CLAUDE.md (also works with Gemini and Codex BTW - see how-to). Sinc…
Developer Julien Barbier shares his CLAUDE.md configuration file for AI coding agents, which improves efficiency by providing explicit instructions for Claude, Gemini, and Codex. The file is customizable and includes setup instructions for multiple tools.
@nash_su: https://x.com/nash_su/status/2055541927508881654
This article details the best practices for using Claude Code in large codebases, emphasizing that the toolchain (CLAUDE.md, hooks, skills, plugins, LSP integration, MCP servers, and sub-agents) is more important than the model itself, and recommends that teams prioritize investing in codebase setup for better results.
@vincemask: The advanced use of Claude lies in building an Agent system that can automatically decompose tasks, generate prompts, assign roles, and review results. An efficient Claude workflow typically includes: 1. Using files like CLAUDE.md to accumulate long-term project context 2. Letting multiple Agents each...
Introduces the advanced use of Claude, which involves building an Agent system that automatically decomposes tasks, generates prompts, assigns roles, and reviews results, including using files like CLAUDE.md to accumulate context and multi-Agent collaboration to build automated workflows.
@vincemask: https://x.com/vincemask/status/2056757482152960110
An engineering guide on how to efficiently organize the .claude/ directory in a Claude Code project, covering the target structure, core principles, division of folders, and a progressive growth path.