agentleFS
rafaelghifrafaelghif/antigravity-agents-core/.agents/skills/index-project/SKILL.md

index-project

Skill6 starsChanged 15 days agoMITView on GitHub

Scans and indexes any multi-language repository (Node/TS, Dart/Flutter, Go, Python, Rust, JVM, Swift) into CONTEXT.md with verified stack versions, config/logging seams, verification commands, shared UI primitives/widgets, design tokens, utilities, and module boundaries. Use when starting on an unindexed repo, when CONTEXT.md is still a template, or after structural changes.

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 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.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the detected manifests (package.json, pubspec.yaml, go.mod, Cargo.toml, pyproject.toml, tsconfig.json, analysis_options.yaml).

    line 28
  2. Very specific:

    Read barrel files, shared widget/component folders (components/, widgets/, ui/, shared/), and theme/token files (ThemeData, AppColors, …

    line 31
  3. Very specific:

    Read existing HTTP/API clients, auth/session guards, boundary validators, formatters, and shared hooks/providers/BLoCs.

    line 34
  4. Very specific:

    When scan-repo.mjs reports layoutMode: hub-and-spoke (> 1 workspace or > 100 files), keep CONTEXT.md concise as the Index Hub (linking …

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Index Project (Multi-Language Codebase Reconnaissance)

Populate CONTEXT.md strictly with verified file paths, exported symbols, config/logging seams, and runnable commands so downstream planning and coding never guess or duplicate existing code.

Decision tree

  1. Does CONTEXT.md already have verified, non-template entries matching current manifests?
    • Yes (and no major refactor occurred) → Read CONTEXT.md and spot-check only the directories touched by the current task.
    • No (template placeholders or stale paths) → Run the indexing workflow below.
  2. Is the codebase large (>100 source files)?
    • Yes → Run the black-box scanner script first, then delegate deep symbol extraction to codebase-investigator via invoke_subagent, and verify key files with read_file.
    • No → Run the black-box scanner script, then read key manifests/primitives directly.

Indexing workflow

  1. Run the Black-Box Scanner First:
    • Inspect script options via --help, then execute:
      node .agents/skills/index-project/scripts/scan-repo.mjs --help
      node .agents/skills/index-project/scripts/scan-repo.mjs
  2. Verify Manifests, Config & Logging Seams:
    • Read the detected manifests (package.json, pubspec.yaml, go.mod, Cargo.toml, pyproject.toml, tsconfig.json, analysis_options.yaml).
    • Locate and read the startup configuration module (.env loader, --dart-define / config class) and structured logger helper.
  3. Inspect Shared UI / Widgets & Design Tokens (or mark N/A):
    • Read barrel files, shared widget/component folders (components/, widgets/, ui/, shared/), and theme/token files (ThemeData, AppColors, tailwind.config.*, globals.css).
    • Record exact file paths, exported symbols, and key props/variants.
  4. Inspect Shared Utilities, API Clients, Schemas & State Holders:
    • Read existing HTTP/API clients, auth/session guards, boundary validators, formatters, and shared hooks/providers/BLoCs.
  5. Write CONTEXT.md (and Optional Hub+Spoke Domain Files) & Verify Every Path:
    • Populate Sections 1–5 of CONTEXT.md using only observed paths/symbols; preserve domain invariants in Sections 6–7.
    • When scan-repo.mjs reports layoutMode: hub-and-spoke (> 1 workspace or > 100 files), keep CONTEXT.md concise as the Index Hub (linking per-workspace/domain spokes at docs/domains/<domain>.md) so root context stays token-efficient. Single-package repos keep single-context inside CONTEXT.md.
    • Confirm every file path cited in CONTEXT.md exists on disk.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.