Receber por email
← Voltar para o catálogo

config

Configure settings: depth, model profiles, features, git, and gates.

17estrelas
Atualizado há 7 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add SienkLogic/plan-build-run

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/config-sienklogic/svg)](https://www.skillteca.com.br/skills/config-sienklogic)

Skills relacionadas

Ver todas de Desenvolvimento →

Alerta por categoria

Receba novas skills de Desenvolvimento toda segunda

1 email curto, só com as skills novas de Desenvolvimento. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

STOP — DO NOT READ THIS FILE. You are already reading it. This prompt was injected into your context by Claude Code's plugin system. Using the Read tool on this SKILL.md file wastes ~7,600 tokens. Begin executing Step 1 immediately.

Step 0 — Immediate Output

Before ANY tool calls, display this banner:

╔══════════════════════════════════════════════════════════════╗
║  PLAN-BUILD-RUN ► CONFIGURATION                              ║
╚══════════════════════════════════════════════════════════════╝

Then proceed to Step 1.

/pbr:settings — Configure Plan-Build-Run

Overview

Reads and writes .planning/config.json. Interactive configuration with AskUserQuestion.

References

  • references/config-reference.md — Full config.json schema (54 fields, 16 feature toggles, validation rules)
  • references/model-profiles.md — Model selection guide for agent spawning
  • references/questioning.md — Questioning philosophy for config decision guidance
  • references/ui-brand.md — Status symbols, banners, formatting for config display output

Flow

1. Load Current Config

Read .planning/config.json. If it doesn't exist, display:

╔══════════════════════════════════════════════════════════════╗
║  ERROR                                                       ║
╚══════════════════════════════════════════════════════════════╝

No Plan-Build-Run project found.

**To fix:** Run `/pbr:new-project` first.

1b. Quick Start Path (no arguments, first-time configuration)

If no $ARGUMENTS provided and this is the first time running /pbr:settings interactively (no prior config changes detected), present:

Use AskUserQuestion: question: "How would you like to configure?" header: "Setup" options:

  • label: "Quick Start (recommended)"

description: "Answer 4 essential questions, sensible defaults for everything else"

  • label: "Advanced (all fields)"

description: "Full config with 54 fields for granular customization"

If user selects "Quick Start":

First, check for global defaults: pbr-tools config load-defaults If defaults exist, use them as pre-populated values. Otherwise, use hardcoded defaults shown below.

Present 4 essential questions sequentially:

Q1. Mode: Use AskUserQuestion: question: "How do you want to work?" header: "Mode" options:

  • label: "Interactive (default)" description: "Pause at key gates for your approval"
  • label: "Autonomous" description: "Auto-proceed, only stop for critical decisions"

Q2. Depth: Use AskUserQuestion: question: "How thorough should planning be?" header: "Depth" options:

  • label: "Standard (default)" description: "5-8 phases, includes research"
  • label: "Quick" description: "3-5 phases, skip research, ~50% cheaper"
  • label: "Comprehensive" description: "8-12 phases, full deep research, ~2x cost"

Q3. Parallel agents: Use AskUserQuestion: question: "Run agents in parallel when possible?" header: "Parallel" options:

  • label: "Yes (default)" description: "Parallel execution of independent plans"
  • label: "No" description: "Sequential execution only"

Q4. Git branching: Use AskUserQuestion: question: "Git branching strategy?" header: "Branching" options:

  • label: "Phase (default, recommended)" description: "Branch per phase for safe undo"
  • label: "None" description: "All work on current branch"

After 4 answers, write config.json with all other fields set to sensible defaults.

Quick Start defaults: mode=interactive, depth=standard, parallel=true, git.branching=phase

After writing config, offer: "Save these as your global defaults for future projects? (y/n)" If yes, run: pbr-tools config save-defaults

Display: "Config written. For full field reference, see references/config-reference.md."

Skip to Step 4 (Apply Changes confirmation).

If user selects "Advanced": proceed to Step 3 (Interactive Mode) below.

2. Parse Arguments

If $ARGUMENTS is provided, handle direct setting:

  • depth quick|standard|comprehensive — set depth directly
  • model <agent> <model> — set model for specific agent (e.g., model executor sonnet)
  • model-profile quality|balanced|budget|adaptive — set all models at once using a preset
  • gate <gate-name> on|off — toggle a gate
  • feature <feature-name> on|off — toggle a feature (e.g., feature auto_continue on). When the user specifies a feature name without the features. prefix, automatically prepend features. before writing to config.
  • session_phase_limit <N> — set the session phase limit directly (e.g., /pbr:settings session_phase_limit 5). Validate N is an integer between 0 and 20. Write to config.json at top level: "session_phase_limit": N. Display: "Session phase limit set to {N}. PBR will suggest pausing after {N} phases per session. (0 = disabled)"
  • git branching none|phase|milestone|disabled — set branching strategy
  • git mode disabled — disable git integration entirely
  • show — display current config (default when no args)

3. Interactive Mode (no arguments or just show)

Display current configuration in a readable format:

Plan-Build-Run Configuration
=====================

Workflow:
  Depth: standard (balanced)
    Research: on   Plan-check: on   Verify: on
    Scan mappers: 4   Debug rounds: 5   Inline verify: off
  Mode: interactive
  Context Strategy: aggressive
  Session Phase Limit: 3 (pause after 3 phases)
  # When session_phase_limit is 0, display: "Session Phase Limit: disabled"

Features:
  ✓ Structured planning    ✓ Goal verification
  ✓ Context isolation       ✓ Atomic commits
  ✓ Session persistence     ✓ Research phase
  ✓ Plan checking           ✗ TDD mode
  ✓ Status line             ✗ Auto-continue
  ✗ Auto-advance           ✗ Team discussions

Models:
  Researcher: sonnet    Planner: inherit     Executor: inherit
  Verifier: sonnet      Int-Checker: sonnet  Debugger: inherit
  Mapper: sonnet        Synthesizer: haiku

Parallelization:
  Enabled: true    Max concurrent: 3
  Plan-level: true  Task-level: false
  Use Teams: false

Git:
  Mode: enabled      Branching: none
  Commit docs: true
  Commit format: {type}({phase}-{plan}): {description}

Gates:
  ✓ Confirm project   ✓ Confirm roadmap   ✓ Confirm plan
  ✗ Confirm execute    ✓ Confirm transition ✓ Issues review

Status Line:
  Sections: [phase, plan, status, context]
  Brand: PLAN-BUILD-RUN
  Context bar: 20 chars, green<50%, yellow<80%

Spinner Tips: (none configured — using defaults)

CRITICAL -- DO NOT SKIP: Present the following choice to the user via AskUserQuestion before proceeding: Then present the configuration menu using the settings-category-select pattern (see skills/shared/gate-prompts.md):

Use AskUserQuestion: question: "What would you like to configure?" header: "Configure" options:

  • label: "Depth" description: "quick/standard/comprehensive"
  • label: "Model profile" description: "quality/balanced/budget/adaptive"
  • label: "Features" description: "Toggle workflow features, gates, status line"
  • label: "Git settings" description: "branching strategy, commit mode"
  • label: "Save as defaults" description: "Save current config as user-level defaults for new projects"

multiSelect: false

Note: The original 7 categories are condensed to 5. "Models" (per-agent) is accessible through "Model profile" with a follow-up option. "Gates", "Parallelization", and "Status Line" are grouped under "Features". "Save as defaults" exports to ~/.claude/pbr-defaults.json.

Follow-up based on selection:

If user selects "Depth": Use AskUserQuestion: question: "Select workflow depth" header: "Depth" options:

  • label: "Quick" description: "Budget mode: skip research/plan-check/verifier, 2 scan mappers, ~1-3 fewer spawns per phase"
  • label: "Standard"
Compartilhar X LinkedIn