Deployment & Usage Reference

This page holds the facts of the deployment tooling. Read it to look one fact up. To install the toolkit or wire a repository, follow Deployment & Usage.

Installer switches

Set these as environment variables ($env:NAME=1 in PowerShell). Both installers accept the same set.

Variable Effect

DRY_RUN=1

Preview. The installer writes nothing. On a terminal, an accepted offer prints its command instead of running it.

SKIP_MCP=1

Skip the bulk registration of MCP servers. Verification still reports and offers.

SKIP_JDTLS=1

Skip the Java language server (jdtls) install. Verification still reports and offers.

SKIP_PONYTAIL=1

Skip the ponytail plugin install. Verification still reports and offers.

SKIP_PLUGINS=1

Skip the whole workflow-plugin section: no checks, no offers. The separate ponytail check still runs.

SKIP_ECONOMY=1

Skip the dispatch economy step and its verification.

SKIP_PYTHON_CHECK=1

Continue when Python 3.10 or newer is missing. Without it, both installers stop before they copy anything. With it, they print a warning and skip the steps that need Python: the economy step and its hooks. Verification then reports Python as missing.

ASSUME_YES=1

Accept every offer without a prompt (non-interactive installs). A third-party marketplace needs ALLOW_THIRD_PARTY_MARKETPLACES=1 as well.

ALLOW_THIRD_PARTY_MARKETPLACES=1

Also allow a non-Anthropic plugin marketplace. ASSUME_YES=1 alone never does. This covers the impeccable and ponytail plugins.

CLAUDE_HOME

Install target instead of ~/.claude.

--doctor or DOCTOR=1 (-Doctor in PowerShell)

Verify only. No install. The exit code stays 0 with items missing, so read the verify: line. It also compares ~/.claude/ft-sdd/ with deploy/templates/sdd/. It reports an absent directory, and a missing, changed or retired file as drift, with a re-run hint. It ignores pycache.

An offer needs a terminal or ASSUME_YES=1.

Python check

Both installers resolve one Python interpreter before the first copy, and every later step reuses it. install.sh tries python3, then python. install.ps1 tries python3, then python, then py -3. A candidate counts only if it runs and reports its version. A name on the PATH is not enough, because the macOS Command Line Tools stub and the Windows Store shortcut exist without a working Python. The version must be 3.10 or newer. The installed hook deploy/templates/hooks/session-audit.py uses str | None annotations with no from future import annotations, and these fail at import on 3.9. The Codex installer has its own, separate Python 3.11 requirement for tomllib.

If no candidate qualifies, the installer prints what it found (nothing, a stub, or a version), the install command for the system, and exits with a non-zero code. brew install python@3.12 is the macOS command, sudo apt install python3 is the Debian and Ubuntu command, sudo dnf install python3 is the Fedora command, and winget install Python.Python.3.12 is the Windows command. --doctor reports the same check as one line and never stops on it. The ft-sdd mirror check is a separate line and does not change the exit code. Without a terminal, an offer declines by itself and the installer prints a later: line with the command.

What the installer writes

Installs Into

skills/* (including ft-java-standards, ft-angular-standards, ft-fix). The installer mirrors each folder with rsync --delete.

~/.claude/skills/

agents/*.md (including ft-architecture-audit, bugfix-agent, verifier). A file with the same name is overwritten.

~/.claude/agents/

rules/*/: just-in-time (JIT) reference files that agents read at runtime, for example the capability manifests. The installer mirrors each folder. It stops when a canon file is missing from the checkout.

~/.claude/rules/

deploy/templates/sdd/: the ft-sdd tools word-pages.py, html-page.py and shape-check.py, and its templates overview.md, pre-show.md, intake.md, qa-chapters.md and source-tags.md. The installer mirrors the folder.

~/.claude/ft-sdd/

diff-router.py, evidence-store.py, version-gate.py (the doc writer’s version gate; reads ~/.claude/toolkit-source) and their JSON policies route-schema.json, evidence-schema.json. SKIP_ECONOMY=1 does not skip them.

~/.claude/hooks/

git-safety-check.sh: the git guard that the bugfix and refactor agents call from their frontmatter. It is fail-open when absent.

