본문으로 건너뛰기
cccskills
무료GitHub에 공개

prd-init

Use when the user wants to set up pwdev-prd in a project — 'inicializar o pwdev-prd', 'init prd', 'configurar PRDs' — creating the .planning/prds/ workspace and choosing language and the optional SQLite audit trail. Do NOT use to write a PRD (prd-create).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md7.0 KB
  • agents/openai.yaml163 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Initialize pwdev-prd

STEP 0 — Language Configuration

This is the initialization command, so language setup is mandatory here (not silent).

  1. Read .planning/config.json — if lang already exists, show current setting and ask:

    Idioma atual / Current language: {lang}
    Deseja manter? / Keep it? (y/n)
    

    If yes → proceed. If no → go to step 2.

  2. If no config or user wants to change, always ask explicitly:

    Em qual idioma deseja trabalhar? / Which language would you like to use?
    
    1. Portugues (PT-BR)
    2. English (EN)
    

    Wait for the user's response.

  3. Save the choice to .planning/config.json:

    • If file exists, merge the lang field (do not overwrite other fields).
    • If file does not exist, create it:
      {
        "lang": "pt-BR"
      }
      
  4. Confirm:

    • pt-BR: "Idioma definido: Portugues (PT-BR)"
    • en: "Language set: English (EN)"

All subsequent output in this command must follow the resolved language.

Technical terms (API, CRUD, REST, endpoint) always stay in English regardless of language choice.

STEP 0.1 — Model Profile (informational only)

The interview runs inline on the session model, and the only subagent (pwdev-prd:roadmap) declares model: inherit — pwdev-prd never resolves a model. Do NOT configure model_profile here:

  • If .planning/config.json already has model_profile (set by pwdev-code or pwdev-feat), leave it untouched — it belongs to plugins with subagents.
  • If it's absent, skip silently — nothing in this plugin reads it.

STEP 1 — Check if already initialized

if [ -d ".planning/prds" ]; then
  echo "ALREADY_INITIALIZED"
  ls .planning/prds/ 2>/dev/null
else
  echo "NEW"
fi

If already initialized:

⚠️ pwdev-prd already initialized.
   Workspace: .planning/prds/
   Existing PRDs: [list]
   Use /pwdev-prd:create to start a new PRD.

STEP 2 — Create workspace

mkdir -p .planning/prds

STEP 2.1 — Audit Trail (opt-in, disabled by default)

The audit trail records all commands, decisions, and artifacts in a local SQLite database. It is disabled by default and the database file is never versioned (added to .gitignore).

  1. Read .planning/config.json — if audit field already exists, show current setting and ask:

    • PT-BR: Trilha de auditoria atual: {enabled/disabled}. Deseja manter? (s/n)
    • EN: Current audit trail: {enabled/disabled}. Keep it? (y/n) If yes → proceed (skip to step 3 if disabled). If no → go to step 2.
  2. If no config or user wants to change, ask:

    PT-BR:

    Deseja ativar a trilha de auditoria SQLite? (registra comandos, decisoes e artefatos)
    O arquivo .db nao e versionado (adicionado ao .gitignore).
    
    1. Sim — ativar auditoria
    2. Nao — desativar (padrao)
    
    Escolha (1-2, padrao: 2):
    

    EN:

    Enable SQLite audit trail? (records commands, decisions, and artifacts)
    The .db file is not versioned (added to .gitignore).
    
    1. Yes — enable audit
    2. No — disable (default)
    
    Choose (1-2, default: 2):
    
  3. Save the choice to .planning/config.json — merge "audit": true or "audit": false.

  4. If audit is enabled and sqlite3 is available:

    if command -v sqlite3 >/dev/null 2>&1 && [ ! -f ".planning/pwdev-audit.db" ]; then
      sqlite3 .planning/pwdev-audit.db "
        CREATE TABLE IF NOT EXISTS events (
            id INTEGER PRIMARY KEY AUTOINCREMENT,
            timestamp TEXT NOT NULL DEFAULT (datetime('now')),
            session_id TEXT, plugin TEXT NOT NULL, command TEXT NOT NULL,
            agent TEXT, model TEXT, phase TEXT, action TEXT NOT NULL,
            target TEXT, detail TEXT, duration_ms INTEGER
        );
        CREATE TABLE IF NOT EXISTS decisions (
            id INTEGER PRIMARY KEY AUTOINCREMENT, event_id INTEGER REFERENCES events(id),
            timestamp TEXT NOT NULL DEFAULT (datetime('now')), phase TEXT NOT NULL,
            decision TEXT NOT NULL, rationale TEXT, alternatives TEXT, reversible INTEGER DEFAULT 1
        );
        CREATE TABLE IF NOT EXISTS artifacts (
            id INTEGER PRIMARY KEY AUTOINCREMENT, event_id INTEGER REFERENCES events(id),
            path TEXT NOT NULL, type TEXT NOT NULL, phase TEXT, status TEXT DEFAULT 'active',
            created_at TEXT NOT NULL DEFAULT (datetime('now')), archived_at TEXT
        );
        CREATE TABLE IF NOT EXISTS config_changes (
            id INTEGER PRIMARY KEY AUTOINCREMENT, timestamp TEXT NOT NULL DEFAULT (datetime('now')),
            field TEXT NOT NULL, old_value TEXT, new_value TEXT NOT NULL, changed_by TEXT
        );
        CREATE INDEX IF NOT EXISTS idx_events_timestamp ON events(timestamp);
        CREATE INDEX IF NOT EXISTS idx_events_plugin ON events(plugin);
        CREATE INDEX IF NOT EXISTS idx_events_command ON events(command);
      "
    fi
    

    (Full schema reference: <plugin-root>/references/audit-schema.md. The database is SHARED with pwdev-code/pwdev-feat — any plugin's init may create it. Once the DB exists, recording is automatic via the plugin's hooks — no inline INSERTs.)

    Ensure .planning/pwdev-audit.db is in .gitignore:

    if ! grep -q "pwdev-audit.db" .gitignore 2>/dev/null; then
      printf '\n# PWDEV audit trail (not versioned)\n.planning/pwdev-audit.db\n.planning/pwdev-audit.db-journal\n.planning/pwdev-audit.db-wal\n.planning/.audit-tmp/\n' >> .gitignore
    fi
    

    Log the initialization event and config changes (best-effort):

    sh "<plugin-root>/scripts/audit-log.sh" event init "" completed .planning/prds/ ""
    sh "<plugin-root>/scripts/audit-log.sh" config lang "$OLD_LANG" "$NEW_LANG" init
    sh "<plugin-root>/scripts/audit-log.sh" config audit "$OLD_AUDIT" "$NEW_AUDIT" init
    
  5. If audit is disabled, skip silently. Confirm:

    • PT-BR: Trilha de auditoria: **{ativada/desativada}**
    • EN: Audit trail: **{enabled/disabled}**

