init

init is a command for coding agents from kenny-stacks/stacks-claude-plugin. It costs 0 tokens per session (645 once invoked), scanned A, original, Apache-2.0.

A project setup command for the Stacks plugin. It copies Stacks and Clarity development guidance into the project, refreshes its documentation index, and can optionally start development servers.

In plain words
What is it for?
Use it when starting Stacks development in a project or adding the plugin's knowledge files.
Why use it?
It prepares a project with relevant contract, testing, and frontend guidance instead of leaving the agent without the plugin's reference material.

Command

Part of the stacks plugin — 4 skills, 4 commands, 3 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/kenny-stacks/stacks-claude-plugin/init
Clone the repo
git clone --depth 1 https://github.com/kenny-stacks/stacks-claude-plugin

Or install stacks, the plugin that ships this one along with the rest of its 4 skills, 4 commands, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for init

README.md
[![agentmods](https://agentmods.dev/badge/commands/kenny-stacks/stacks-claude-plugin/init.svg)](https://agentmods.dev/commands/kenny-stacks/stacks-claude-plugin/init)
Your own site
<a href="https://agentmods.dev/commands/kenny-stacks/stacks-claude-plugin/init"><img src="https://agentmods.dev/badge/commands/kenny-stacks/stacks-claude-plugin/init.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 645 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00645
Opus 5 $0.00000 $0.00322
Sonnet 5 $0.00000 $0.00129
Haiku 4.5 $0.00000 $0.00064

Measured 3d ago against content hash a677eecda35b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/init.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/stacks:init

Initialize the Stacks plugin for this project. This command sets up knowledge files and optionally starts development servers.

What This Does

This command will give Claude access to comprehensive Stacks development knowledge including:

  • Clarity smart contract best practices
  • Test-driven development patterns with Clarinet SDK
  • Frontend integration with Stacks.js
  • Common pitfalls and how to avoid them

Instructions

Step 0: User Confirmation

Tell the user: "This will incorporate the general-stacks-knowledge.md file into your project, giving Claude access to Stacks/Clarity development best practices, testing patterns, and frontend integration guidance. Shall I proceed?"

Wait for user confirmation before continuing.

Step 1: Copy Knowledge File

Copy the knowledge file to the user's project:

mkdir -p .claude/stacks/knowledge && cp "${CLAUDE_PLUGIN_ROOT}/general-stacks-knowledge.md" .claude/stacks/knowledge/

Step 2: Update Docs Index

Fetch the latest documentation index:

node "${CLAUDE_PLUGIN_ROOT}/scripts/update-docs-index.js" ".claude/stacks/knowledge/general-stacks-knowledge.md"

If this fails (e.g., network issue), continue anyway - the baked-in index is still usable.

Step 3: Update CLAUDE.md

Check if CLAUDE.md exists. If not, create it. Then append the following if not already present:

# Stacks Knowledge

Stacks knowledge can be found at @.claude/stacks/knowledge/general-stacks-knowledge.md

Step 4: Completion Notice

Tell the user: "The Stacks plugin has been initialized! You can run /stacks:help to see available commands and capabilities."

Step 5: Offer Development Server Setup

Ask the user if they would like to start the development environment:

"Would you like me to start the development servers? This includes:

  • Clarinet devnet: Local Stacks blockchain (requires Docker)
  • Frontend dev server: Automatically detected from your package.json

This gives Claude end-to-end visibility for debugging both smart contracts and frontend code."

Read the full file on GitHub · 82 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 82 lines · 0 tokens per session scan A a677eecda35b

Subscribe to this mod's changes

init is a command published in the GitHub repository kenny-stacks/stacks-claude-plugin (11 stars, last pushed 7mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 645 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.