~/.claude/hooks/

The dispatch economy step, see the next table.

~/.claude/hooks/, ~/.claude/settings.json, ~/.claude/main-rules.md, ~/.claude/CLAUDE.md

MCP servers, user scope

your Claude config, through claude mcp add

The dispatch economy step is deploy/scripts/economy.py. Each change is idempotent, and each one prints its own line.

Target Change

~/.claude/hooks/

Copies 18 scripts. The hooks are price-gate.py, decide.py, turn-guard.py, unit-check.py, checkout-guard.py, heredoc-guard.py, encoded-exec-guard.py, docker-workload-guard.py, main-compact.py, main-rules.py, lane-nudge.py, artifact-registry.py, ownership-check.py and refresh-gate.py. The commands are lane-status.py, vault-note.py, session-audit.py and janitor.py. janitor.py is copied and not wired: you run it, and it changes nothing without --apply.

~/.claude/main-rules.md

Copies the file from deploy/templates/claude-md/.

settings.json, hooks

Wires 12 hooks in 15 entries (the SessionStart entry carries two commands, main-rules.py and main-rules.py --part 2): PreToolUse runs price-gate.py, checkout-guard.py, heredoc-guard.py, encoded-exec-guard.py, docker-workload-guard.py, ownership-check.py (matcher SubagentHandback) and refresh-gate.py (matcher Agent|Task), SubagentStop runs turn-guard.py and ownership-check.py, Stop runs main-compact.py and lane-nudge.py, SessionStart runs main-rules.py, PostToolUse runs artifact-registry.py, main-rules.py (matcher CronCreate|CronDelete) and refresh-gate.py (matcher Agent|Task).

settings.json, new entries

Four entries are new. PreToolUse, matcher SubagentHandback: ownership-check.py, timeout 10 s. SubagentStop: ownership-check.py, timeout 10 s. PreToolUse, matcher Agent|Task: refresh-gate.py, timeout 5 s. PostToolUse, matcher Agent|Task: refresh-gate.py, timeout 5 s. The installer checks each event on its own, so a missing entry is added on the next run. The step adds no env key.

settings.json, permissions

Adds the allow rules Bash(<python> ~/.claude/hooks/diff-router.py plan:*), where <python> is the resolved interpreter, and the same rule with python3. On a re-install, a hook command or allow rule that this step wrote with a different interpreter is rewritten to the resolved one, and --check reports it; a hook of yours is never changed. The step also keeps the literal python3 rule the pipeline contracts run; on a machine with no python3 on the PATH that contract command itself fails, and making it interpreter-neutral is follow-up work.

settings.json, values

Sets autoCompactWindow to 600000, env.CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS to 30 and env.PONYTAIL_SUBAGENT_MATCHER to ^no-subagent$. A key that you already set keeps your value.

~/.claude/CLAUDE.md

Replaces or appends a block between the ft-ai-toolkit:economy markers. Text outside the markers stays. A line of yours inside the markers is dropped, and the installer saves a .bak- copy and prints a warning.

Old assets

Removes only the agents, skills and rules that the toolkit installed under its earlier -next names.

claude-mem

Where the plugin is enabled, the step offers to disable it. It never enables the plugin again.

Jev key

Reports whether ~/.config/ft-ai-toolkit/openrouter.key exists with mode 600. It never reads the key.

If settings.json is not readable JSON, the step leaves settings.json and CLAUDE.md untouched and exits 2. Without Python 3, the installer prints a warning and skips the step.

The other hooks in deploy/templates/hooks/ are not installed. The full list is in the hook catalogue.

install.ps1 mirrors assets with robocopy. install.sh uses rsync. To change an installer, see Contributing.

Plugins (offer-gated)

Plugins come from the claude plugin CLI, not from file copies. The verification pass offers each missing plugin: y on a terminal, automatic under ASSUME_YES=1, previewed under DRY_RUN=1. The authoritative table is workflow_plugin_rows() in install.sh and $WorkflowPlugins in install.ps1. The ponytail plugin is not in that table. Both installers handle it in a section of its own.

Plugin Plugin ID Marketplace Why

superpowers

