Index of every page on this site: llms.txt
All skills
Run it yourself

Audit and map an unfamiliar or ambiguous source repository without modifying project, Git, dependency, runtime, or remote state. Use when Codex must locate the canonical repository, understand structure and tooling, identify entry points, tests, documentation, CI, or migrations, or establish evidence before planning code changes.

  • 7 files
  • 8.8 KB
  • Updated 5 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/ayobamih/coding-agent-skills/repo-map

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈85 tokens for metadata: the name and description. ≈1.1k when used: this file. ≈1.1k more on demand in 6 files.

Description uses 4.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈342 characters, or 4.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Repository Map

Produce an evidence-backed repository map. Remain audit-only and fail closed when repository identity or command safety is uncertain.

Purpose And Use

Use this skill to establish canonical repository identity, structure, tooling, entry points, tests, CI, documentation, migrations, and boundaries before implementation. Do not use it for route-level tracing, builds, runtime validation, secret auditing, or any mutation.

Inputs

Require a starting path and the user intent or subsystem to understand. Optionally accept an expected canonical remote, maximum traversal depth, project adapter identifier, or explicit approval for one normally excluded file.

Do not assume the starting path is the repository root, the README is current, one package manifest describes the whole repository, or a familiar directory is authoritative.

Safety Boundary

Run only bounded inspection commands:

  • pwd
  • bounded ls
  • rg --files with exclusions
  • bounded find under the candidate repository
  • git rev-parse
  • git remote -v
  • git status --short --branch
  • bounded reads with sed or head
  • structured parsers used only to read known manifest files

Do not write files, install packages, deploy, migrate, call privileged APIs, change processes or services, read secret files, scan an unrestricted home directory, or mutate Git. Reject shell chains containing a restricted operation even when another segment is allowed.

Treat .env, credential stores, private keys, token files, browser profiles, cloud configuration, and similarly named files as secret-bearing. Do not read them without explicit approval.

This is audit-only behavior. It may collect evidence but must not change the inspected project or external state.

Procedure

  1. Record user intent, starting path, declared scope, and adapter.
  2. Confirm the path exists without searching outside the declared scope.
  3. Locate candidate repository roots with bounded inspection.
  4. Establish identity with Git root, remote, branch, HEAD, and working-tree state when Git exists.
  5. Stop and report ambiguity if multiple candidates remain plausible.
  6. Inventory top-level files and directories with bounded depth and explicit exclusions.
  7. Inspect known manifests and workspace configuration without loading secret values.
  8. Identify application entry points, packages, tests, CI, documentation, migrations, and generated-code boundaries.
  9. Compare documentation claims with visible code structure; label discrepancies rather than resolving them by assumption.
  10. Produce the shared evidence pack before claiming completion.

Use checklist.md while executing. Consult failure-modes.md when a check fails, adapter-interface.md when an adapter is present, and examples.md for safe and unsafe cases. Format results with evidence-template.md.

Evidence, Recovery, And Dependencies

Emit repository identity, working-tree state, structural map, inspected manifests, boundaries, skipped checks, risks, and unresolved questions through the shared evidence-pack contract. Recover from missing paths, ambiguity, permissions, or malformed manifests only through narrower read-only inspection; never install, alter permissions, or mutate files.

This skill depends only on the evidence-pack contract. Adapters may add safe markers, paths, and evidence requirements but cannot weaken policy. Safe usage maps a named repository before editing; unsafe usage scans an entire home directory or reads secrets.

Approval Boundary

Explicit approval may permit reading one named normally excluded file when necessary. Approval does not permit writes, installation, Git mutation, runtime mutation, deployment, migration, or privileged API access; those operations are outside this skill.

Completion

Claim complete only when repository identity is established or explicitly non-Git, required structural areas were inspected, every required check is executed or recorded as skipped with consequence, no mutation occurred, uncertainties are reported, and the evidence pack is complete.

Otherwise report partial, failed, or blocked. Never equate command execution with successful mapping.

These conditions are both the acceptance criteria and definition of done.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 7472ec4. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Activeupdated 5 months ago

README badge

README badge for ayobamih/coding-agent-skills/repo-map