code-first-draft

Generate code and tests from PRDs and existing codebases.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/TimothyNguyen04/pmos --skill code-first-draft-timothynguyen04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-first-draft
Source: https://github.com/TimothyNguyen04/pmos/tree/main/PM-OS/.claude/skills/code-first-draft
Command: npx skills add https://github.com/TimothyNguyen04/pmos --skill code-first-draft-timothynguyen04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the initial implementation of new features by translating Product Requirement Documents (PRDs) into working code within an existing codebase, or by generating a standalone prototype if no codebase is detected.

Core Features & Use Cases

  • Codebase Exploration: Analyzes existing code structure, patterns, and tech stack.
  • Implementation Planning: Creates a detailed plan for feature implementation, including file modifications and new file creation, for user approval.
  • Automated Implementation: Writes code following existing patterns and best practices, including unit and integration tests.
  • Prototype Generation: Creates a reference implementation in a chosen tech stack if no codebase is available.
  • Use Case: You have a PRD for a new user authentication flow. Provide the PRD, and the Skill will explore your codebase, propose an implementation plan, write the necessary code and tests, and deliver a summary.

Quick Start

Build the user preferences feature from outputs/prds/preferences.md.

Frequently Asked Questions about code-first-draft

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

FAQPage Schema
How do I generate code from a PRD automatically?

To generate code from a PRD, provide the requirements document and the tool analyzes your existing codebase to write matching features and tests. It translates product requirements into working code by detecting established patterns and tech stacks.

Can I build a prototype if I do not have an existing codebase?

Yes, you can build a prototype without an existing codebase. The tool generates a standalone reference implementation using a specified tech stack, allowing you to validate features quickly without needing a pre-existing project structure.

What is the process for implementing a new feature from a requirements document?

The process for implementing a new feature starts by exploring your code structure, then creating a detailed implementation plan for approval. Once approved, it automatically writes the code and unit tests, concluding with a summary document.

Does automated feature implementation modify my existing source files?

Yes, automated feature implementation modifies your existing source files in-place. It analyzes your current code structure and patterns to apply modifications and create new files directly within your project.

Do I need to specify a tech stack for prototype development?

Yes, you need to specify a tech stack for prototype development when no codebase is detected. This specified stack guides the generation of the standalone reference implementation and its corresponding tests.