superpowers@claude-plugins-official

built into Claude Code

Process skills: brainstorming, systematic-debugging, verification-before-completion.

impeccable

impeccable@impeccable

third party, pbakaus/impeccable

Frontend design QA: shape, audit, polish, critique. The feature pipeline applies them to UI work.

jdtls-lsp

jdtls-lsp@claude-plugins-official

built into Claude Code

Wires the jdtls Java language server into the Claude Code LSP tool.

ponytail

ponytail@ponytail

third party, DietrichGebert/ponytail

A minimalism ruleset with the commands /ponytail-review and /ponytail-audit. Its lifecycle hooks need Node.js.

obsidian

none

none configured

A manual row for a Claude Code plugin named obsidian. It is not the route to the vault. The vault needs an MCP server and FT_VAULT_PATH: see Knowledge Vault, Set up the vault.

  • The two built-in rows install under plain ASSUME_YES=1.

  • impeccable and ponytail also need ALLOW_THIRD_PARTY_MARKETPLACES=1 under ASSUME_YES=1. On a terminal, the installer asks for each of them first.

  • Adding a marketplace is a standing trust: Claude Code re-clones it on new commits, and upstream can ship new plugin code. There is no blanket disable-auto-update setting. See https://code.claude.com/docs/en/plugin-marketplaces.

  • Two variables reduce this exposure. CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE=1 keeps the current checkout instead of a new clone. CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC skips the background refresh.

  • Before an offer, the installer compares the configured marketplace with the documented repository. A mismatch declines the row and prints a warning. This check reads known_marketplaces.json and the user settings.json only, so it is best effort.

  • SKIP_PONYTAIL=1 skips the ponytail install. Without Node.js on the PATH, the installer prints a warning and installs nothing.

  • obsidian never turns green through the installer. Verification reports it missing. You can ignore this row for the vault. A green row gives no vault access. To set up the vault, follow Knowledge Vault, Set up the vault.

  • claude-mem is not offered. Where it is enabled, the economy step offers to disable it.

A y on the impeccable row runs:

claude plugin marketplace add pbakaus/impeccable
claude plugin install impeccable@impeccable --scope user

A y on the ponytail row runs:

claude plugin marketplace add DietrichGebert/ponytail
claude plugin install ponytail@ponytail --scope user

Java language server

The installer checks jdtls itself, before the plugin row. install.sh installs it with Homebrew (brew install jdtls). install.ps1 installs it with Scoop (scoop install jdtls). Without Homebrew, install.sh prints two ways: install Homebrew from https://brew.sh, or download the archive from https://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz and put the launcher on the PATH. jdtls needs a Java 21 or newer runtime.

Registry skills (npx)

emil-design-eng (UI polish and animation canon for the Angular coding agent) comes from the public skills registry, so it keeps receiving upstream updates. The command is non-interactive. --skill picks one skill, -g installs to ~/.claude/skills, -a targets Claude Code, and -y clears the prompts.

npx -y skills add emilkowalski/skill --skill emil-design-eng -g -a claude-code -y

Verification offers this command when the skill is missing. Re-run it to update. The other Emil Kowalski skills install the same way: animate, review-animations, improve-animations, find-animation-opportunities, animation-vocabulary, apple-design, pick-ui-library. The writing suite installs the same way. ft-sdd and ft-doc-writer-agent load it: technical-writing and writing-design-docs (riekelt/technical-writer), documentation-writer (github/awesome-copilot), doc-coauthoring (anthropics/skills) and design-doc-mermaid (spillwavesolutions/design-doc-mermaid). The taste skill installs as design-taste-frontend. It sets the visual direction for a new screen and runs the before/after inspector of ft-ui-ux-design. Its scripts need Node 22 or newer and a local Chrome. It uses no API keys.

npx -y skills add Leonxlnx/taste-skill --skill design-taste-frontend -g -a claude-code -y

agent-browser (npm)

Every agent-driven browser check uses the agent-browser command line tool. It drives Chrome or Chromium over the Chrome DevTools Protocol (CDP) and returns accessibility-tree snapshots with @eN element refs. A snapshot costs a few hundred tokens. A DOM dump costs several kB. The canon is in rules/agents/common.md ("Browser verification").

