agentleFS
hmj1026hmj1026/dhpk/skills/repo-intake/SKILL.md

repo-intake

Skill2 starsChanged 8 days agoMITView on GitHub

Project initialization inventory (one-time), for first onboarding a project or rebuilding cache after structural changes. Not for: day-to-day development (read cache directly), finding specific files (use code-trace). Output: project map with entrypoints + test map + next steps.

3 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 1 is common, 0 are distinctive, and 1 is very specific to this project.

  • 1

    Common

    Most of the 3 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Common:

    Only need to find specific files (use Glob/Grep)

    line 28
  2. Very specific:

    Test Map covers Unit/Integration/E2E layers

    line 82

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

Repo Intake

$SKILL_DIR denotes the physical directory containing the selected SKILL.md; it is path notation, not an ambient environment variable or repository-root lookup. Resolve it before running intake from an arbitrary consumer cwd.

When to Use

  • First time onboarding a project
  • Rebuilding cache after major project structural changes
  • Cache expired, needs updating

When NOT to Use

  • Already familiar with project structure (read cache directly)
  • Only need to find specific files (use Glob/Grep)
  • Day-to-day development (cache already exists)

Workflow

Docs -> Entrypoints -> Tests Map -> Next Steps

Usage

node "$SKILL_DIR/scripts/intake_cached.js" --mode auto --top 10

Cache Location

Cache stored at: ~/.claude/cache/repo-intake/<repoKey>/

FileDescription
latest.mdLatest scan results
latest.jsonLatest scan results (JSON)
LATEST.jsonCache metadata

Output

## Overview

<summary>

## Entrypoints

- {CONFIG_FILE}
- {BOOTSTRAP_FILE}

## Test Map

| Type        | Pattern           |
| ----------- | ----------------- |
| Unit        | test/unit/        |
| Integration | test/integration/ |
| E2E         | test/e2e/         |

## Next Steps

- <questions>

Verification

  • Output includes Overview, Entrypoints, Test Map, Next Steps
  • Entrypoints correctly identify {CONFIG_FILE}, {BOOTSTRAP_FILE}
  • Test Map covers Unit/Integration/E2E layers

References

  • references/archived/MIDWAY_HEURISTICS.md — Legacy MidwayJS heuristics (archived, for reference only)

Scripts

ScriptPurpose
scripts/intake_cached.jsMain intake with caching
scripts/scan_repo.jsFull repo scanner (framework-agnostic)
scripts/scan_delta.jsDelta scan for changed files

Examples

Input: repo-intake
Action: Execute intake script -> Output project map
Input: repo-intake save
Action: Execute intake script -> Output and write to docs/ai/intake/

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.