agentleFS
VECTORG99VECTORG99/acf/skills/01-context-load/SKILL.md

context-load

Skill2 starsChanged 3 months agoMITView on GitHub

Phase 1 of ACF. Reads all project MDs and builds a compressed context snapshot (architecture, challenge, templates, tests, CI checks). Use when ACF orchestrator delegates context gathering, or when the user asks to "load context", "read the project docs", or "understand the stack before making an issue".

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. s977043/PlanGate★ 3same name
    2. jaskiel123/operators-brain★ 0same 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 repository10 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read in order, skip missing files:

    line 21
  2. Distinctive:

    After the reading order, scan the following files for imperative rules and framework-specific conventions that affect issue/PR crafting:

    line 34
  3. Distinctive:

    Keep the extracted conventions compact: max 10 bullets, only the rules that affect issue/PR crafting.

    line 52
  4. Very specific:

    Write to the progress file (.slim/acf/<slug>.md):

    line 58
  5. Very specific:

    If key project files are missing, the snapshot still builds — record "none" or "not found" for the missing section instead of skipping it:

    line 114
  6. Very specific:

    GitHub API rate limits: not applicable to context-load (no API calls).

    line 139
  7. Very specific:

    If gh is used for supplementary data and rate-limited, skip that data and note it in the snapshot.

    line 140
  8. Very specific:

    Commands fail: if a file read fails (permissions, encoding), skip the file and note it: "[file]: read error — skipped".

    line 144

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

Context-Load

Reads project documentation and builds a compressed snapshot that later phases (issue-craft, pr-context) consume. The snapshot is never a copy of file contents — it is a structured index of paths + key facts.

Reading Order

