Skip to content
Agentmart
Submit a tool

ag-generate-context

Generate or update the project's authoritative repository context at process/context/all-context.md.

Skill by ngxccc

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ngxccc-ag-generate-context

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Generate or update the project's authoritative repository context at process/context/all-context.md. Use when repo context is missing, stale, or contradicted by code.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Node.js package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ag-generate-context

What's inside

Skill name
ag-generate-context
Description
Generate or update the project's authoritative repository context at process/context/all-context.md. Use when repo context is missing, stale, or contradicted by code.
License
MIT
Instructions
60 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (3)

  • SKILL.md
  • generate-context.md · references/
  • validate-all-context.mjs · scripts/

SKILL.md (first lines)

# Generate Context

## When to Apply

Use this skill when working with ag-generate-context workflows, tasks, or system specifications.

## How to Use

Refer to the workflow instructions and command references detailed below.

> **Output style:** Follow `process/development-protocols/communication-standards.md` — answer-first, plain language, no unexplained jargon, TL;DR on long responses.

Use this skill to maintain `process/context/all-context.md`, the broad portable project knowledge layer shared by Codex and Claude. Use `process/context/all-context.md` as the context router before reading grouped docs.

Optional input: a package, app, feature, context group, or architectural area to refresh first.

## Workflow

1. Read `references/generate-context.md` for the full context contract.
2. Determine mode:
   - Full scan when `process/context/all-context.md` is missing.
   - Delta update when it exists.
3. Read `process/context/all-context.md` when present to identify relevant grouped context files.
4. Inspect current repo state, active plans, feature folders, package scripts, tooling, important architecture files, and relevant `process/context/**/*.md` docs.
5. Produce `process/context/all-context.md` PLUS `process/context/{group}/all-{group}.md` for each detected or approved group (see Invocation Modes below).
6. Include scan timestamp, repo HEAD if available, changes since last update, open questions, and source references.
7. Validate the generated context:
   ```bash
   node .claude/skills/ag-generate-context/scripts/validate-all-context.mjs
   ```
8. If routing or grouped context changed, also run:
   ```bash
   node .claude/skills/ag-audit-context/scripts/validate-context-discovery.mjs
   ```

## Rules

- Treat `process/context/` as durable cross-agent knowledge.
- Treat `process/context/all-context.md` as the durable routing protocol; do not replace it with generated prose.
- Do not store agent-specific mechanics here unless they affect project workflow.
- Do not rewrite grouped context docs; if they are stale or mis-grouped, flag `audit-context`.
- Prefer concise, factual, path-specific documentation.
- Use `pnpm` terminology for package management.
- Treat validation failures as blockers before presenting context as refreshed.

## Invocation Modes

| Mode               | Trigger                                             | Group-detection                                                                | Output                                                            |
| ------------------ | --------------------------------------------------- | ------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
| `setup-delegation` | Called by ag-setup passing an approved-groups list  | Skip re-detection; use the list provided                                       | `all-context.md` + `all-{group}.md` for each approved group       |
| `standalone-full`  | Direct invocation with no groups list               | Self-detect groups via the detection table in `references/generate-context.md` | `all-context.md` + `all-{group}.md` for all detected groups       |
| `delta`            | Invoked when context already exists; update context | Self-detect; create MISSING groups only; warn on unrecognized; never delete    | `all-context.md` updated + any new `all-{group}.md` files created |

See `references/generate-context.md` for per-mode instructions, the Context Group Detection Table, and delta-mode group-creation rules.

## References

- [process/context/all-context.md](process/context/all-context.md)

From ngxccc/agent-skills-kit, MIT.

More from ngxccc/agent-skills-kit

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 2, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ngxccc

Cite this page

ag-generate-context skill. Agent Mart. https://agentmart.dev/skills/ngxccc-ag-generate-context (last updated 2026-10-24)