npm i -g agent-browser && agent-browser install
# Linux hosts: agent-browser install --with-deps

The installed skill file is a discovery stub. Agents run agent-browser skills get core to load the reference for the installed version.

Playwright keeps two roles. Committed .spec.ts end-to-end suites (@axe-core/playwright, CI) stay Playwright. It is also the fallback when agent-browser is unavailable or a task needs fixtures, the trace viewer or codegen. A one-off render check never becomes a committed spec. The Chrome-extension tools (mcpclaude-in-chrome) drive your own logged-in browser and are not an agent channel.

MCP servers

Both installers register four Model Context Protocol (MCP) servers at user scope: the three remote servers below and the local memory server. Skip the bulk registration with SKIP_MCP=1. Re-running is safe: each installer removes a server, then adds it. Without the claude command, the installer skips this step and prints a line. A server that fails to register only prints a warning.

Server Transport Endpoint

qdrant-vector-db

SSE

http://ai.friendly-tech.com:8095/sse

jira-mcp

HTTP (streamable)

http://ai.friendly-tech.com:7010/mcp

context7

HTTP

https://mcp.context7.com/mcp

The first two servers are internal: you need network or VPN access to ai.friendly-tech.com. context7 is public. SSE is deprecated in Claude Code v2.1 and later. Migrate qdrant-vector-db when its server exposes /mcp. The installers no longer register tr069-emulator, whose endpoint is gone. When they find it at user scope, they remove it with claude mcp remove tr069-emulator -s user. DRY_RUN=1 prints that command instead, and SKIP_MCP=1 skips it. What each server is for: Claude Toolkit Reference, section "MCP servers".

Local stdio servers need a local prerequisite, so only memory registers in the bulk step.

Server What it gives How it is set up

obsidian (alternative: mcp-obsidian)

Read and write access to the Knowledge Vault, the cross-session memory of the agents.

Never auto-registered, because it needs your own Obsidian Local REST API plugin key. Verification prints both commands below when neither server is listed. obsidian is the primary server. mcp-obsidian is the alternative and runs through uvx mcp-obsidian. $FT_VAULT_PATH is set with it, because the agent git commits need a working tree.

memory

A local knowledge graph that the agents build up.

Both installers register it with npx -y @modelcontextprotocol/server-memory (stdio, no Docker). Without npx, the installer prints a warning and skips it. A Docker MCP gateway (MCP_DOCKER) that already exposes it counts as an alternative.

codebase-memory-mcp

The local code graph: graph-first localization and blast radius for the pipelines.

A local binary with its own installer. Verification offers to install and register it, and to enable auto-index.

The two obsidian commands use the plugin’s default HTTPS port, 27124. Port 27123 is plaintext, and it is off by default. Replace <key> with your plugin key.

claude mcp add --transport http --scope user obsidian https://127.0.0.1:27124/mcp/ --header "Authorization: Bearer <key>"
claude mcp add --scope user --transport stdio mcp-obsidian --env OBSIDIAN_API_KEY=<key> --env OBSIDIAN_HOST=127.0.0.1 --env OBSIDIAN_PORT=27124 -- uvx mcp-obsidian

sequential-thinking is not installed. It stays an optional manifest row.

The codebase-memory-mcp installer is third-party. Inspect it before you run it. On Windows use the install.ps1 from that upstream repository, not the toolkit one.

curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash -s -- --ui

When the binary is absent, verification offers this installer. It also offers Claude registration, and auto-indexing on session start (config set auto_index true, auto_index_limit 50000). New projects then index on first connection. Indexed projects join the background git-change watcher.

Maximum-quality setup

The pipelines continue with reduced quality when a capability is missing. Each run report prints a degradations: line, for example "knowledge-graph absent → blast radius grep-only". A complete install gives the Architecture and Regression lenses an evidence source independent of the code.

The two capability manifests list every item with purpose, benefit, tier and fallback. Tiers: required (the pipeline escalates or warns), recommended (a named degradation), optional.

  • ~/.claude/rules/bugfix/dependencies.md: the ft-fix and bugfix pipeline.

  • ~/.claude/rules/feature/dependencies.md: the ft-developer feature pipeline.