STEP 3 — Summary

✅ pwdev-prd initialized

📁 Workspace created:
  .planning/prds/           # PRDs will be stored here
    └── {slug}/
        ├── PRD.md           # Structured PRD document
        └── prd.json         # Optional JSON export

🚀 Next steps:
  /pwdev-prd:create "feature or system description"
  /pwdev-prd:list                → View existing PRDs

Prohibitions

  • NEVER overwrite existing .planning/prds/ without confirmation

Language: resolve lang per references/language.md before any human-facing output. Paths <plugin-root>/..., references/, scripts/, templates/ are relative to the plugin root; tool names, subagent dispatch and the command form to show the user depend on the runtime (references/runtime.md).

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Accessibility auditing and remediation skill for Vue 3 + Reka UI. Use when reviewing components, verifying WCAG 2.1 AA, fixing ARIA issues, or validating keyboard navigation in Reka UI components.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

pwdev-solucoes/pwdev-claude-marketplace32026년 10월 15일 업데이트

ai-infra

무료

Infraestrutura para IA — GPU, servidores MCP, gateway de LLM, pipeline de inferência, custo de token, cache semântico e observabilidade de modelo. Use quando o usuário disser "GPU", "MCP server", "LLM", "inferência", "modelo", "gateway de IA", "custo de token", "rate limit da API de IA", "self-host de modelo".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

pwdev-solucoes/pwdev-claude-marketplace32026년 10월 15일 업데이트

alt-text

무료

Escreve texto alternativo e descrição de imagem para peças de rede social. Use quando o usuário disser "alt text", "texto alternativo", "descrição da imagem", "acessibilidade da peça", "descrever para leitor de tela", ou automaticamente antes de qualquer publicação. Obrigatório em todas as peças — em carrossel, um por slide.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

pwdev-solucoes/pwdev-claude-marketplace32026년 10월 15일 업데이트

Organiza, compara e seleciona entre as variações geradas, e publica a grade de comparação como Artifact para aprovação do time. Use quando o usuário disser "qual dessas", "comparar as variações", "escolher a melhor", "mostrar as opções", "montar grade de aprovação", ou após qualquer lote de geração. Selecionar é trabalho, não detalhe.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

pwdev-solucoes/pwdev-claude-marketplace32026년 10월 15일 업데이트

Aumenta resolução e qualidade de imagem via Freepik/Magnific, ou orienta o processo manual quando não há chave. Use quando o usuário disser "upscale", "melhorar a resolução", "a imagem está pixelada", "Magnific", "Freepik", "aumentar a imagem", "imagem pequena demais". Gasta crédito — exige confirmação.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

pwdev-solucoes/pwdev-claude-marketplace32026년 10월 15일 업데이트

CI/CD e automação — GitHub Actions, Terraform, OpenTofu, Ansible, n8n. Use quando o usuário disser "pipeline", "CI/CD", "GitHub Actions", "workflow", "terraform", "ansible", "n8n", "automatizar", "deploy automático", "IaC".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

pwdev-solucoes/pwdev-claude-marketplace32026년 10월 15일 업데이트

pwdev-solucoes의 스킬 모두 보기

이 스킬의 문제 신고