ワンクリックで
conductor-setup
Scaffolds the project and sets up the Conductor environment interactively
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Scaffolds the project and sets up the Conductor environment interactively
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Executes the tasks defined in the specified track's plan, then automatically runs the review gate
Plans a new track, generates spec and plan files, and registers it in the tracks registry
Reverts a track, phase, or task using git-aware reversion with one final confirmation
Reviews a completed track against its plan and guidelines; auto-archives on pass, auto-deletes and restarts on fail
Displays the current progress of all tracks in the project
Syncs conductor skills with upstream Gemini Conductor changes, adapted for Codex
| name | conductor-setup |
| description | Scaffolds the project and sets up the Conductor environment interactively |
$ARGUMENTS
CRITICAL: Conductor artifacts are local-only.
.gitignore includes conductor/. If missing, add it.git add/git commit Conductor artifacts unless the final commit step below.You are an AI agent setting up the Conductor framework for a software project. This is the one interactive command — you are permitted and expected to ask the user questions at each step. Wait for user responses before proceeding.
Validate every file operation. If a file write fails, report the error and halt.
Path resolution by OS:
uname -s 2>/dev/null || echo Windows%USERPROFILE%\.codex (PowerShell: $env:USERPROFILE\.codex)$HOME/.codexAll template references use this Conductor home path.
Present this overview to the user before starting:
"Welcome to Conductor. I will guide you through the following steps:
- Project Discovery: Determine if this is a new or existing project.
- Product Definition: Define the product's vision, guidelines, and technology stack.
- Configuration: Select code style guides and customize the workflow.
- Track Generation: Define the initial track and generate a detailed plan.
Let's get started!"
Check for existing Conductor artifacts and determine where to resume.
Announce: "Auditing project for existing Conductor configuration..."
Check for the existence of these paths:
conductor/product.mdconductor/product-guidelines.mdconductor/tech-stack.mdconductor/code_styleguides/conductor/workflow.mdconductor/index.mdconductor/tracks/ (look for any plan.md and index.md inside)Determine resume target (highest match wins):
| Existing Artifacts | Target |
|---|---|
Complete track in conductor/tracks/ (spec + plan + metadata + index) | HALT: "Already initialized. Use /conductor-newTrack or /conductor-implement." |
conductor/index.md | Jump to Section 3.0 |
conductor/workflow.md | Jump to Section 2.5 |
conductor/code_styleguides/ | Jump to Section 2.4 |
conductor/tech-stack.md | Jump to Section 2.3 |
conductor/product-guidelines.md | Jump to Section 2.2 |
conductor/product.md | Jump to Section 2.1 |
| Nothing | Continue to Section 2.0 |
Brownfield indicators (check for these):
package.json, pom.xml, requirements.txt, go.mod, Cargo.tomlsrc/, app/, lib/, bin/Greenfield: none of the above exist (ignoring conductor/, .git/, README.md).
Announce: "Detected: [Greenfield/Brownfield] project — [reason]."
If the resume target from 1.2 is not Section 2.0: announce the maturity briefly, then jump directly to the target section. Do not execute the rest of Section 2.0.
If Brownfield and starting fresh (resume target is Section 2.0):
.gitignore patterns:
git ls-files --exclude-standard -co to list relevant files.git status --porcelain shows changes outside conductor/): warn "WARNING: Uncommitted changes detected. Consider committing or stashing before proceeding."If Greenfield and starting fresh:
.git/ does not exist: run git init and announce "Git repository initialized."conductor/ directory.conductor/product.md under # Initial Concept.Ask: "How would you like to define the product details?
If Interactive: ask (up to 4 questions, wait for responses):
(For Brownfield: frame these relative to the analyzed codebase.)
If Autogenerate: draft from the initial concept alone.
Draft product.md content with sections: Overview, Target Users, Core Features, Goals, Non-Goals.
Show the draft to the user and ask: "Does this look correct? (approve / suggest changes)"
Revise if needed. Once approved: write to conductor/product.md (append to existing # Initial Concept if present).
Ask: "How would you like to define product guidelines?
If Interactive: ask (up to 4 questions, wait for responses):
If Autogenerate: draft from project type and product.md context.
Show the draft and ask: "Does this look correct? (approve / suggest changes)"
Once approved: write to conductor/product-guidelines.md.
If Greenfield:
Ask: "How would you like to define the tech stack?
If Interactive: ask (up to 4 questions, wait for responses):
If Autogenerate: recommend a modern, suitable stack based on the project goal.
If Brownfield:
State the inferred tech stack based on the code analysis.
Ask: "Is this tech stack correct? (yes / no — if no, describe the correct stack)"
If no: ask for the correct stack description and use that.
Show the draft tech-stack.md and ask: "Does this look correct? (approve / suggest changes)"
Once approved: write to conductor/tech-stack.md.
Determine the templates directory:
%USERPROFILE%\.codex\conductor\templates\code_styleguides\$HOME/.codex/conductor/templates/code_styleguides/List available style guide files in that directory.
If the directory does not exist: announce "Style guide templates not found at . Skipping style guide selection — re-run the global installer to add templates." and jump to Section 2.5.
If Greenfield: recommend guides based on the tech stack. Ask:
If Brownfield: announce the inferred guides. Ask:
Once selection confirmed: create conductor/code_styleguides/ and copy chosen files from the templates directory.
Determine templates directory (same OS logic as 2.4): <conductor_home>/conductor/templates/workflow.md
Copy workflow.md to conductor/workflow.md. If the template is not found: create a minimal workflow.md with TDD and per-task commit defaults, announce "Using default workflow (template not found)."
Ask: "Do you want to use the default workflow or customize it?
If Customize: ask (wait for responses before continuing):
Update conductor/workflow.md with the user's choices.
Create conductor/index.md:
# Project Context
## Definition
- [Product Definition](./product.md)
- [Product Guidelines](./product-guidelines.md)
- [Tech Stack](./tech-stack.md)
## Workflow
- [Workflow](./workflow.md)
- [Code Style Guides](./code_styleguides/)
## Management
- [Tracks Registry](./tracks.md)
- [Tracks Directory](./tracks/)
Summarize completed actions to the user.
Announce: "Setup complete. Now defining the initial track."
Proceed immediately to Section 3.0.
For Greenfield projects, ask about product requirements:
Ask: "How would you like to define the initial requirements?
If Interactive: ask (up to 4 questions):
If Autogenerate: draft from conductor/product.md context.
Show draft requirements and ask: "Does this look correct? (approve / suggest changes)"
Once approved: retain in context for track proposal.
Analyze the project context and requirements to propose a single initial track title.
Ask: "I suggest this initial track: ''. Proceed with this / suggest a different one?"
If user suggests changes: ask "What should the initial track be?" and use their answer.
Using the confirmed track description, create all artifacts automatically:
Initialize conductor/tracks.md:
# Project Tracks
This file tracks all major tracks for the project.
---
- [ ] **Track: <Track Description>**
*Link: [./tracks/<track_id>/](./tracks/<track_id>/)*
Generate Track ID: <shortname>_<YYYYMMDD>
Create conductor/tracks/<track_id>/ directory.
Auto-generate spec.md for the track (same format as conductor-newTrack Section 2.2).
Auto-generate plan.md for the track following conductor/workflow.md methodology.
Write metadata.json:
{
"track_id": "<track_id>",
"type": "feature",
"status": "new",
"created_at": "<ISO8601>",
"updated_at": "<ISO8601>",
"description": "<Track Description>"
}
Write index.md:
# Track <track_id> Context
- [Specification](./spec.md)
- [Implementation Plan](./plan.md)
- [Metadata](./metadata.json)
conductor/ files and commit: conductor(setup): Add conductor setup filesconductor/ is in .gitignore (add if missing; note: the conductor/ entry prevents the artifacts from being committed normally — the setup commit is the one-time exception)."Conductor setup complete.
- Project:
- First track: '<track_description>' (ID: <track_id>)
Run
/conductor-implementto start building."