Skip to content

Bootstrap repository template with docs, scaffolding, CI/CD, and AI agent support#1

Merged
0xferit merged 6 commits intomainfrom
copilot/update-agent-docs-and-contributing
Apr 4, 2026
Merged

Bootstrap repository template with docs, scaffolding, CI/CD, and AI agent support#1
0xferit merged 6 commits intomainfrom
copilot/update-agent-docs-and-contributing

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 4, 2026

Bootstraps a complete, language-agnostic repository template with contribution docs, AI agent configuration, CI/CD templates, governance files, and developer tooling.

Changes

Contribution & Agent Docs

  • CONTRIBUTING.md — Primary contribution guide for both humans and AI agents. Covers: Conventional Commits format, PR focus discipline, Gitflow branching, code review expectations (author + reviewer), AAA testing pattern, SOLID/maintainability principles, security posture, and ADR format/lifecycle.

  • AGENTS.md — Supplements CONTRIBUTING.md with agent-specific context only: project overview, repository layout, essential commands (language-agnostic placeholders), and hard constraints/boundaries. Defers all contribution guidelines to CONTRIBUTING.md — no duplication between the two files.

  • CLAUDE.md / GEMINI.md — Filesystem symlinks to AGENTS.md. Tracked by git as mode 120000; Claude and Gemini pick up the same instructions without separate files to maintain.

  • .github/copilot-instructions.md — Repository-specific coding guidance for GitHub Copilot, referencing both CONTRIBUTING.md and AGENTS.md.

Repository Scaffolding

  • .gitignore — Sensible defaults covering dependencies, build outputs, IDE files, environment secrets, logs, coverage artifacts, and OS files.
  • .editorconfig — Enforces consistent whitespace, encoding, and line endings across editors.
  • LICENSE — MIT License.
  • README.md — Fleshed out with CI badge, license badge, feature list, getting started guide, full repository structure overview, and Copilot auto-review setup instructions.

CI/CD Templates

  • .github/workflows/ci.yml — Starter CI pipeline with commented examples for Node.js, Python, and Go toolchains.
  • Copilot auto-review — Setup instructions in README.md for configuring automatic Copilot code reviews via GitHub repository rulesets (Settings → Rules → Rulesets → enable "Automatically request Copilot code review").
  • .github/PULL_REQUEST_TEMPLATE.md — PR template with checklist aligned to the contributing guide.
  • .github/ISSUE_TEMPLATE/ — Bug report and feature request issue templates.
  • .github/dependabot.yml — Automated dependency updates for GitHub Actions (with commented examples for other ecosystems).

Security & Governance

  • SECURITY.md — Vulnerability reporting instructions, referenced from CONTRIBUTING.md.
  • CODE_OF_CONDUCT.md — Contributor Covenant community standards.
  • doc/adr/.gitkeep — Creates the ADR directory referenced in CONTRIBUTING.md.
  • .github/agents/.gitkeep — Bootstraps the agent configurations directory referenced in AGENTS.md.
Original prompt

This is a general purpose repository template. This is language agnostic.

AGENTS.md should contain instructions according to best practices at https://developers.openai.com/codex/guides/agents-md

CLAUDE.md should be symlink to AGENTS.md

CONTRIBUTING.md should be present and fleshedout. Use https://github.com/golemfoundation/octant-v2-core/blob/develop/CONTRIBUTING.md for inspiration.

AGENTS.md should refer to CONTRIBUTING.md for the matters that fall into it's scope. No duplication in between.

Copilot AI changed the title [WIP] Update AGENTS.md and CONTRIBUTING.md with best practices Add AGENTS.md, CLAUDE.md symlink, and CONTRIBUTING.md Apr 4, 2026
Copilot AI requested a review from 0xferit April 4, 2026 18:59
@0xferit
Copy link
Copy Markdown
Owner

0xferit commented Apr 4, 2026

@copilot try again. I lifted the firewall.

@0xferit 0xferit marked this pull request as ready for review April 4, 2026 19:23
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 4, 2026

@copilot try again. I lifted the firewall.

I've re-fetched the official OpenAI Codex guide at developers.openai.com/codex/guides/agents-md and the community site at agents.md. The existing files in commit f9efb76 are already aligned with the best practices — project overview, essential commands, coding conventions, testing requirements, security, boundaries, monorepo guidance, and cross-references to CONTRIBUTING.md are all covered. No changes needed.

@0xferit
Copy link
Copy Markdown
Owner

0xferit commented Apr 4, 2026

@copilot Improve. CONTRIBUTING.md is both for AI and humans to follow. AGENTS.md should only adds things extra over CONTRIBUTING.md and otherwise refer to CONTRIBUTING.md.

Remove aim for small PRs rule.

- AGENTS.md now only contains agent-specific context (project overview,
  repo layout, essential commands, boundaries/constraints) and defers
  all contribution guidelines to CONTRIBUTING.md
- Removed duplicated sections: coding conventions, testing requirements,
  security, contribution workflow, architecture decisions
- Removed "aim for PRs under 300 lines" rule from CONTRIBUTING.md
- CONTRIBUTING.md is now the single source of truth for both humans
  and AI agents

Agent-Logs-Url: https://github.com/alkindilabs/template/sessions/d745093f-9593-4a44-91d1-ffb11e5dd3a6

Co-authored-by: 0xferit <3106907+0xferit@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 4, 2026

@copilot Improve. CONTRIBUTING.md is both for AI and humans to follow. AGENTS.md should only adds things extra over CONTRIBUTING.md and otherwise refer to CONTRIBUTING.md.

