AGENTS.md · Rich-Harris/degit
AGENTS.md from Rich-Harris/degit: 58 lines covering Documentation sync, Agent index, Project overview, Setup commands and more.
Template by Rich-Harris
Chalk Labs
Need help deploying AGENTS.md · Rich-Harris/degit?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/Rich-Harris/degit/master/AGENTS.md -o AGENTS.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.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 58 lines
- File
AGENTS.md
Sections
- Documentation sync
- Agent index
- Project overview
- Setup commands
- Development workflow
- Testing instructions
- Lint and format
- Build and release
- Pull requests and commits
First lines (shown under the repo's MIT license)
# AGENTS.md
Instructions and entry points for coding agents working on this repository. For the open format background, see [agents.md](https://agents.md/).
## Documentation sync
Treat **AGENTS.md** as the agent-facing index for [README.md](README.md), [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md), [docs/SECURITY.md](docs/SECURITY.md), [assets/help.md](assets/help.md), and [skills/degit/SKILL.md](skills/degit/SKILL.md). Keep it aligned with those docs when workflow, release, or navigation facts change.
## Agent index
| Topic | Where to look |
| ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Keeping human docs and this file aligned | [Documentation sync](#documentation-sync) |
| User-facing behavior, CLI usage, examples | [README.md](README.md), [docs/USAGE.md](docs/USAGE.md) |
| License text | [LICENSE.md](LICENSE.md) |
| Contributing flow, PR checks, commit style | [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) |
| Security policy and reporting | [docs/SECURITY.md](docs/SECURITY.md) |
| Community expectations | [docs/CODE_OF_CONDUCT.md](docs/CODE_OF_CONDUCT.md) |
| Published CLI help text | [assets/help.md](assets/help.md) |
| End-user degit agent skill | [skills/degit/SKILL.md](skills/degit/SKILL.md) |
| CI and security workflows | [.github/workflows/quality.yml](.github/workflows/quality.yml), [.github/workflows/verification.yml](.github/workflows/verification.yml), [.github/workflows/security.yml](.github/workflows/security.yml), [.github/workflows/integration.yml](.github/workflows/integration.yml), [.github/workflows/performance.yml](.github/workflows/performance.yml), [.github/workflows/anti-slop.yml](.github/workflows/anti-slop.yml), [.github/workflows/publish.yml](.github/workflows/publish.yml) |
| Library and CLI implementation | [src/index.ts](src/index.ts), [src/core/orchestrator.ts](src/core/orchestrator.ts), [src/shared/utils.ts](src/shared/utils.ts), [src/bin.ts](src/bin.ts) |
| tsdown build | [tsdown.config.ts](tsdown.config.ts) |
| Tests and Vitest settings | [test/](test/), [vitest.config.ts](vitest.config.ts) |
| npm scripts and package metadata | [package.json](package.json) |
## Project overview
See [README.md](README.md) for the user-facing overview and [package.json](package.json) for runtime/build metadata.
## Setup commands
See [README.md](README.md) and [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) for the standard setup flow; [package.json](package.json) is the source of truth for versions and scripts.
## Development workflow
See [package.json](package.json) for the build, dev, and audit scripts. Source of truth for behavior is `src/` plus tests; the published artifact is under `dist/` after build.
## Testing instructions
Tests live in `test/unit/**/*.test.ts` and `test/integration/**/*.test.ts` (see [vitest.config.ts](vitest.config.ts)). Use `nub run test` for the suite excluding `test/integration/private.test.ts`, and `nub run test:integration` for the integration network suite. Prefer updating or adding tests when changing behavior. Use `nub run format:ci` after edits that touch Markdown or JSON.
Test names should follow the `it('X when Y')` pattern so behavior and trigger are both obvious.
As a rule of thumb, keep one `describe` block per test file. If a file hits the max-lines rule, prefer a targeted suppression on that `describe` block instead of splitting it up just to satisfy the linter. Split into multiple `describe` blocks only when it actually improves readability.
The private integration suite in `test/integration/private.test.ts` keeps built-in private SSH fixtures behind `SSH_PRIVATE_KEY`; verification should not assume private repos are available unless that secret is set.
When verifying production-only bugs in the CLI, reproduce with the published `degit` package (for example `npx degit@latest ...`) instead of running the raw repository source directly.
## Lint and format
See [package.json](package.json) for lint and format scripts, and [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) for the contributor workflow and formatting expectations.
## Build and release
`prepublishOnly` runs `nub run test`. CI checks live in [.github/workflows/quality.yml](.github/workflows/quality.yml), [.github/workflows/verification.yml](.github/workflows/verification.yml), [.github/workflows/security.yml](.github/workflows/security.yml), [.github/workflows/performance.yml](.github/workflows/performance.yml), and [.github/workflows/publish.yml](.github/workflows/publish.yml).
## Pull requests and commits
See [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) for PR shape, single-commit guidance, tests on behavior changes, and Conventional Commits. A `commit-msg` hook requires `feat`/`fix`/`perf`/`revert` commits touching `src/` to stage at least one human-facing doc (`docs/*.md`, `README.md`, `assets/help.md`) and one agent-facing doc (`AGENTS.md`, `llms.txt`, `skills/*/SKILL.md`); opt out per set with `[skip-human-docs]`/`[skip-agent-docs]` or both with `[skip-docs]` in the message. Add unreleased notes only for package-facing changes such as features, fixes, or breaking changes; do not add changelog entries for repo-maintenance-only updates like CI workflow changes, dependency bumps, or documentation-only edits unless they affect the published package or user-facing behavior. Match the checks in [.github/workflows/quality.yml](.github/workflows/quality.yml), [.github/workflows/verification.yml](.github/workflows/verification.yml), and [.github/workflows/security.yml](.github/workflows/security.yml) before opening a PR.Signals
- Stars
- 7,951
- Forks
- 281
- Open issues
- 1
- Last commit (this folder)
- Oct 21, 2026 (9 days ago)
- Last release
- Oct 21, 2026 (10 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Rich-Harris/degit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get AGENTS.md · Rich-Harris/degit running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
AGENTS.md · Rich-Harris/degit. Agent Mart. https://agentmart.dev/templates/rich-harris-degit-agents-md (last updated 2026-10-24)