Skip to content

Getting Started

Language: English | 日本語 Last updated: 2026-05-31 (updated 2026-05-31: force CF Pages asset re-hash to recover /getting-started/ HTTP 500, #156; 2026-05-28: add existing-project Quick Start + —user guide, #130 PR-3) Audience: New users

This page covers everything you need to start using Aphelion: Claude Code setup, first-run walkthrough, usage scenarios, command reference, and troubleshooting.


RequirementDetails
Claude CodeClaude Code CLI installed and authenticated

You can install Aphelion via npx github:kirin0198/aphelion-agents init (no clone required), or clone the repository manually:

Terminal window
git clone https://github.com/kirin0198/aphelion-agents.git

The fastest way to get started — no cloning required:

Terminal window
# Initial install (into current project)
npx github:kirin0198/aphelion-agents init
# Install into user home (~/.claude/)
npx github:kirin0198/aphelion-agents init --user
# Update to latest
npx github:kirin0198/aphelion-agents update
npx github:kirin0198/aphelion-agents update --user

Cache caveat: npx caches packages by name@version. If your local cache holds an older extraction at the same version string, update will silently copy that stale snapshot. To force a refresh: pin the source ref (npx github:kirin0198/aphelion-agents#main update) or clear the cache (npm cache clean --force) then re-run update. Compare the printed source: aphelion-agents@<version> against the latest version in package.json on main to confirm freshness.

CaseRecommended
Use in a specific projectinit (project-local)
Share across multiple projectsinit --user (global)
Using project-rules.mdAlways project-local

Warning: project-rules.md must be placed in the project’s .claude/rules/ directory (project-local). Installing Aphelion with init --user places agents and rules in ~/.claude/ globally, but project-rules.md must still be generated per project via /aphelion-init. A globally placed project-rules.md in ~/.claude/rules/ can cause unintended behavior across unrelated projects.

Clone the repository first:

Terminal window
git clone https://github.com/kirin0198/aphelion-agents.git

Then copy the files manually:

Copy the .claude/ directory to your project and start Claude Code:

Terminal window
cp -r .claude /path/to/your-project/
cd /path/to/your-project && claude
/aphelion-init
/discovery-flow I want to build a TODO app

Already have a codebase? Follow these steps to bring Aphelion in:

Step 1: Install Aphelion

Terminal window
npx github:kirin0198/aphelion-agents init
# or: cp -r /path/to/aphelion-agents/.claude /path/to/your-project/

Step 2: Set up project-specific rules

/aphelion-init

rules-designer generates .claude/rules/project-rules.md for your project. This is required before running any flow.

Step 3: Generate docs (only if SPEC.md / ARCHITECTURE.md are absent)

/codebase-analyzer Analyze this project and generate SPEC.md and ARCHITECTURE.md

Skip this step if your project already has SPEC.md and ARCHITECTURE.md.

Step 4: Start working

/analyst {issue or feature description}
# or
/maintenance-flow {trigger description}

Use /analyst for a single-issue workflow. Use /maintenance-flow when you want automatic Patch / Minor / Major triage.

Decision flowchart:

Does your project have SPEC.md and ARCHITECTURE.md?
|
+-- YES --> /analyst or /maintenance-flow
|
+-- NO --> /codebase-analyzer --> /analyst or /maintenance-flow

This walkthrough uses Claude Code for a new project.

Step 1: Copy Aphelion to your project

Terminal window
cp -r /path/to/aphelion-agents/.claude /path/to/your-project/
cd /path/to/your-project
claude

Step 2: Set up project-specific rules (required)

/aphelion-init

rules-designer walks you through language / framework, Git conventions, build commands, output language, and Co-Authored-By policy, then writes .claude/rules/project-rules.md. All subsequent agents assume this file exists and read it for project context. Run /aphelion-help at any time to see every command this repo ships.

Step 3: Start Discovery

/discovery-flow I want to build a task management web app with user authentication

The orchestrator will ask you several triage questions to determine the plan. For a web app with authentication, it will likely select Standard or Full.

Step 4: Review Discovery output

After all Discovery phases complete, review DISCOVERY_RESULT.md. If you are satisfied, proceed to Delivery.

Step 5: Start Delivery

/delivery-flow

The orchestrator reads DISCOVERY_RESULT.md and performs triage again for the implementation phase.

Step 6: Review and iterate

At each phase, the orchestrator shows you what was generated and asks for approval. You can approve, request modifications, or stop.

Step 7: Start Operations (service only)

/operations-flow

Only needed if PRODUCT_TYPE: service. Builds Dockerfile, CI/CD, and operations plan.


Start from scratch — requirements through deployment:

/discovery-flow I want to build a blog management system

After Discovery completes and you review DISCOVERY_RESULT.md:

/delivery-flow

After Delivery completes (for service projects):

/operations-flow

When you already know what to build:

/delivery-flow I want to build a REST API for managing contacts

The orchestrator will interview you directly since there is no DISCOVERY_RESULT.md.

Scenario 3: Existing Project with Docs (Bug Fix or Feature)

Section titled “Scenario 3: Existing Project with Docs (Bug Fix or Feature)”

Your project has SPEC.md and ARCHITECTURE.md:

/analyst There's a 500 error on the login endpoint when the email contains special characters

After analyst generates the GitHub issue and approach document:

/delivery-flow

The flow joins from Phase 3 (architecture), skipping spec and UI design.

Scenario 3b: Maintenance flow with triage (bug / CVE / small feature)

Section titled “Scenario 3b: Maintenance flow with triage (bug / CVE / small feature)”

When the change is small and you want automatic triage:

/maintenance-flow Login endpoint returns 500 when email contains special characters

change-classifier analyzes the trigger and proposes Patch / Minor / Major. Patch and Minor complete in a single flow; Major hands off to /delivery-flow automatically via MAINTENANCE_RESULT.md.

Prefer /maintenance-flow over /analyst when:

  • The change has urgency (P1/P2 incident)
  • You want automatic impact analysis (files, dependencies, regression risk)
  • You need guided plan selection rather than a single-issue workflow

See Existing Project Quick Start for the full 4-step guide, including when to run /codebase-analyzer and how to proceed to /analyst or /maintenance-flow.

You can invoke any agent directly without a flow:

/security-auditor (run security audit on existing code)
/reviewer (run code review only)
/doc-writer (generate README and CHANGELOG)

CommandPurposeEntry Point
/aphelion-initFirst-run project rules setup (launches rules-designer)Right after npx aphelion-agents init
/aphelion-helpList all Aphelion slash commandsAnytime, in any project
/aphelion-checkHealth check: verify agents, rules, hooks, gh auth, git, DockerAnytime, in any project
/discovery-flow {description}Start requirements explorationNew projects
/delivery-flowStart design & implementationAfter Discovery, or with existing SPEC.md
/operations-flowStart deployment & operationsAfter Delivery, service type only
/doc-flowGenerate customer-facing deliverables (HLD / LLD / API reference / ops manual / user manual / handover)Projects with SPEC.md + ARCHITECTURE.md
/analyst {issue}Analyze bugs/features for existing projectsProjects with SPEC.md
/maintenance-flow {trigger}Maintenance triage and execution (Patch/Minor/Major) for existing projectProjects with SPEC.md + ARCHITECTURE.md
/codebase-analyzer {instruction}Reverse-engineer specs from existing codeProjects without SPEC.md
/reviewerCode review against SPEC.md and ARCHITECTURE.mdProjects with SPEC.md
/testerRun or generate tests against TEST_PLAN.mdProjects with TEST_PLAN.md
/rules-designerGenerate or update .claude/rules/project-rules.md interactivelyAny project
/secrets-scanGrep-based scan for hardcoded secrets in the repoAny project
/vuln-scanDependency vulnerability scan (tech-stack auto-detected)Any project

These commands are defined as slash commands in .claude/commands/*.md (Claude Code). Run /aphelion-help for the canonical, always-up-to-date listing.


At flow start, the orchestrator asks 4-6 questions about your project. Answer as accurately as possible — these determine which agents run.

After each agent completes, the orchestrator shows a summary and asks:

  • Approve and continue — proceed to the next phase
  • Request modification — describe changes and the agent re-runs
  • Stop — end the flow

Each agent generates one or more files:

PhaseFiles Generated
DiscoveryINTERVIEW_RESULT.md, RESEARCH_RESULT.md, POC_RESULT.md, SCOPE_PLAN.md, DISCOVERY_RESULT.md
DeliverySPEC.md, UI_SPEC.md, ARCHITECTURE.md, TASK.md, implementation code, TEST_PLAN.md, SECURITY_AUDIT.md, README.md
OperationsDockerfile, docker-compose.yml, .github/workflows/ci.yml, DB_OPS.md, OBSERVABILITY.md, OPS_PLAN.md

Note on TASK.md: TASK.md follows a 3-state lifecycle:

  1. At phase startdeveloper generates TASK.md populated with the task checklist from ARCHITECTURE.md.
  2. During the phasedeveloper ticks completed checkboxes and updates the “Recent Commits” section after each task.
  3. At phase completiondeveloper resets TASK.md to an empty placeholder so the next phase starts clean. A fully-ticked TASK.md committed to main is a rule violation (see .claude/rules/document-versioning.md §“TASK.md Lifecycle”); the phase’s analysis and outcome belong in docs/design-notes/<slug>.md instead.

An empty TASK.md at the repository root is the correct idle state, not a sign of incomplete work.

If a session is interrupted (especially during developer), you can resume:

/developer (resume from TASK.md)

Or restart the entire flow — it will detect existing files and ask if you want to continue or start over.


”DISCOVERY_RESULT.md is missing required fields”

Section titled “”DISCOVERY_RESULT.md is missing required fields””

Delivery Flow validates DISCOVERY_RESULT.md at startup. If it reports missing fields (PRODUCT_TYPE, “プロジェクト概要”, “要件サマリー”), edit the file to add the missing sections, then re-run /delivery-flow.

The orchestrator will present options:

  • Retry — re-run the same agent
  • Retry with instruction — describe what to fix before retrying
  • Skip — skip this agent and continue
  • Stop — abort the flow

”Developer is stuck / taking too long”

Section titled “”Developer is stuck / taking too long””

developer uses TASK.md to track progress. If a task is taking too long, you can interrupt and resume later. The next run will start from the first incomplete task in TASK.md.