Remove ai...

Done in 97c88f2. AGENTS.md is now slimmed to agent-only extras (project overview, repo layout, essential commands, boundaries/constraints) and defers everything else to CONTRIBUTING.md. Removed the 300-line PR rule from both files.

@0xferit
Copy link
Copy Markdown
Owner

0xferit commented Apr 4, 2026

@copilot

1. Add More Agent Files

  • COPILOT-INSTRUCTIONS.md — GitHub Copilot reads from .github/copilot-instructions.md for repo-specific coding guidance. Add one to complement AGENTS.md.
  • GEMINI.md — Symlink file for Google's Gemini agent (similar to the CLAUDE.md approach).
  • Subdirectory AGENTS.md files — As noted in the PR, you can place additional AGENTS.md files in subdirectories for per-package/service overrides in a monorepo setup.

2. Add Repository Scaffolding

  • .gitignore — Add a sensible default (or a placeholder with common patterns).
  • .editorconfig — Enforce consistent whitespace/encoding across editors.
  • LICENSE — Include a default license file (e.g., MIT, Apache 2.0).
  • README.md — Flesh out the existing README with a template structure (badges, usage, etc.).

3. Add CI/CD Templates

  • .github/workflows/ — Add starter GitHub Actions workflows (e.g., lint, test, release).
  • .github/PULL_REQUEST_TEMPLATE.md — A PR template aligned with the contributing guide (checklist format).
  • .github/ISSUE_TEMPLATE/ — Bug report and feature request issue templates.

4. Add Security & Governance Docs

  • SECURITY.md — Vulnerability reporting instructions (referenced in the CONTRIBUTING.md security section).
  • CODE_OF_CONDUCT.md — Community standards.
  • doc/adr/.gitkeep — Create the ADR directory referenced in CONTRIBUTING.md so it exists by default.

5. Enhance the Existing Files

  • Fill in AGENTS.md essential commands — The command table currently has *(project-specific)* placeholders. You could add a comment or script that auto-detects common toolchains.
  • Add a .github/agents/ directory — Since AGENTS.md references it as off-limits, you could bootstrap it with initial agent configurations.
  • Add Dependabot config.github/dependabot.yml for automated dependency updates.

…iles

- GEMINI.md symlink → AGENTS.md
- .github/copilot-instructions.md for GitHub Copilot
- .github/agents/.gitkeep for agent configurations
- .gitignore with common patterns
- .editorconfig for cross-editor consistency
- LICENSE (MIT)
- README.md fleshed out with badges, structure, getting started
- .github/workflows/ci.yml starter CI pipeline
- .github/PULL_REQUEST_TEMPLATE.md with checklist
- .github/ISSUE_TEMPLATE/ bug report and feature request
- .github/dependabot.yml for GitHub Actions updates
- SECURITY.md vulnerability reporting process
- CODE_OF_CONDUCT.md (Contributor Covenant)
- doc/adr/.gitkeep ADR directory
- Updated AGENTS.md repo layout and CONTRIBUTING.md security link

Agent-Logs-Url: https://github.com/alkindilabs/template/sessions/1a5761bd-8192-4550-a445-c53da0acc8b3

Co-authored-by: 0xferit <3106907+0xferit@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 4, 2026

@copilot

...

All items implemented in 5353dc2:

Agent files: GEMINI.md symlink, .github/copilot-instructions.md, .github/agents/.gitkeep

Scaffolding: .gitignore, .editorconfig, LICENSE (MIT), README.md fleshed out with badges, structure, and getting started instructions

CI/CD: .github/workflows/ci.yml starter pipeline, .github/PULL_REQUEST_TEMPLATE.md, .github/ISSUE_TEMPLATE/ (bug report + feature request)

Governance: SECURITY.md, CODE_OF_CONDUCT.md, doc/adr/.gitkeep, .github/dependabot.yml

Updated AGENTS.md repo layout and CONTRIBUTING.md security section to reference SECURITY.md.

Copilot AI changed the title Add AGENTS.md, CLAUDE.md symlink, and CONTRIBUTING.md Bootstrap repository template with docs, scaffolding, CI/CD, and AI agent support Apr 4, 2026
@0xferit
Copy link
Copy Markdown
Owner

0xferit commented Apr 4, 2026

@copilot Could we write a rule so that every PR push automatically triggers a Copilot review?

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 4, 2026

@copilot Could we write a rule so that every PR push automatically triggers a Copilot review?

Added .github/workflows/copilot-review.yml in 81aaaec. It triggers on pull_request events (opened, synchronize, reopened) and uses gh pr edit --add-reviewer copilot to request a Copilot code review automatically.

Prerequisite: Copilot code review must be enabled in the repository settings (Settings → Copilot → Code review).

@0xferit
Copy link
Copy Markdown
Owner

0xferit commented Apr 4, 2026

@copilot ci failed

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 4, 2026

@copilot ci failed

The copilot-review.yml workflow failed because copilot isn't a regular GitHub user — gh pr edit --add-reviewer copilot can't resolve it. Removed the broken workflow in 545b57a and replaced it with setup instructions in README.md for the correct approach: repository rulesets (Settings → Rules → Rulesets → enable "Automatically request Copilot code review"). This is GitHub's native mechanism for auto-requesting Copilot reviews and doesn't require a workflow.

@0xferit 0xferit merged commit 0759c02 into main Apr 4, 2026
1 check passed
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.

2 participants