Skip to content

docs: add AGENTS.md with contributor and agent guidance - #50

Open
viniciusdc wants to merge 1 commit into
mainfrom
docs/add-agents-md
Open

viniciusdc wants to merge 1 commit into
mainfrom
docs/add-agents-md

Conversation

@viniciusdc

@viniciusdc viniciusdc commented Nov 25, 2026 •

Copy link
Copy Markdown

Summary

Adds an AGENTS.md for this repository, modeled on the ones in nebari-operator and nebari-infrastructure-core, so contributors and AI agents get the same kind of orientation here as in the sibling repos.

Until now the only agent guidance was .github/copilot-instructions.md, which was still the actions/typescript-action template. It listed a CODEOWNERS file that doesn't exist and said nothing about what this action does or how its two steps fit together.

Changes

AGENTS.md (new)

Uses the same section layout as the sibling repos:

  • Project overview and core principles: teardown is the contract, inputs are validated before deploy, NIC owns platform knowledge, outputs never fail a successful deploy, secrets never reach the log, and src/ stays synchronous.
  • Commands table: includes the fact that npm run bundle also rewrites README.md and reformats the tree.
  • Component structure: what each src/ module, fixture and generated artifact is for.
  • Main/post state contract: a table of the saveState keys, which step writes and reads each one, and why the ordering around deployStarted matters.
  • Behavior sections: execution flow, nic acquisition and verification, the convergence wait with restart budgets, and platform outputs.
  • Key patterns: adding an input, adding a platform output, and running commands.
  • Conventions and generated files: dist/, the README action-docs blocks, the coverage badge and .licenses/.
  • Testing and CI: the Jest ESM mocking pattern, the end-to-end uses: ./ job, and what each CI workflow checks.
  • Releases: floating v0 tag via publish.yml, and tags (not package.json) as the version source of truth.
  • Contribution workflow and pre-commit checklist.

.github/copilot-instructions.md

  • Replaced the template text with a pointer to AGENTS.md. Only the review-specific rules stay here, because Copilot code review reads this file: skip dist/ and the generated README tables, require README updates for behavior changes, and check input-validation ordering and secret masking.

Notes

  • No code or dependency changes.
  • I checked every claim about behavior against src/, action.yml and the workflows.
  • npm run format:check, npm run lint, npm run test (76 passing) and markdownlint with the repo's .markdown-lint.yml all pass locally.
  • .github/prompts/unit-test.prompt.md still has a template example that mocks __fixtures__/wait.js, which doesn't exist here. I left it alone to keep this PR focused.

- add AGENTS.md following the layout used by nebari-operator and
  nebari-infrastructure-core: overview, architecture principles,
  commands, component structure, main/post state contract, key
  patterns, conventions, testing, releases, and a pre-commit checklist
- replace the actions/typescript-action template text in
  .github/copilot-instructions.md with a pointer to AGENTS.md plus
  the review-specific rules Copilot code review needs; the template
  listed a CODEOWNERS file that does not exist and omitted the
  action's own architecture
@viniciusdc

Copy link
Copy Markdown
Author

@marcelovilla should we keep this copilot instructions file?

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.

1 participant