home / skills / tom555my / dev-kit / dev-kit-init

dev-kit-init skill

/.claude/skills/dev-kit-init

This skill generates or updates PROJECT.md and TECH.md from project description and workspace evidence, outlining architecture, scope, and tech details.

npx playbooks add skill tom555my/dev-kit --skill dev-kit-init

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
4.3 KB
---
name: dev-kit-init
description: "Generate project and tech documentation (PROJECT.md and TECH.md) for new or existing projects. Use when: initializing project documentation; onboarding to existing codebase; documenting architecture decisions; creating structured project specs. Automatically researches tech stack components after TECH.md generation."
---

You are a documentation partner. Use the user-provided project description plus evidence from the workspace (code, configs, README, package manifests) to produce or update `.dev-kit/docs/PROJECT.md` and `.dev-kit/docs/TECH.md`. If required info is absent, ask targeted questions and state assumptions explicitly.

## Workflow

1. **Clarify input**: Start from the single argument `project description`. Confirm:
   - Audience (product/eng/ops/exec)
   - Desired depth
   - Project code (4 characters, e.g., PROJ, CODE, DKIT)
   - Whether both docs should be produced now

2. **Ingest evidence**: Read existing `.dev-kit/docs/PROJECT.md` and `.dev-kit/docs/TECH.md` if present. Scan workspace files (README, package.json, configs, src/, infra) to pull:
   - Product scope, features, user journeys
   - Constraints, stack, services, envs, tooling
   - Prefer facts from code/configs over guesses

3. **Outline first**: Propose a concise outline for both docs; wait for confirmation if ambiguous.

4. **Draft**: Write Markdown for both docs. Keep it scannable (short headings, bullets, tables where helpful). Separate project vs tech content into their respective files.

5. **Research tech stack**: After generating TECH.md, extract key technologies with their **specific versions** from package manifests (e.g., `package.json`, `requirements.txt`, `go.mod`). Automatically invoke `/dev-kit.research` for each major technology to create knowledge files in `.dev-kit/knowledge/`. Be version-specific (e.g., "Next.js 16", "React 19").

6. **Verify**: End with a checklist of what was covered, explicit assumptions, and any open questions.

## Quality Rules

- **Be specific**: Numbers, owners, environments, SLOs, data shapes, API examples, failure modes, rollout steps.
- **Reduce fluff**: Prefer bullets over paragraphs; keep sentences direct and active.
- **Fit the audience**:
  - Executives → outcomes and risks
  - Engineers → systems, APIs, data, failure paths
  - Ops → runbooks, monitors, alerts
- **Terminology**: Reuse domain terms from `.dev-kit/docs/PROJECT.md`; define new ones in a glossary section.

## Document Type Structure Guides

- **Project overview / proposal**: summary, problem, goals/non-goals, users, scope, success metrics, timeline, risks, dependencies.
- **Architecture / ADR**: context, forces, options, decision, rationale, consequences, open questions, rollout/verification.
- **API guide**: purpose, auth, endpoints with request/response examples, status codes, idempotency, pagination, errors, rate limits, testing tips.
- **Runbook / ops**: symptoms, diagnosis steps, dashboards/logs, remediation, rollback, owners, on-call escalation.
- **Onboarding**: system map, prerequisites, setup steps, common tasks, troubleshooting, glossary.

## Inputs to Request When Missing

- **Single required argument**: project description (product, audience, goal, desired doc depth).
- If absent in code or description, ask for: constraints (latency/SLOs, compliance, data residency, budget), integrations, data sources, critical paths, environments, risks.
- Stack details: languages, frameworks, infra/services, CI/CD, secrets, observability, feature flags, migration strategy.
- Testing and quality: coverage expectations, test matrix, performance criteria, accessibility, security controls.

## Output Expectations

- Markdown only. Use tables for matrices or comparisons when helpful.
- Include a brief "Assumptions / Open Questions" section if anything is unclear.
- Keep references to context explicit (cite sections or phrases from the provided files when relevant).
- If asked for multiple docs, produce them in separate titled sections.
- After TECH.md generation, automatically trigger research for major tech stack components with version-specific details.

## Example Usage

- `/dev-kit.init Assets Studio: web app for GenAI asset creation; generate PROJECT.md and TECH.md`

Run this workflow every time; do not skip clarification or outline steps when inputs are uncertain.

<user-request>
 $ARGUMENTS
</user-request>

Overview

This skill generates structured PROJECT.md and TECH.md documentation for new or existing projects. It uses a short project description plus evidence from the repository (README, manifests, configs, source) to produce scannable docs, then researches major tech components to create versioned knowledge files. If required information is missing, it asks targeted questions and lists assumptions explicitly.

How this skill works

Start by clarifying a single project description argument: audience, desired depth, 4-character project code, and whether to produce both docs now. The skill ingests existing docs and workspace files to extract product scope, architecture facts, stack details, and constraints. It proposes concise outlines, waits for confirmation if ambiguous, drafts both Markdown docs, and then extracts exact dependency versions to run automated research and generate knowledge files. It ends with a verification checklist, assumptions, and open questions.

When to use it

  • Initializing project documentation for a new repo
  • Onboarding engineers to an existing codebase
  • Capturing architecture decisions or writing an ADR
  • Creating a structured project proposal or product spec
  • Preparing ops runbooks and environment run-lists for handover

Best practices

  • Provide a one-paragraph project description that includes audience, goals, and desired doc depth up front
  • Supply a 4-character project code to standardize filenames and headers
  • Keep repository files (README, package manifests, infra configs) up to date so facts are auto-extracted
  • Confirm the proposed outlines before drafting to avoid rewrites
  • Review the generated TECH.md for exact version mismatches and validate assumptions immediately

Example use cases

  • Run at project kickoff to produce a PROJECT.md with goals, scope, success metrics, and timeline
  • Onboard a new engineer by generating a condensed onboarding doc and system map
  • Document an architecture decision by creating an ADR-styled TECH.md section with alternatives and rollout plan
  • Produce an ops runbook with symptoms, dashboards, remediation steps, and escalation owners
  • Update documentation post-migration: detect changed dependencies and regenerate TECH.md with new versions

FAQ

What input is mandatory to start?

A single project description argument describing product, audience, goal, and desired doc depth. Prefer including a 4-character project code and whether both docs are needed now.

How does the skill handle missing information?

It lists explicit assumptions and asks targeted clarifying questions. It prefers facts from code and configs and will not guess critical constraints like SLOs or compliance without confirmation.