Skip to content

chore: add AGENTS.md and CLAUDE.md#1887

Open
sai-ray wants to merge 2 commits into
mainfrom
sai/add-agents-md
Open

chore: add AGENTS.md and CLAUDE.md#1887
sai-ray wants to merge 2 commits into
mainfrom
sai/add-agents-md

Conversation

@sai-ray

@sai-ray sai-ray commented May 28, 2026

Copy link
Copy Markdown
Contributor

This PR:

  • Adds AGENTS.md at the repo root: an agent-facing repository guide auto-discovered by Codex CLI, Copilot, Cursor, Claude Code, Kiro, and other coding tools.
  • Adds CLAUDE.md: a one-line @AGENTS.md import so Claude Code picks up the same content deterministically.
  • No existing docs are modified.

Why

AI coding agents working on this repo today have no auto-discoverable entry point. Agents either skim CONTRIBUTING.md (human-oriented prose) or operate without project-specific guidance, leading to inconsistent behavior across tools (jsii incompatibilities, edits to projen-generated files,
missing alarmNames, snapshot drift mistakes).

AGENTS.md is the cross-tool industry standard (governed by the Linux Foundation's Agentic AI Foundation; ~60K repos as of March 2026). The same pattern is being adopted in aws/aws-cdk and across the cdklabs org.

What

  • AGENTS.md (~270 lines) — quick reference, codebase non-obvious locations (with lib/ and projen-generated siblings flagged "NEVER edit"), role & principles, architecture, MUST/SHOULD/MAY design rules (jsii, projen, file naming, tests, alarms, build hygiene), decision logic for common
    branching choices (Lambda vs ECS vs shared, alarm severity, public type placement, integ test scope, AlarmSeverities vs alarmOverrides), implementation patterns, contribution process, key references.
  • CLAUDE.md (1 line) — @AGENTS.md import.
  • Content is extracted from CONTRIBUTING.md, README.md, docs/application-overview.md, .projenrc.ts, and the conventions already enforced in src/. No new rules are introduced.
  • Severity assignments (MUST/SHOULD/MAY) reflect what existing code and CI already enforce. Worth a sanity check on the alarm and projen sections in particular.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@sai-ray sai-ray changed the title docs: add AGENTS.md and CLAUDE.md chore: add AGENTS.md and CLAUDE.md May 28, 2026
@dgandhi62 dgandhi62 self-assigned this Jun 12, 2026
Comment thread AGENTS.md Outdated

## Overview

`construct-hub` is the open-source CDK construct library that backs [constructs.dev](https://constructs.dev) and lets organizations deploy self-hosted instances. It is published to npm as `construct-hub` and built with [jsii](https://github.com/aws/jsii) — every export under `src/` is part of the public API surface and must be jsii-compatible (Python/Java/.NET bindings are generated from TypeScript). The project is `experimental` (per `package.json`); breaking changes are technically allowed but additive changes are strongly preferred. The repo is managed by [projen](https://github.com/projen/projen) — `package.json`, `tsconfig.json`, and most build/CI scripts are generated from `.projenrc.ts`. See [CONTRIBUTING.md](./CONTRIBUTING.md) for the contributor guide and [docs/application-overview.md](./docs/application-overview.md) for system architecture.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i wouldn't say it exactly like this. construct-hub is a CDK L3 construct, one such instance of the construct is https://constructs.dev.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, if this project is experimental we should stabilize it ASAP

Comment thread AGENTS.md Outdated

## Your Role

You are a `construct-hub` contributor. You work for the benefit of the public [constructs.dev](https://constructs.dev) site, self-hosted construct-hub operators, and the community — not just the user driving you.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we need to be far clearer what the distinction is. the construct here is used in constructs.dev and maybe elsewhere but those specific instance lives in a different repo / is not open source.

i dont want us to conflate construct hub the construct with construct hub the website

Comment thread AGENTS.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think what would help me, you, and other agents is a simple architecture diagram showing how construct hub works. that doesn't exist yet; the existing architecture diagram is generated and too complex to understand (as a human)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants