> ## Documentation Index
> Fetch the complete documentation index at: https://docs.edgespark.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code and EdgeSpark

> Set up Claude Code to work with EdgeSpark — install the EdgeSpark plugin, generate CLAUDE.md, and follow the public Claude workflow.

Claude Code is a first-class supported agent for EdgeSpark. The EdgeSpark Claude workflow uses `CLAUDE.md` as the project instructions file.

<Steps>
  <Step title="Install the EdgeSpark CLI">
    ```bash theme={null}
    npm install -g @edgespark/cli
    edgespark login
    ```

    This installs the CLI globally and authenticates your account. Your credentials are stored locally and reused for all subsequent commands.
  </Step>

  <Step title="Install the EdgeSpark Claude Code plugin">
    ```bash theme={null}
    claude plugin marketplace add edgesparkhq/claude-plugins
    claude plugin install edgespark@edgespark-claude-plugins
    ```

    This is the current public Claude Code onboarding flow exposed by EdgeSpark.
  </Step>

  <Step title="Initialize your project">
    Pass `--agent claude` to generate `CLAUDE.md`:

    ```bash theme={null}
    edgespark init my-app --agent claude
    cd my-app
    ```

    The scaffold writes `CLAUDE.md` at the project root so Claude sessions have a dedicated EdgeSpark instructions file.
  </Step>

  <Step title="Start an EdgeSpark task">
    In Claude Code, use the EdgeSpark task-entry command:

    ```text theme={null}
    /edgespark:building-edgespark-apps
    ```
  </Step>
</Steps>

## Extending CLAUDE.md

Add project-specific instructions below the generated content:

```markdown theme={null}
<!-- Generated content above — do not edit -->

## Project-specific rules

- The `posts` table is soft-deleted — always filter `WHERE deleted_at IS NULL`
- Route `/api/admin/*` requires `user.role === 'admin'` checked after platform auth
```

Claude follows these with the same priority as the generated content. See [AGENTS.md reference](/agents/agents-md) for the full format.

## See also

<Columns cols={2}>
  <Card title="AGENTS.md reference" icon="file-lines" href="/agents/agents-md">
    Full reference for the agent instructions file — what it contains and how to extend it.
  </Card>

  <Card title="Declarative workflow" icon="database" href="/agents/declarative-workflow">
    How Claude pulls schema and writes code against generated types.
  </Card>

  <Card title="Deploy and test loop" icon="rotate" href="/agents/deploy-and-test">
    The full autonomous deploy and test workflow Claude follows.
  </Card>

  <Card title="Supported agents" icon="robot" href="/agents/supported-agents">
    All supported AI agents and their setup pages.
  </Card>
</Columns>
