Skip to content

Claude Code Workflow

[view as markdown]

fp integrates with Claude Code so issues and progress stay tracked across sessions. Once configured, Claude Code follows the fp workflow automatically.

Terminal window
fp init --agent claude

fp init will create or update the file FP_CLAUDE.md and ensure CLAUDE.md @-includes it, giving Claude Code a lightweight set of fp-managed instructions that load on every session.

To add the Claude files to an already-initialized project, run:

Terminal window
fp agent setup claude

The command is idempotent. It only rewrites FP_CLAUDE.md if its content drifts from the bundled template, and it only inserts the @FP_CLAUDE.md file-inclusion directive into CLAUDE.md when missing.

The plan-and-implement primers ship with the CLI. Print them with fp guide:

Terminal window
fp guide plan # Planning skill
fp guide implement # Implementation skill

Output is markdown. Ask Claude to read it, or save it to a skill file if you wish. Other available guides are available for writing brainstorm docs or extensions:

Terminal window
fp guide brainstorm # alias: bs
fp guide extension # aliases: extensions, ext

Pass --references <name> to print companion material — for example, fp guide brainstorm --references mermaid.

fp is structured around two phases:

PhasePrimerDescription
Planfp guide planBreak a feature into a hierarchy of scoped issues
Implementfp guide implementClaim issue, do work, log progress, mark it done

Start with a prompt:

Use fp to plan out the authentication feature

Claude Code creates an issue hierarchy in fp:

FP-abcd [todo] Add authentication
├── FP-efgh [todo] Design auth flow
├── FP-ijkl [todo] Implement OAuth provider
├── FP-mnop [todo] Add session management
└── FP-qrst [todo] Write tests
Work on FP-ijkl

Claude marks the issue in-progress, does the work, comments at milestones, and then marks it done. The full step-by-step is in fp guide implement.

If you prefer a different implementation workflow, just describe it in your CLAUDE.md.

Use the CLI or the fp Mac app to inspect progress:

Terminal window
fp tree # Overview of all progress
fp issue show FP-ijkl # Details + comments for one issue

Plan and implement are the defaults, but fp is highly extensible! Every project’s workflow is different. See the Extensions docs for how to adapt fp to fit specific needs.

fp writes agent instruction files for the agent surface you choose:

FileOwnerPurpose
FP_AGENTS.mdfp (managed)Cross-agent fp workflow rules
AGENTS.mdyouProject rules; @-includes FP_AGENTS.md
FP_CLAUDE.mdfp (managed)Claude-specific fp rules
CLAUDE.mdyouProject Claude Code preferences; @-includes FP_CLAUDE.md

Run fp init --agent claude (or fp agent setup claude) to write the FP_CLAUDE.md / CLAUDE.md pair. Run fp agent setup standard separately if you also want the standard FP_AGENTS.md / AGENTS.md pair.

The fp-managed files instruct the agent to:

  • Use fp issue for task tracking instead of built-in todo tools
  • Load context with fp context <id> before starting work
  • Mark the issue in-progress on claim and done on completion
  • Log progress with fp comment at each milestone
  • Commit frequently and before ending a session

AGENTS.md and CLAUDE.md are yours to edit — fp only ensures the matching @FP_* include line exists. fp does not install Claude skills, hooks, settings, or permissions; the integration is entirely through these instruction files.

  • Read fp issue show before marking done — confirm Claude Code’s progress comments match the work you expected
  • Use priorities--priority high helps Claude Code pick the most important work first
  • Keep issues small — smaller issues produce more focused sessions