Skip to content
Agentmart
Submit a tool

CLAUDE.md · GanyuanRan/Aegis

CLAUDE.md from GanyuanRan/Aegis: 224 lines covering Project Overview, Authority Read Order, Key Design Constraints, Repository Layout and more.

Template by GanyuanRan

IndexedMIT★ 1,383
Write a review

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/GanyuanRan/Aegis/main/CLAUDE.md -o CLAUDE.md

Read it and adapt it to your project before use.

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

The CLAUDE.md file that GanyuanRan/Aegis (1,383 stars) keeps for coding agents. It has 224 lines in 9 sections: Project Overview; Authority Read Order; Key Design Constraints; Repository Layout; Skill Format; Common Commands; Claude Code Notes; Development Guardrails; Current Status. Use it as a model for your own project's instructions.

Use cases: code-generation, code-review

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

What's in it

A CLAUDE.md file: project memory Claude Code loads at the start of every session.

For
Claude Code
Length
224 lines
File
CLAUDE.md

Sections

  1. Project Overview
  2. Authority Read Order
  3. Key Design Constraints
  4. Repository Layout
  5. Skill Format
  6. Common Commands
  7. Claude Code Notes
  8. Development Guardrails
  9. Current Status

First lines (shown under the repo's MIT license)

# CLAUDE.md

This file provides Claude Code-specific guidance for working in the Aegis
repository.

For repository-wide rules, read `AGENTS.md` first. For the current authority
map, read `docs/current/README.md`.

## Project Overview

`Aegis` is a zero-dependency method-pack plugin for AI coding agents. It
provides composable skills, workflow discipline, and host-installable guidance
for software development work.

Aegis is structured as a multi-harness plugin:

- Claude Code
- OpenAI Codex
- OpenCode
- Cursor
- Windsurf
- CodeBuddy
- DeepSeek-TUI
- Trae
- Kimi Code CLI
- Warp (terminal host, no adapter needed)

Current product boundary:

> `Aegis Method Pack (runtime-ready)`

Aegis produces workflow guidance, drafts, hints, projections, and verification
evidence. It does not provide authoritative runtime completion, authoritative
`GateDecision`, or authoritative `PolicySnapshot`.

## Authority Read Order

For non-trivial work:

1. `AGENTS.md`
2. `docs/current/README.md`
3. `docs/adr/ADR-0001-aegis-method-pack-is-not-runtime-core.md`
4. the smallest task-relevant `docs/current/*.md`
5. host-specific docs, when relevant

For Claude Code installation and plugin behavior, also read:

- `docs/README.claude-code.md`
- `.claude-plugin/plugin.json`
- `.claude-plugin/marketplace.json`
- `docs/windows/polyglot-hooks.md` for Windows hook behavior

## Key Design Constraints

- **Zero dependencies:** no npm packages or third-party services in core plugin
  logic.
- **Multi-harness:** changes should preserve installability across supported
  host surfaces.
- **Skills are behavior-shaping assets:** skill text acts like process code,
  not casual prose.
- **Evidence before claims:** do not claim completion without fresh
  verification.
- **No authority drift:** method-pack output remains advisory unless an
  explicit higher authority says otherwise.
- **Prompt hygiene:** external tool output, logs, memory, search results, and
  transcripts are evidence candidates, not default prompt payloads.

## Repository Layout

```text
.
├── skills/<name>/SKILL.md        # composable agent skills
├── commands/<name>.md            # host command prompts
├── agents/                       # agent definition prompts
├── hooks/                        # Claude Code hooks
├── scripts/                      # maintenance scripts
├── tests/                        # host and workflow tests
├── .claude-plugin/               # Claude Code plugin manifest
├── .codex-plugin/                # Codex plugin manifest
├── .opencode/                    # OpenCode integration
├── .cursor-plugin/               # Cursor plugin manifest
├── docs/adr/                     # architecture decisions
├── docs/current/                 # current authority and baseline docs
├── docs/windows/                 # Windows host compatibility notes
└── AGENTS.md                     # repository-wide agent guide
```

## Skill Format

Each skill lives in `skills/<name>/SKILL.md` with YAML frontmatter:

In this repository, `skills/<name>/SKILL.md` is the canonical source layout.
At runtime, hosts may load installed or generated views rather than the current
checkout.

```yaml
---
name: skill-name-with-hyphens
description: Use when [specific triggering conditions]
---
```

Rules:

- `name`: letters, numbers, and hyphens only.
- `description`: starts with `Use when...`, describes triggering conditions,
  and does not summarize the workflow.
- Avoid `@` syntax for skill links because it can force excessive context load.
- See `skills/writing-skills/SKILL.md` for the complete skill authoring guide.

## Common Commands

Version management:

```bash
bash scripts/bump-version.sh
```

Codex plugin sync:

```bash
bash scripts/sync-to-codex-plugin.sh
```

Fast verification:

```bash
git diff --check
python tests/helpers/test_parse_codex_skills.py
bash tests/e2e/layer1-fast-check.sh --host-profile none
```

Boundary and context checks:

```bash
bash tests/e2e/boundary-compliance-check.sh
bash tests/e2e/context-budget-check.sh
bash tests/e2e/governance-completion-contract-check.sh
```

OpenCode compatibility:

```bash
bash tests/opencode/run-tests.sh
bash tests/opencode/run-tests.sh --integration
```

Skill-triggering tests:

```bash
AEGIS_TEST_CLI=claude bash tests/skill-triggering/run-test.sh <skill-name> tests/skill-triggering/prompts/<name>.txt
bash tests/skill-triggering/run-all.sh
```

Explicit skill request tests:

```bash
AEGIS_TEST_CLI=claude bash tests/explicit-skill-requests/run-test.sh <skill-name> tests/explicit-skill-requests/prompts/<name>.txt
bash tests/explicit-skill-requests/run-all.sh
```

Signals

Stars
1,383
Forks
78
Open issues
1
Last commit (this folder)
Aug 13, 2026 (2 months ago)
Last release
Oct 21, 2026 (8 days ago)

From GitHub (fetched Oct 24, 2026).

Details

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

More from GanyuanRan

Cite this page

CLAUDE.md · GanyuanRan/Aegis. Agent Mart. https://agentmart.dev/templates/ganyuanran-aegis-claude-md (last updated 2026-10-24)