repository-map

repository-map is an agent for coding agents from solana-foundation/templates. It costs 0 tokens per session (558 once invoked), scanned A, original, MIT.

A repository guide that maps the files, folders, and generated metadata used as templates by create-solana-dapp, a tool for starting Solana applications.

In plain words
What is it for?
Use it to find template roots, understand key repository files, and follow the path from template source to generated catalog metadata.
Why use it?
It prevents documentation and scripts from relying on outdated folder names or confusing the public template gallery with the actual source files.

Agent

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 agents/solana-foundation/templates/repository-map
Clone the repo
git clone --depth 1 https://github.com/solana-foundation/templates

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 repository-map

README.md
[![agentmods](https://agentmods.dev/badge/agents/solana-foundation/templates/repository-map.svg)](https://agentmods.dev/agents/solana-foundation/templates/repository-map)
Your own site
<a href="https://agentmods.dev/agents/solana-foundation/templates/repository-map"><img src="https://agentmods.dev/badge/agents/solana-foundation/templates/repository-map.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 558 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.00558
Opus 5 $0.00000 $0.00279
Sonnet 5 $0.00000 $0.00112
Haiku 4.5 $0.00000 $0.00056

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

Security

Grade A, and why

repository-map 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 4d 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.

docs/agents/repository-map.md · 50 lines

How it starts

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

Repository Map

This repository is the template source consumed directly by create-solana-dapp. The public gallery at https://solana.com/developers/templates is a browsing surface, not a separate template source.

Root Files

  • README.md explains user-facing template usage and the high-level contribution flow.
  • CONTRIBUTING.md explains the general GitHub workflow and local commands.
  • COMMUNITY_TEMPLATE_GUIDE.md is the main guide for new community templates.
  • package.json defines root scripts and the repokit.groups template groups scanned by the generator and linter.
  • templates.json is generated metadata consumed by downstream tooling.
  • TEMPLATES.md is generated human-readable template metadata.

Template Roots

Template roots are configured in root package.json under repokit.groups. Use that file as the source of truth instead of hard-coding group names in docs or scripts.

Most new externally maintained templates belong under community/ unless a maintainer asks for a different root.

Reference Flow

  • Use root package.json repokit.groups to find the current template roots.
  • Use TEMPLATES.md for the generated catalog of current templates.
  • Use nearby templates in the same root as examples for scripts, README structure, metadata, and assets.
  • Use COMMUNITY_TEMPLATE_GUIDE.md for community submission requirements.

Agent Docs

  • repository-map.md explains where repo-level information lives.
  • template-authoring.md explains template contents and safety expectations.
  • template-metadata.md explains package metadata and generated outputs.
  • testing-and-ci.md explains local validation and CI behavior.
  • review-checklist.md gives review criteria.
  • known-gotchas.md captures edge cases that do not belong in the main guides.

Tooling

  • scripts/generate.ts scans template groups and writes templates.json, TEMPLATES.md, and .github/workflows/templates.json.
  • scripts/lint.ts validates template package metadata, duplicate names, and og-image.png requirements.
  • scripts/validate.ts validates generated metadata shape.
  • scripts/create-image.ts creates template og-image.png assets.
  • scripts/clean.ts removes templates.json and TEMPLATES.md.

Read the full file on GitHub · 50 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. 4d ago First seen · 50 lines · 0 tokens per session scan A 69fea7ec97a4

Subscribe to this mod's changes

repository-map is an agent published in the GitHub repository solana-foundation/templates (106 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 558 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.

Related

Other agents, from other repositories

codemap

Defines agent personalities (Orchestrator, Explorer, Librarian, etc.) and manages their configuration lifecycle. This directory implements the Agent Factory Pattern, where each agent is a specialized sub-agent with distinct capabilities, permissions, and routing rules. The Orchestrator agent (src/agents/index.ts)…

alvinunreal/oh-my-opencode-slim · 0 tokens

red-team-reviewer

Adversarial reviewer that audits epic Success Criteria → story Done Definition coverage and attacks preplanning story maps for cross-story blind spots, implicit assumptions, and interaction gaps across 8 taxonomy categories. Requires opus.

navapbc/digital-service-orchestra · 46 tokens

foundation_architecture

Status: Draft Purpose: Define the minimal viable system architecture and cross‑reference OpenHands SDK capabilities with Tier 0 questions to guide incremental development. Related: ./openhandsinsightsandprioritization.md, ./implementationquestions.md, ./design/multiagentorchestration.md.

kivo360/OmoiOS · 0 tokens

chainaware-token-launch-auditor

Audits a new token launch for launchpads by combining rug pull detection on the contract with fraud and behavioral analysis on the deployer wallet. Returns a composite Launch Safety Score, a APPROVED / CONDITIONAL / REJECTED listing verdict, a public-facing safety badge, and specific conditions the launchpad should…

ChainAware/behavioral-prediction-mcp · 247 tokens

stellar-contracts

Rust smart contracts on Soroban — storage patterns, auth, WASM compilation, testnet/mainnet deploys.

rylsherdamz-rgb/stellar-forge · 26 tokens

ux-designer

Conducts user research, defines personas, creates wireframes, and produces design tokens and component specs. Runs once at the start of the Build phase when hasui is true. Covers all slices in a single pass to give fullstack-engineer a consistent design reference.

saitarrun/Devforge-ai · 57 tokens