Generate Constitution

Generate constitution.md from user needs in product.md with traceable derivation maps.

1|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/yangsi7/fine-tuning-exercise-generation --skill generate-constitution
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Generate Constitution
Source: https://github.com/yangsi7/fine-tuning-exercise-generation/tree/main/.claude/skills/generate-constitution
Command: npx skills add https://github.com/yangsi7/fine-tuning-exercise-generation --skill generate-constitution

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that all technical development principles and architectural decisions are directly derived from and traceable to specific user needs documented in product.md. It prevents arbitrary technical choices by establishing a "Development Constitution" that guarantees every "HOW" serves a "WHAT."

Core Features & Use Cases

  • User Need-Driven Derivation: Maps user pain points, "Our Thing" differentiators, and North Star metrics from product.md to concrete technical principles and constraints.
  • Comprehensive Principle Generation: Creates a structured constitution.md with articles covering architecture, data, performance, security, UX, and testing, each with evidence, rationale, and verification methods.
  • Traceability & Validation: Includes a derivation map that links every technical principle back to its originating user need, ensuring no orphaned principles and full alignment.
  • Use Case: After defining your product's user needs, use this Skill to generate a foundational constitution.md that dictates your tech stack (e.g., "React for <100ms UI reactivity"), performance targets (e.g., "<2s dashboard load"), and security standards, all justified by user value.

Quick Start

Use the Generate Constitution skill to create the development principles from 'product.md'.

Frequently Asked Questions about Generate Constitution

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

FAQPage Schema
How do I derive technical principles from user needs in my product definition?

Derive technical principles by mapping user pain points, differentiators, and metrics from product.md to concrete architecture decisions, tech stack choices, and development constraints. This ensures every technical choice traces back to specific user value, eliminating arbitrary decisions and guaranteeing alignment between product goals and engineering choices.

What should a development constitution include to guide architecture and tech stack decisions?

A development constitution should organize principles into articles covering architecture, data, performance, security, UX, and testing. Each article includes evidence linking back to user needs, rationale explaining the principle, and verification methods. This structure ensures traceability and makes every technical constraint defensible by its source user need.

How do I ensure my technical decisions stay aligned with user needs throughout development?

Create a derivation map that links every technical principle back to its originating user need from product.md. This traceability mechanism prevents orphaned principles, maintains alignment across the development lifecycle, and provides auditability—allowing teams to justify any architecture or tech choice by its user value.

Can I use development principles to set specific performance targets and security standards?

Yes. Development principles derived from user needs generate concrete, justifiable targets—such as performance requirements (e.g., <2s dashboard load) and security standards—each tied to user pain points or differentiators. This approach replaces arbitrary benchmarks with user-driven specifications that engineering teams can implement and validate.

What's the difference between documenting user needs and generating a constitution?

User needs in product.md describe what users want and why; a constitution transforms those needs into how—specific technical principles, constraints, and architecture decisions. The constitution operationalizes product strategy by creating enforceable development guidelines that every engineering choice must satisfy and trace back to.

Do I need a product.md file before generating development principles?

Yes. The constitution derives entirely from product.md, which must document user needs, pain points, differentiators, and North Star metrics. Without this input, principles cannot be grounded in user value, and traceability to justify technical choices is lost.