Pdd Init.prompt
---
agent: agent
description: "Initialize PDD in an existing project — detect stack, create pdd/ structure"
---
# Initialize PDD in an Existing Project
This is the Copilot adapter for the shared `Init` workflow in `core/workflows/init.md`. Keep shared workflow behavior aligned there; this file exists to preserve Copilot-specific frontmatter, `#file:` references, and `/pdd-*` command wording.
## Purpose
Add PDD structure to an existing repository without pretending the project is starting fresh.
Init should preserve reality. It adds the PDD layer to an existing codebase, detects what already exists, and hands off into `/pdd-context` with a truthful starting point.
## Use When
- The codebase already exists.
- The user wants to introduce PDD incrementally.
- The repo already has source layout, tooling, and conventions worth detecting instead of recreating.
## Inputs
- Existing repository layout
- detectable stack and conventions
- any known constraints the AI should follow
## Step 1: Confirm This Is An Existing Project
Check for signs of an established codebase:
- git repository
- source files
- dependency manifests
- existing build or lint configuration
If the directory looks empty or brand new, route to `/pdd-scaffold` instead.
## Step 2: Guard Against Overwrite
If `pdd/` already exists, do not overwrite it silently. Confirm whether the user wants to fill in missing pieces or stop.
## Step 3: Detect The Project Shape
Infer:
- project type
- tech stack
- likely source directories
- existing conventions from linting and formatting config
If multiple project types match, surface that and ask the user to confirm the primary type instead of guessing.
## Step 4: Create Only The PDD Layer
Create just the `pdd/` structure:when to use it
Community prompt sourced from the open-source GitHub repo harshal2802/pdd-skill (MIT). A "Pdd Init.prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
harshal2802/pdd-skill · MIT
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar