Command Palette

Search for a command to run...

Back to skills
skill № 95470

setup-development

Prepare an Agentty checkout for development, install the toolchain and check runner, configure the shared build cache and parallelism, and reproduce CI tooling.

FreeNo executable scripts
agentty-xyzby agentty-xyz★ 46 GitHub stars

Install setup-development in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Set Up Development

Use this skill when preparing a fresh checkout or worktree, when a hook fails because a tool is missing, or when reproducing CI tooling. README.md documents public runtime prerequisites and backend authentication; this skill covers contributor tooling only.

Install the Toolchain

  1. Install Rust through Rustup with the toolchain pinned in rust-toolchain.toml, plus the formatter, linter, and coverage components:

    rustup toolchain install --profile minimal --no-self-update
    rustup component add clippy rustfmt llvm-tools-preview
    
  2. Install uv using its official installation guide, then the check runner and Rust test tools:

    uv tool install prek
    prek install -f
    cargo install cargo-llvm-cov
    cargo install cargo-nextest --locked
    

    Use cargo-nextest 0.9.115 or newer, enforced by .config/nextest.toml, so the local profile inherits CI's resource limits and timeouts. prek install -f installs the fast pre-commit checks; CI runs the full validation gates.

  3. Install Bun, the repository's JavaScript runtime for hooks and scripts, at the version .github/actions/setup-rust-prek/action.yml pins, using its official installation guide.

  4. Launch the application from the workspace with cargo run -p agentty --bin agentty.

Tooling for Specific Hooks

  • Coverage: the coverage hook needs both Cargo subcommands. It also runs the native ag-harness sandbox qualification, which fails closed without enforcement: Linux hosts need Bubblewrap at /usr/bin/bwrap with unprivileged user namespaces, as CI provisions in .github/actions/setup-native-sandbox/action.yml. Consult .github/actions/setup-rust-prek/action.yml when reproducing CI tooling.

  • Published-crate checks: the cargo-semver-checks hook needs cargo-semver-checks at the version .github/actions/setup-rust-prek/action.yml pins, for example cargo install cargo-semver-checks --version <pinned version> --locked; a newer nightly can require a newer release to read its rustdoc JSON.

  • Public API snapshots: the public-api hook needs cargo-public-api at the version .github/actions/setup-rust-prek/action.yml pins, installed the same way.

  • ag-release tests: its npm package tests install and run the package with Node.js 18 or newer and npm, which GitHub-hosted runners provide.

  • Timing collector: changes under .github/actions/test-timing/ or to the hook catalog also run test-timing-action on Bun. In CI, the JavaScript action itself runs on the runner's Node.js 24, also inside E2E jobs. This is a repository tooling requirement, not an application runtime dependency.

  • Website: install Zola before running the zola-check hook or previewing docs/site/:

    zola --root docs/site serve
    

    The local preview uses the production PostHog project from docs/site/config.toml, so local visits send real events; exclude them in PostHog by filtering on $host. Session replay starts only after allowing analytics and requires Session Replay to be enabled in the PostHog project's settings.

  • Design gallery: changes to design/ or the docs site's styles, templates, or scripts run the design-gallery hook, which needs Zola, Bun, and a Chromium-based browser: Google Chrome or Chromium in its usual install path, a headless shell that Playwright installed, or any of them named by CHROME_PATH. Changes to the gallery check itself run design-gallery-check-test on Bun. GitHub-hosted runners provide Chrome, the workflow installs Zola, and the setup action installs Bun.

  • Feature recording: intentional recording also needs a running Podman environment; follow skills/refresh-feature-recordings/references/recording.md for the canonical container workflow.

Build Cache and Parallelism

Install sccache 0.20.1 or newer to share compiled crates across worktrees:

cargo install sccache --locked

The Cargo wrapper, .cargo/rustc-wrapper.sh, uses sccache when its server is available and otherwise invokes the compiler directly. It also retries directly when sccache returns status 254, such as when its server retains a deleted temporary directory, and preserves other exit statuses. Keep the wrapper enabled for routine and agent sessions; set RUSTC_WRAPPER= only to diagnose the cache itself.

Worktrees keep separate target/ directories and share compilations through the cache. A fresh worktree takes its dependencies and unchanged workspace crates from it and compiles only what sccache never stores: procedural macros, build scripts, and linked binaries. Three parts make a result reusable from another checkout root:

  • Registered roots: the sccache server shares results between the checkout roots it listed as base directories when it started. The
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the setup-development skill do?

Prepare an Agentty checkout for development, install the toolchain and check runner, configure the shared build cache and parallelism, and reproduce CI tooling.

How do I install the setup-development skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the setup-development skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare setup-development with