@dotdotgod/pi
Pi adapter for dotdotgod: project-initializer skill, shared docs scaffold, plan/archive workflow, and project loading extensions.
Package details
Install @dotdotgod/pi from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@dotdotgod/pi- Package
@dotdotgod/pi- Version
0.1.37- Published
- May 24, 2026
- Downloads
- 4,316/mo · 2,923/wk
- Author
- dotdotgod
- License
- Elastic-2.0
- Types
- extension, skill
- Size
- 221.6 KB
- Dependencies
- 2 dependencies · 5 peers
Pi manifest JSON
{
"skills": [
"./skills"
],
"extensions": [
"./extensions"
],
"prompts": []
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@dotdotgod/pi
Change a file, know what else must be checked.
$ dotdotgod graph impact . --changed packages/cli/src/core.mjs --compact
docs:
- docs/spec/REFERENCE_EXPANSION.md (91; incoming:implemented_by, semantic_similarity)
- docs/test/REFERENCE_EXPANSION.md (65.3; verified_by, semantic_similarity)
- docs/spec/LOAD_PROJECT.md (35.8; related_doc, semantic_similarity)
tests:
- packages/cli/test/core.test.mjs (78.6; semantic_similarity, incoming:semantic_similarity, verified_by)
- packages/cli/test/e2e.test.mjs (51.4; verified_by)
files:
- packages/cli/src/core.mjs (100; changed-file)
- packages/pi/extensions/plan-mode/index.ts (45; implemented_by, semantic_similarity)
graph impact ranks the specs, tests, architecture notes, config docs, and source files most likely to matter for a change. --compact keeps a short text summary, --yml/--yaml returns a compact structured agent-facing summary, and --json returns machine-readable detail. It uses the project-memory graph built from Markdown links, README routes, headings, traceability blocks, package metadata, memory areas, and deterministic routing hints.
Pi adapter for dotdotgod's context curation workflow. It gives Pi the most complete dotdotgod loop: initialize the fixed load-context surface, use explicit maintained graph links for impact-aware planning, execute verified steps, and archive completed work as future project memory.
Use this package when you want Pi to make repository work start from stable specs, tests, architecture, active plans, archive maps, and graph/cache metadata instead of raw chat history. During the loop, agents help keep README routes, traceability, plans, and archives current so graph impact quality stays useful over time.
Start Here: Run the Project Initializer Skill
After installing the package, open Pi in your repository and ask it to initialize or normalize the project memory scaffold. The bundled skill is named project-initializer; the package installs @dotdotgod/cli as a runtime dependency so packaged Pi installs can use the CLI without a separate global install, and the skill still includes a shell fallback.
pi install npm:@dotdotgod/pi
Use natural language in Pi:
Initialize this project with dotdotgod.
Set up AGENTS.md, CLAUDE.md, CODEX.md, and docs folders.
Create a doc-first project baseline for this repository.
A good first-run flow is:
- Install the package.
- Start Pi in the target repository.
- Ask:
Initialize this project with dotdotgod. - Review the files the skill plans to create or skip.
- Let the skill create the scaffold.
- Run
/dd:loadto load bounded project memory. - Use
/planbefore implementation work.
What You Get
- Bundled dotdotgod CLI dependency: packaged installs include
@dotdotgod/clias a runtime dependency, and Pi extensions prefer a source-checkout CLI when present, then the package-local CLI, then a globaldotdotgodfallback. - Subagent delegation: packaged installs include
pi-subagentsresources, exposing thesubagenttool, builtin role agents, orchestration prompts, and thepi-subagentsskill without a separate standalone install; if standalonepi-subagentsis already installed, the wrapper suppresses duplicate dotdotgod-provided tool, skill, and prompt resources. - Project initializer skill: create
AGENTS.md, thinCLAUDE.md/CODEX.md, docs indexes, active-plan space, archive map, and local memory/cache ignores. - Document clarity skill: improve README/spec/test/arch/plan/archive wording using memory-area roles and optional config guidance without changing behavior contracts.
- Task-directed loading:
/dd:loadstarts fromdotdotgod load-snapshotwhen available, then reads only relevant docs from the fixed memory surface. - Safe planning:
/plankeeps source/config changes blocked while request framing turns implementation-looking asks into durable plans underdocs/plan/first;/plan <request>enables planning and sends the first request in one step. - Impact-aware context shaping: Plan Mode can queue curated load when baseline docs are missing or context has narrowed to one docs area, and can use
dotdotgod expand --with-impactfor explicit[[...]]refs andexpand --fuzzy --with-impactfor high-signal natural references from the maintained graph. - Impact enforcement: after source/config edits, Pi can remind the agent to run
dotdotgod_graph_impactor/impact-check, return structured YML impact summaries, and block commit/push/publish commands until pending impact checks pass. - Execution continuity: completed plan steps are reported with explicit
[DONE:n]markers so progress survives long sessions and compaction. - Reusable history: completed work moves to
docs/archive/plan/, whiledocs/archive/README.mdremains the lightweight history map. - Cross-agent conventions: the same
AGENTS.md, docs, plan, and archive structure works with dotdotgod's CLI, Claude Code, and Codex packages.
The Memory Shape Initialized by the Skill
AGENTS.md # canonical working rules for agents
CLAUDE.md # thin Claude Code pointer to AGENTS.md
CODEX.md # thin Codex pointer to AGENTS.md
docs/
README.md # project documentation map
spec/README.md # behavior, requirements, product truth
arch/README.md # architecture, conventions, boundaries
test/README.md # verification strategy and smoke tests
plan/README.md # active local plans, ignored by git
archive/README.md # completed-work history map, ignored by git
By default, docs/spec/** has two roles: it is stable shared/fresh project memory, and it is the traceability-enforced behavior-spec path. Those knobs are separate: projects can customize memory classification with memory.areas and traceability enforcement with traceability.required / traceability.exclude.
Graph and Bounded Loading
The Pi adapter relies on the CLI graph when available but does not ask agents to read a giant graph report. load-snapshot returns bounded cache status, graph size, memory areas, communities, and archive policy. graph impact and reference expansion use explicit maintained links to surface related specs, tests, source, and config for a change before broad scanning.
The graph uses more than traceability blocks: Markdown links, README routes, headings, package metadata, memory-area membership, commands, tests, and deterministic routing hints all contribute. Archive bodies are excluded by default; docs/archive/README.md is the map.
Commands
/plan Toggle safe planning mode.
/plan <request> Enable plan mode and send a planning request.
/todos Show tracked plan progress during execution.
/impact-check Run graph impact checks for pending or git-changed files.
/load Load project memory for the current repository.
/dd:load Stable namespaced alias for project memory loading.
Included
- Runtime dependencies:
@dotdotgod/clifor package-local CLI execution andpi-subagentsfor delegation resources. Because these are package dependencies, npm/Pi installs fetch them automatically; local path installs require dependencies to be installed in the checkout. project-initializerskill: the starting point forAGENTS.md, thin agent entrypoints, docs folders, README indexes, and local memory/cache ignores.document-clarifyskill: config-aware documentation clarity workflow for README indexes, specs, tests, architecture docs, plans, archives, and custom docs areas.plan-modeextension: read-first planning mode with restricted tools,/plan <request>inline request delivery, request framing, optional--plan-extra-tools, docs/plan writes, execution tracking, tiered hidden prompts, mandatory impact/validation guidance,/todos,dotdotgod_graph_impact, and/impact-check.load-projectextension: read-only project context loading through/loadand/dd:load.pi-subagentsextension resources: a dotdotgod wrapper resolves the installed dependency with Node package resolution, waits until session startup to decide whether standalonepi-subagentsalready owns thesubagenttool, and exposes package-local prompts/skill plus thesubagenttool only when dotdotgod owns the registration.
Local Development
pi install /path/to/dotdotgod/packages/pi
pnpm --filter @dotdotgod/pi run verify
pnpm --filter @dotdotgod/pi run pack:dry-run
Learn More
See the root README, GitHub repository, docs/concept/CONTEXT_CURATION.md, docs/concept/CONTEXT_MECHANICS.md, docs/spec/MEMORY_AREA_CONFIG.md, and docs/spec/TRACEABILITY_CONFIG.md.
Compared with Graphify-Style Memory
The Pi adapter focuses on workflow: initialize the project memory scaffold, load a bounded snapshot, plan before source edits, and archive completed work for future sessions. Graph/cache output is a compact map; detail still comes from targeted file reads.