Skip to content
DevBuildKit
AgentsSkillsCommandsPacksPricingDocsBlogTools
Log inGet DevBuildKit

/init

Set up ForgeKit context for a repository: detect the stack, write or refresh AGENTS.md as a short map into docs/architecture, product, decisions and development, and recommend the ForgeKit packs that fit.

CommandFreev1.0.0
  1. Commands
  2. /init

What it does

Set up ForgeKit context for a repository: detect the stack, write or refresh AGENTS.md as a short map into docs/architecture, product, decisions and development, and recommend the ForgeKit packs that fit.

Category
coreonboardingcontext
Platforms
generic
Capabilities
analysisdocumentationplanning

Example tasks

  • /init
  • /init focus on the apps/api package of this monorepo
  • /init this is a legacy Rails app, keep the existing CLAUDE.md content

Works with

Related skills

  • Repository Understanding· skill

Recommended alongside

  • Context Librarian· agent

Permissions summary

  • Files

    Reads and edits files

  • Shell

    Runs a limited set of commands

  • Network

    No network

Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.

Supported environments

ClientSupportInstalled as
Claude CodeNative.claude/commands/<id>.md
OpenAI CodexAdapter.codex/prompts/<id>.md
CursorNative.cursor/commands/<id>.md
VS Code (Copilot)Native.github/prompts/<id>.prompt.md
Generic markdownAdapterdocs/forgekit/commands/<id>.md

Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.

Included in packs

  • engineering

Full command (free preview)

This is a free component, so its complete content is public. It is exactly what gets installed (before client-specific formatting).

Initialize ForgeKit context for this repository. Optional focus from the user: $ARGUMENTS

The goal is a short, accurate AGENTS.md that works as a MAP, plus a small docs/ skeleton that loads only when relevant. Facts only: everything you write must be verified from files in this repo.

  1. Use the CLI if it exists. Run command -v forge. If found, run forge detect and forge init and show their output; use their result as the starting point and still do steps 2-5 for anything they did not cover. If not found, say "ForgeKit CLI not installed, continuing manually" and do the steps below by hand. Never download or execute an installer.
  2. Detect the stack. Read manifests and lockfiles (package.json, pnpm-workspace.yaml, pyproject.toml, go.mod, Cargo.toml, build.gradle(.kts), Package.swift, pubspec.yaml, pom.xml, Gemfile, composer.json, *.csproj, ProjectSettings/), CI files, Dockerfile, Makefile. Record language and framework versions as written in those files, and the real build, test, lint and typecheck commands from scripts/CI.
  3. Respect what exists. Read any current AGENTS.md, CLAUDE.md, .cursor/rules, .github/copilot-instructions.md, README.md. Merge into them; never delete human-written guidance. If CLAUDE.md exists and duplicates AGENTS.md, report it instead of rewriting it.
  4. Write AGENTS.md (max about 60 lines): one-paragraph purpose, stack with versions, verified commands, top-level layout (one line per directory), 3-6 non-obvious conventions or gotchas, then a pointer table: docs/architecture/, docs/product/, docs/decisions/, docs/development/ each with a "read when..." clause. Create those four folders with a minimal README.md or overview.md containing only verified facts and an "Open questions" list for what you could not determine. Do not invent architecture.
  5. Recommend packs. List 3-6 ForgeKit components that match the detected stack and why (use ids such as repository-understanding, code-reviewer, protect-secrets, plus stack-specific ones). To find the install command, run forge --help rather than guessing syntax.
  6. Verify. Every command in AGENTS.md must exist in a manifest/Makefile/CI file (run the fast ones: lint or typecheck, not full builds, unless cheap) and every path or link must resolve. Report anything you could not confirm.

Allowed shell: command -v, forge detect, forge init, forge --help, git ls-files, git log, ls, and the repo's own lint/typecheck scripts. Do not modify source code, lockfiles, CI, or .env* files, and never write secret values (env var names only).

Output: (1) detected stack table with evidence file per row, (2) files created/changed, (3) commands verified vs. not run, (4) recommended packs, (5) open questions for the user.

Version and changelog

Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.

Changelog — /init

1.0.0

  • Initial release.

Build with this command

Create Demo Project

Install in CLI

$ devbuild add command init

Dependencies are resolved automatically.

Free. Needs a free account: run devbuild login once.

IDinit
Version1.0.0
TierFree
Arguments[focus area or package]
DevBuildKit

Your entire AI development team. One install.

DevBuildKit never uploads your source code. Telemetry is opt-in and anonymous.

Product

  • Agents
  • Skills
  • Commands
  • Packs
  • Features
  • Live demo
  • Pricing

Learn

  • Documentation
  • Getting started
  • CLI reference
  • Blog
  • Changelog
  • Compare

Free tools

  • All tools
  • Agent generator
  • Config converter
  • Stack detector
  • Context analyzer

Use cases

  • Android development
  • iOS development
  • SaaS development
  • Backend development
  • App Factory
  • Game development

Company

  • Terms
  • Privacy
  • Refunds
  • Log in
  • Sign up

© 2026 DevBuildKit. All rights reserved.

DevBuildKit is an independent product. Claude, Claude Code, Anthropic, OpenAI, Codex, ChatGPT, Cursor, Visual Studio Code, GitHub Copilot, Microsoft and all other product names are trademarks of their respective owners. DevBuildKit is not affiliated with, endorsed by or sponsored by any of them; names are used only to describe compatibility.