nd
AGENTS.md3 starsChanged 8 months agoMITView on GitHub
nd is a Go CLI tool for managing coding agent assets (skills, agents, commands, output styles, rules, context files, plugins, hooks) via symlink deployment. It uses Cobra for the CLI framework, gopkg.in/yaml.v3 for configuration, and Bubble Tea for the TUI. The index below lists all available guide documentation. Read the description column for each row and load only the docs that are relevant to your current task. Load a doc if its description matches the concepts, components, or tasks involved…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- tasks/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
If docs/solutions/ or .claude/docs/solutions/ are present in the current checkout, use them for documented solutions to past problems …
- Very specific: line 69
Do NOT use built-in file search, grep, or codebase indexing: always call run_pipeline first
- Very specific: line 70
If you spawn sub-agents or background tasks, pass them the context from run_pipeline rather than letting them search the codebase …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
nd is a Go CLI tool for managing coding agent assets (skills, agents, commands, output styles, rules, context files, plugins, hooks) via symlink deployment. It uses Cobra for the CLI framework, gopkg.in/yaml.v3 for configuration, and Bubble Tea for the TUI.
The index below lists all available guide documentation. Read the description column for each row and load only the docs that are relevant to your current task.
How to use this index
Load a doc if its description matches the concepts, components, or tasks involved in your current work. The description field is written as a trigger condition: "Load when [conditions]." If the conditions match your task, load the doc. If they do not, skip it.
If no doc in the index is relevant to your task, proceed without loading any. The absence of a relevant doc is useful signal: it may mean the area you are working in is undocumented. Note this if it affects your ability to complete the task accurately.
Reference docs for individual CLI commands are in docs/reference/ and are auto-generated.
<!-- AGENTS-INDEX-START -->| Doc | When to load | Last validated | Status | Paths |
| Agents | Load when modifying agent file scanning, agent deployment, or the agents asset type. | 2026-04-04 | current | internal/sourcemanager/scanner.go<br>internal/deploy/** |
| Commands | Load when modifying command file scanning, command deployment, or the commands asset type. | 2026-04-04 | current | internal/sourcemanager/scanner.go<br>internal/deploy/** |
| Configuration | Load when modifying config loading, merging, validation, or debugging config file issues. | 2026-04-05 | current | internal/config/**<br>cmd/settings.go<br>cmd/init.go |
| Context | Load when modifying context asset scanning, context deployment paths, or context conflict handling. | 2026-04-04 | current | internal/sourcemanager/scanner.go<br>internal/deploy/**<br>internal/deploy/context.go |
| Create asset sources | Load when modifying source scanning, asset type discovery, manifest parsing, or the directory convention. | 2026-04-05 | current | internal/sourcemanager/**<br>internal/asset/** |
| Export a plugin or marketplace | Load when modifying the export workflow: plugin packaging, marketplace generation, or export flags. | 2026-07-05 | current | cmd/export.go<br>internal/export/** |
| Get started | Load when setting up nd for the first time, troubleshooting installation, or onboarding a new user. | 2026-04-05 | current | cmd/init.go<br>cmd/source.go<br>cmd/deploy.go |
| Glossary | Load when encountering unfamiliar nd terminology or when disambiguating overloaded terms like agent, context, or command. | 2026-04-03 | current | internal/nd/**<br>internal/asset/** |
| Hooks | Load when modifying hook scanning, hook deployment, or settings.json hook registration. | 2026-04-04 | current | internal/sourcemanager/scanner.go<br>internal/deploy/** |
| How nd works | Load when modifying symlink creation, deploy logic, scope handling, or debugging broken deployments. | 2026-04-05 | current | internal/deploy/**<br>cmd/deploy.go<br>cmd/remove.go |
| Interactive TUI | Load when modifying the interactive terminal UI: screens, navigation, key bindings, header, or scope switching. | 2026-07-05 | current | internal/tui/**<br>cmd/root.go |
| Output styles | Load when modifying output style scanning, deployment, or settings.json registration behavior. | 2026-04-04 | current | internal/sourcemanager/scanner.go<br>internal/deploy/** |
| Plugins | Load when modifying plugin scanning, export workflow, or plugin.json manifest handling. | 2026-04-04 | current | internal/sourcemanager/scanner.go<br>internal/export/**<br>cmd/export.go |
| Profiles and snapshots | Load when modifying profile CRUD, snapshot save/restore, profile switching, or pinning logic. | 2026-04-05 | current | internal/profile/**<br>cmd/profile.go<br>cmd/snapshot.go<br>cmd/pin.go<br>cmd/unpin.go |
| Rules | Load when modifying rule file scanning, rule deployment, or the rules asset type. | 2026-04-04 | current | internal/sourcemanager/scanner.go<br>internal/deploy/** |
| Skills | Load when modifying skill directory scanning, skill deployment, or the skills asset type. | 2026-04-04 | current | internal/sourcemanager/scanner.go<br>internal/deploy/** |
| Team and project config | Load when configuring shared team sources, git URLs, symlink strategy, or project-scoped versus user-scoped config. | 2026-07-05 | current | internal/config/**<br>internal/sourcemanager/**<br>cmd/deploy.go |
| Troubleshoot | Load when debugging nd issues: broken symlinks, missing assets, config errors, profile switching problems, or context file conflicts. | 2026-04-04 | current | cmd/doctor.go<br>cmd/sync.go<br>internal/deploy/** |
| User guide | Load when modifying CLI commands, interactive pickers, JSON output, scripting flags, or sync/doctor workflows. | 2026-04-05 | current | cmd/** |
<!-- AGENTS-INDEX-END -->Documented solutions
If docs/solutions/ or .claude/docs/solutions/ are present in the current checkout, use them for documented solutions to past problems (bugs, best practices, workflow patterns), organized by category with YAML frontmatter (module, tags, problem_type). If those paths are absent, proceed without them.
Vexp <!-- vexp v1.2.30 -->
MANDATORY: use run_pipeline: do NOT grep or glob the codebase.
vexp returns pre-indexed, graph-ranked context in a single call.
Workflow
run_pipelinewith your task description: ALWAYS FIRST (replaces all other tools)- Make targeted changes based on the context returned
run_pipelineagain only if you need more context
Available MCP tools
run_pipeline: PRIMARY TOOL. Runs capsule + impact + memory in 1 call. Auto-detects intent. Includes file content. Example:run_pipeline({ "task": "fix auth bug" })get_context_capsule: lightweight, for simple questions onlyget_impact_graph: impact analysis of a specific symbolsearch_logic_flow: execution paths between functionsget_skeleton: compact file structureindex_status: indexing statusget_session_context: recall observations from sessionssearch_memory: cross-session searchsave_observation: persist insights (prefer run_pipeline's observation param)
Agentic search
- Do NOT use built-in file search, grep, or codebase indexing: always call
run_pipelinefirst - If you spawn sub-agents or background tasks, pass them the context from
run_pipelinerather than letting them search the codebase independently
Smart features
Intent auto-detection, hybrid ranking, session memory, auto-expanding budget.
Multi-Repo
run_pipeline auto-queries all indexed repos. Use repos: ["alias"] to scope. Run index_status to see aliases.
<!-- /vexp -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