Beyond the installer defaults, the manifests cover the superpowers and impeccable plugins, a knowledge-graph server, codebase-memory-mcp (index your repositories), ide-diagnostics, and the jdtls Java language server through the jdtls-lsp plugin. The installers set up memory through npx and jdtls through Scoop or Homebrew.

Scripts reference

Every script ships as a bash .sh and a PowerShell .ps1 with the same name, flags and behavior, except where noted. gen-component-map output is byte-identical on all three operating systems. Human-run scripts are opt-in and preview with DRY_RUN=1 ($env:DRY_RUN=1 in PowerShell). The CI workflows run on Linux and call the .sh. The .ps1 gates run the same checks locally on Windows.

Script Purpose How to run Where

deploy/scripts/install.sh · install.ps1

Sync skills, agents and rules into ~/.claude/ and register the MCP servers. Run once per machine.

See Steps.

local, per developer

deploy/scripts/economy.py

Shared Python 3 helper that both installers call for the dispatch economy step. See What the installer writes and the hook catalogue.

Called by the installers. --check verifies only and exits 1 when anything is missing (used in the verification pass and --doctor). --dry-run prints each change. SKIP_ECONOMY=1 skips it.

local, per developer

deploy/scripts/install-codex.sh

Install skills, rules and Codex-adapted agents into $CODEX_HOME (default ~/.codex) and update an owned block in config.toml, with a backup. Bash only. It also mirrors deploy/templates/sdd/ into $CODEX_HOME/ft-ai-toolkit/ft-sdd/, the path the rendered ft-sdd agent reads. See Codex.

DRY_RUN=1 deploy/scripts/install-codex.sh, then without it. --doctor verifies only.

local, per developer

deploy/scripts/graph-coverage-audit.py

Report how much of each indexed git repository the codebase-memory-mcp code graph holds. A re-index does not rebuild a partial index. Needs ~/.local/bin/codebase-memory-mcp.

deploy/scripts/graph-coverage-audit.py [--threshold 90] [--fix]. --fix prints the delete and re-index commands. Exit 1 when any repository is partial.

local, per developer

deploy/scripts/wire-repo.sh <repo> · wire-repo.ps1

Wire a repository: standard pointer, component map, the component-map.yml workflow. Idempotent, never commits.

DRY_RUN=1 deploy/scripts/wire-repo.sh ../ftacs. The bash preview prints a diff of the block. The PowerShell preview names the target file only.

local, per repository

deploy/scripts/gen-component-map.sh [repo] · .ps1

(Re)generate the deterministic COMPONENT-MAP.md skeleton.

deploy/scripts/gen-component-map.sh .

local and CI

deploy/ci/component-map-gate.sh [repo] · .ps1

Fail CI when the committed map is stale or untracked.

in CI, or bash … . locally

CI

deploy/ci/semantic-coverage.sh [repo] · .ps1

Fail CI when a skeleton module has no ### <module> section in the semantic layer.

in CI

CI

deploy/ci/component-map.yml

GitHub Actions wrapper: runs the two gates on a pull request that touches a watched path, and on a manual run. wire-repo.sh copies it. The watched paths are **/*.java, **/*.ts, **/pom.xml, **/settings.gradle*, **/db/**, **/*.sql and COMPONENT-MAP.md.

copy into .github/workflows/, then set the toolkit repository and ref in it

CI

deploy/ci/ft-code-reindex.yml

An unwired sketch of an ft_code re-index on merge. It does not index. wire-repo.sh does not install it.

copy by hand and replace the Reindex step

CI

.github/workflows/notify-docs-portal.yml

In the toolkit repository only. A push to main that touches docs/** or antora-playbook.yml asks Friendly-Technologies/docs-portal to rebuild. It uses the secret CI_CD_TOKEN. The daily weekday run of the portal is the fallback.

runs by itself, or by hand

CI

wire-repo writes per-platform wording in its CLAUDE.md pointer block. That is the only cosmetic difference between the bash and PowerShell forms.
Back to Deployment & Usage · Overview · Java and Angular standards · the Toolkit.