Last updated: November 11, 2026View as Markdown

Set up Fidel with an AI coding agent

A coding agent can do most of the setup. Three steps need a person in a browser: signing in, installing the GitHub App and, if init asks for it, linking the repository. npx usefidel init stops when it has no interactive terminal, so the agent hands that step to the person.

Prompt to give your agent

Set up Fidel design system checks in this repository by following
https://usefidel.com/docs/ai-agents.md. Stop and ask me whenever a step
needs me to sign in or approve something in the browser.

Steps for the agent

  1. Check the prerequisites.

    node --version            # must be v24 or later
    git remote get-url origin # must be a GitHub repository
    
  2. Ask the person to run init in their own terminal, from the repository root:

    npx usefidel init
    

    It opens the browser for sign-in (email or Google). If no browser can open, it prints a URL to visit. Wait until the person confirms it finished, then read what it printed about anything still missing.

  3. Check the two files it wrote. fidel.config.json must contain a non-empty designSystemChecks array, a non-empty checks array, or both. .github/workflows/fidel.yml should match:

    name: Design Validation
    on:
      pull_request:
        types: [opened, synchronize]
    
    permissions:
      contents: read
      pull-requests: write
      id-token: write
    
    jobs:
      fidel:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - uses: usefidel/fidel-action@v3
    

    Keep id-token: write. Fidel uses it to authenticate the workflow without a stored secret.

  4. Ask the person to install the GitHub App on this repository: github.com/apps/use-fidel. If init said the repository is not linked, ask them to run npx usefidel link too.

  5. Open a test pull request. Commit both files on a new branch together with a change to a frontend file (for example a .tsx or .css file). A pull request that changes only fidel.config.json does not start a check.

    git switch -c add-fidel
    git add fidel.config.json .github/workflows/fidel.yml
    git commit -m "Add Fidel design validation"
    git push -u origin add-fidel
    gh pr create --fill
    
  6. Confirm it ran. Fidel posts one comment on the pull request and updates it on each push.

    gh pr view --comments
    

    If there is no comment, check the workflow run with gh run list --workflow fidel.yml and look the error up in Troubleshooting.

Rules for agents