agentleFS
justincordovajustincordova/agents/skills/gather-context/SKILL.md

gather-context

Skill1 starsChanged 4 months agoMITView on GitHub

Use when the user wants to quickly understand a codebase or project before doing work. Scans structure, conventions, dependencies, and patterns. Produces a concise summary, not files.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. dmzoneill/skills★ 2same name
    2. t1djani/servo★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository16 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before brainstorming or planning, when context is needed fast

    line 14
  2. Distinctive:

    When the user says "what's going on in this project?" or "catch me up"

    line 15
  3. Distinctive:

    Create a task for each item and complete them in order.

    line 19
  4. Very specific:

    Read README.md or docs/SPEC.md for the project description

    line 25
  5. Very specific:

    Check package.json scripts, Makefile, justfile, Taskfile.yml, .csproj targets, or equivalent

    line 36
  6. Distinctive:

    Read AGENTS.md or equivalent config if it exists

    line 48
  7. Distinctive:

    Check linter/formatter configs

    line 49
  8. Distinctive:

    Check recent git log (last 5-10 commits) to understand what's been happening

    line 55
  9. Distinctive:

    Check for uncommitted changes

    line 56
  10. Distinctive:

    If the user asked about something specific, focus the summary on that area.

    line 79
  11. Distinctive:

    Focused on what matters next: If the user is about to build a feature, emphasize the files and patterns they'll touch.

    line 84
  12. Distinctive:

    Skippable: If context is already clear from the conversation, say so and skip the scan.

    line 86

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

Quickly understand a codebase by scanning its structure, conventions, dependencies, and patterns. The output is a concise summary delivered in chat — no files created.

Announce at start: "Using gather-context skill to scan the project."

When to Use

  • Starting work on an unfamiliar codebase
  • Coming back to a project after a break
  • Before brainstorming or planning, when context is needed fast
  • When the user says "what's going on in this project?" or "catch me up"

Checklist

Create a task for each item and complete them in order. Run scans in parallel where possible.

1. Project identity

  • Find the package manifest (package.json, go.mod, Cargo.toml, pyproject.toml, .csproj, Directory.Build.props, etc.)
  • Identify: name, language, framework, runtime version
  • Read README.md or docs/SPEC.md for the project description

2. Structure

  • List top-level directories and files
  • Drill into each major directory to understand purpose
  • Note entry points (main.go, src/index.ts, cmd/, apps/, packages/)
  • Identify monorepo layout if present (workspaces, packages, apps)

3. Commands

  • Check package.json scripts, Makefile, justfile, Taskfile.yml, .csproj targets, or equivalent
  • Identify: dev server, build, test, lint, format, typecheck
  • Note the pre-commit gate (which commands must pass)

4. Dependencies

  • Scan runtime and dev dependencies
  • Identify the key libraries the project relies on
  • Note version constraints or pinned versions

5. Conventions and patterns

  • Read AGENTS.md or equivalent config if it exists
  • Check linter/formatter configs
  • Identify coding patterns: state management, auth flow, data layer, error handling
  • Note any non-obvious conventions (naming, file organization, import style)

6. Recent activity

  • Check recent git log (last 5-10 commits) to understand what's been happening
  • Check for uncommitted changes

Output Format

Present a concise summary in chat. Keep it scannable.

## Context: <project name>

**What it is:** <1 sentence>
**Stack:** <language, framework, key deps>
**Structure:** <brief layout description>

**Commands:**
- `cmd` — what it does

**Key patterns:**
- <pattern> — <where it lives>

**Recent activity:**
- <last few commits or active work>

If the user asked about something specific, focus the summary on that area. Skip sections that aren't relevant to what they're about to do.

Key Principles

  • Fast, not exhaustive. This is a quick scan, not a deep audit. Target 2-3 minutes.
  • Focused on what matters next. If the user is about to build a feature, emphasize the files and patterns they'll touch. If they're just exploring, give the broad picture.
  • No files created. The output is a chat summary. If the user wants persistent context, that's what the sync-agents skill is for.
  • Skippable. If context is already clear from the conversation, say so and skip the scan.

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.