Read in order, skip missing files:

  1. AGENTS.md — workflow, conventions, file reference table
  2. ARCHITECTURE.md or docs/ARCHITECTURE.md — architecture decisions
  3. docs/DEVELOPMENT.md — dev guide, build/test commands
  4. docs/ACCEPTANCE_CRITERIA.md (or equivalent) — AC patterns by issue type
  5. .github/ISSUE_TEMPLATE/* — issue template fields and auto-labels
  6. .github/PULL_REQUEST_TEMPLATE/* — PR template required sections
  7. .github/workflows/* — CI check names (extract job names, not full YAML)
  8. README.md — project snapshot (test counts, file counts, stack)

Conventions Extraction

After the reading order, scan the following files for imperative rules and framework-specific conventions that affect issue/PR crafting:

  • AGENTS.md — scan for imperative rules (keywords: "must", "always", "never", "MUST", "CRITICAL"). Extract the rules that constrain code or workflow decisions.
  • CONTRIBUTING.md, DEVELOPMENT.md, ADEV.md — scan for conventions (naming, structure, patterns). Skip files that are absent.
  • Code review checklists (if present, e.g. .github/CHECKLIST.md, docs/CODE_REVIEW.md) — extract enforcement rules that reviewers apply.
  • Framework-specific API rules — e.g. "use OnClientEvent, not .Event" for RemoteEvents.
  • Lifecycle rules — e.g. "disconnect all :Connect() in KnitDestroy".
  • Testing conventions — e.g. "mock Players:GetPlayerByUserId → nil for no-op replication".
  • Rollout/deployment conventions — e.g. "3-stage rollout (Hidden → Integrated → Cleanup) for new features".

Keep the extracted conventions compact: max 10 bullets, only the rules that affect issue/PR crafting. Drop generic advice ("write clean code") and keep only enforceable, framework-specific rules.

Snapshot Schema

Write to the progress file (.slim/acf/<slug>.md):

## Context Snapshot

### Architecture
- Stack: [languages, frameworks, build tools — one line]
- Key dirs: [src/, scripts/, docs/ — paths only]
- Architecture doc: [path or "none"]

### Challenge
- Current branch: [name]
- Open issues: [count] (from stack-audit)
- Open PRs: [count] (from stack-audit)

### Templates
- Issue templates: [list names + auto-labels]
- PR template: [path, required sections]

### Tests
- Test commands: [exact commands, one per line]
- Test count: [N tests across M suites]
- Coverage tool: [command or "none"]

### CI Checks
- Check names: [list job names from workflows]
- Required checks: [which ones gate merge]

### Conventions
- API: `OnClientEvent`/`OnServerEvent` for RemoteEvents (NOT `.Event`)
- Lifecycle: all `:Connect()` stored + disconnected in `KnitDestroy`
- Constants: no magic numbers — all in `Constants.luau` as UPPER_SNAKE_CASE
- Testing: mock `Players:GetPlayerByUserId` → `nil` for no-op replication
- Rollout: 3-stage (Hidden → Integrated → Cleanup) for new features
- Commit format: [conventional commits or custom]
- Branch naming: [prefix rules]

Compression Rules

  1. Paths, not contents — src/shared/Constants.luau not the file's code
  2. Command strings, not configs — lune run scripts/test_core.luau not the test file
  3. Check names, not YAML — test (lune) not the full workflow
  4. Counts, not lists — "26 services" not a list of all 26 service names
  5. Max 5 bullets per section — if more, summarize

Output

The snapshot is consumed by:

  • stack-audit (phase 2) — uses test commands and CI check names
  • issue-craft (phase 3) — uses AC patterns, templates, conventions
  • pr-context (phase 4) — uses test commands, CI check names, PR template

Empty State Handling

If key project files are missing, the snapshot still builds — record "none" or "not found" for the missing section instead of skipping it:

  • No ARCHITECTURE.md — set Architecture doc: none. Infer the stack from package.json, Cargo.toml, go.mod, or file extensions. Note in the snapshot: "Architecture doc missing — stack inferred from manifest files."
  • No .github/workflows/ — set CI Checks: none. Note: "No CI workflows detected — AC should reference local test commands only."
  • No .github/ISSUE_TEMPLATE/ — set Issue templates: none. Use the default issue structure from issue-craft (this skill's body template).
  • No .github/PULL_REQUEST_TEMPLATE/ — set PR template: none. Use the default PR body structure from pr-context.
  • No README.md — set Stack: inferred from file extensions. Note: "No README — stack inferred from source files."
  • No AGENTS.md — skip conventions extraction, set Conventions: none.

The snapshot is always produced, even for a bare repo with only source files.

Error Handling

  • gh CLI not installed: context-load does not require gh — it reads files from the local filesystem. If gh is needed for issue/PR counts, note "gh not available — counts deferred to stack-audit" and proceed.
  • gh not authenticated: same as above — context-load works without gh. Stack-audit will handle auth errors.
  • GitHub API rate limits: not applicable to context-load (no API calls). If gh is used for supplementary data and rate-limited, skip that data and note it in the snapshot.
  • Required files/directories don't exist: see Empty State Handling above. Missing files are expected — record "none" and continue.
  • Commands fail: if a file read fails (permissions, encoding), skip the file and note it: "[file]: read error — skipped". Do not abort the snapshot.

Example

Filled-in snapshot for a sample Luau game project:

## Context Snapshot

### Architecture
- Stack: Luau, Knit, Lune build tool
- Key dirs: src/server/, src/client/, src/shared/, scripts/, docs/
- Architecture doc: docs/ARCHITECTURE.md

### Challenge
- Current branch: fix/flashlight-fireserver
- Open issues: 7 (from stack-audit)
- Open PRs: 2 (from stack-audit)

### Templates
- Issue templates: bug-report.yml (auto-labels: bug, area:backend), feature-request.yml (auto-labels: enhancement)
- PR template: .github/PULL_REQUEST_TEMPLATE.md (required: Summary, Closes, AC)

### Tests
- Test commands: lune run scripts/test_core.luau
- Test count: 26 tests across 3 suites
- Coverage tool: none

### CI Checks
- Check names: test (lune), lint (selene), type-check (luau-analyze)
- Required checks: test (lune), type-check (luau-analyze)

### Conventions
- API: OnClientEvent/OnServerEvent for RemoteEvents (NOT .Event)
- Lifecycle: all :Connect() stored + disconnected in KnitDestroy
- Constants: no magic numbers — all in Constants.luau as UPPER_SNAKE_CASE
- Testing: mock Players:GetPlayerByUserId → nil for no-op replication
- Rollout: 3-stage (Hidden → Integrated → Cleanup) for new features
- Commit format: conventional commits
- Branch naming: fix/, feature/, docs/

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.