Receber por email
← Voltar para o catálogo

claude-code-plan-critique

Create a new plan folder with a plan.md template

11estrelas
Atualizado há 5 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add serbanghita/claude-code-plan-critique

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/claude-code-plan-critique-serbanghita/svg)](https://www.skillteca.com.br/skills/claude-code-plan-critique-serbanghita)

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

You are creating a new plan folder for the user.

To do this, follow these steps precisely:

  1. Display the following banner before doing anything else:

`` +-------------------------------------------------+ | Plan Critique v2.0.1 - Creating new plan | +-------------------------------------------------+ ``

  1. Read .claude/plan-critique-config.json and get plansFolder path from settings.

If the file doesn't exist or plansFolder is not set:

  • Ask the user: "Where would you like to store your plans? Provide a folder path (default .planning):".

By default, the user should be presented with the option .planning.

  • Save the path as plansFolder in .claude/plan-critique-config.json
  • Create the folder if it doesn't exist
  • Create an archived/ subfolder inside it
  • Determine the plan name:
  • If a name was passed as an argument, the text in $ARGUMENTS is the plan name. Use it directly.
  • Otherwise, ask the user directly, do not offer predefined options like "New Feature" or "Bug Fix"

because the plan name must be unique: "Enter a name for this plan:" The plan name must have at least 3 characters. If it is empty or shorter, respond with "Plan name must be at least 3 characters." and ask the user to enter one.

  1. Generate a slug from the plan name:
  2. Convert to lowercase
  3. Replace spaces with hyphens
  4. Remove characters that are not alphanumeric or hyphens
  5. Trim to max 50 characters
  6. Example: "Add User Authentication" becomes add-user-authentication
  7. Check if [plansFolder]/[slug]/ already exists.

If it does: Respond with "A plan with this name already exists at [plansFolder]/[slug]/. Choose a different name." Ask for a new name and repeat from step 4.

  1. Create directory [plansFolder]/[slug]/
  2. Link this session to the new plan:
  3. Get the Claude Code process ID by running: echo $PPID
  4. Create the sessions directory if needed: [plansFolder]/.sessions/
  5. Write the slug to [plansFolder]/.sessions/[PID] (plain text, just the slug)
  6. Create the plan template at [plansFolder]/[slug]/plan.md using the template in

[plan-template.md](plan-template.md).

  1. Respond with confirmation:

`` Created new plan: [plansFolder]/[slug]/ Edit your plan at: [plansFolder]/[slug]/plan.md When ready, run /plan:critique to review your plan. ``

Notes:

  • The slug must be filesystem-safe (no special characters)
  • Keep the original plan name with proper casing in the H1 heading of plan.md
  • Only create plan.md initially (critique.md is created by /plan:critique)
  • Always use plansFolder from settings as the base directory
Compartilhar X LinkedIn