Skip to content

chore: optimize AI agent configuration - #23

Closed
jpoley wants to merge 3 commits into
mainfrom
chore/agentic-setup
Closed

jpoley wants to merge 3 commits into
mainfrom
chore/agentic-setup

Conversation

@jpoley

@jpoley jpoley commented May 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces single Claude-focused guidance with a multi-agent configuration set covering Claude, Codex-compatible agents, and Copilot:

  • CLAUDE.md — top-level Claude entry point with repo-specific rules and .claude/* include chain.
  • AGENTS.md + .github/copilot-instructions.md — Codex-compatible and Copilot guidance.
  • .claude/*.md — workflow, stack, source control, language conventions, history logging, architecture.

Addressed Copilot feedback from #22 (4 comments)

All four comments flagged the same accurate issue: the skills-ref validate command needs the CI directory-name workaround (validator requires the skill dir named vagrant, but the checkout is vagrant-skill). Each now references the CI validate-skill temp-directory flow (mkdir -p /tmp/vagrant && cp -r ./* ./.* /tmp/vagrant/ 2>/dev/null; npx --yes skills-ref validate /tmp/vagrant):

  • .claude/workflow.md:48
  • .claude/language.md:38
  • .claude/stack.md:14
  • .github/copilot-instructions.md:31 (also fixed the same issue on line 65, the suppressed low-confidence comment)

Verified against .github/workflows/ci.yml. Skill payload/source untouched.

Validation: producer Claude Opus 4.7 / self-review.

jpoley and others added 2 commits May 23, 2026 08:29
Install the full agent-config file set (CLAUDE.md, AGENTS.md,
copilot-instructions.md, and .claude/*.md) tailored to this skill
package: Ruby Vagrantfile + Bash scripts, bats-core tests, the Agent
Skills standard, and the make lint/test workflow. Folds the existing
skill-specific CLAUDE.md guidance into the template structure.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 23, 2026 08:51

Copilot AI left a comment

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.

Pull request overview

Introduces a multi-agent instruction set for this repository so different AI tools (Claude, Codex-compatible agents, and GitHub Copilot) get consistent, repo-specific guidance aligned with the existing CI/skill workflow.

Changes:

  • Reworked CLAUDE.md into a Claude entry point that delegates detailed guidance to .claude/*.md documents.
  • Added AGENTS.md and .github/copilot-instructions.md to provide equivalent guidance for Codex-compatible agents and GitHub Copilot.
  • Added a structured .claude/ instruction set covering workflow, stack, language conventions, source control, architecture boundaries, and decision/reference logging.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
CLAUDE.md Replaces the prior single-file guidance with a structured Claude entry point and .claude/* include chain.
AGENTS.md Adds a Codex-compatible agent entry point mirroring core repo rules and layout.
.github/copilot-instructions.md Adds repo instructions for GitHub Copilot including stack, conventions, and DoD.
.claude/workflow.md Defines planning/execution discipline and DoD for agent-driven work.
.claude/stack.md Documents the confirmed toolchain/runtime/packaging and validation flow for this skill repo.
.claude/sourcecontrol.md Documents branch/commit/PR/release workflow expectations for contributors and agents.
.claude/language.md Records language-specific lint/test expectations (Bash, Ruby/Vagrantfile, skills validation).
.claude/history.md Establishes a JSONL format for decision and reference logs under .logs/.
.claude/architecture.md Captures the repo’s “skill package” architecture boundaries and anti-patterns.
Comments suppressed due to low confidence (1)

.github/copilot-instructions.md:66

  • Same issue as earlier in this file: this snippet omits || true after cp, but CI includes it to avoid failing when ./.* expands to ./.. (see .github/workflows/ci.yml). Align the documented command with CI to keep the DoD step copy/paste-safe.
A task is done only when:
- `make lint && make test` pass (matching CI). Run `make test-integration` / `make test-all` locally when a provider is available and VM behavior changed.
- Skill changes validate via the CI flow (validator requires the dir named `vagrant`): `mkdir -p /tmp/vagrant && cp -r ./* ./.* /tmp/vagrant/ 2>/dev/null; npx --yes skills-ref validate /tmp/vagrant`.
- PR opened with problem statement, approach, and test evidence.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .claude/workflow.md Outdated
## Definition of Done
A task is done only when:
- [ ] Lint and unit tests pass: `make lint && make test` (matches CI: shellcheck + `ruby -c` + bats unit suites). When a Vagrant provider is available and VM behavior changed, also run `make test-integration` (or `make test-all`).
- [ ] Skill changes validate against the Agent Skills standard. The validator requires the skill directory to be named `vagrant`, so run the CI flow (the `validate-skill` job) rather than invoking it from the `vagrant-skill` checkout root: `mkdir -p /tmp/vagrant && cp -r ./* ./.* /tmp/vagrant/ 2>/dev/null; npx --yes skills-ref validate /tmp/vagrant`.
Comment thread .claude/stack.md Outdated

## Skill Format
- Agent Skills standard: `SKILL.md` with YAML frontmatter (`name`, `description`, `license`, `compatibility`, `allowed-tools`, `metadata`).
- Validated by the `validate-skill` CI job. The validator requires the skill dir to be named `vagrant`, so CI copies the checkout to `/tmp/vagrant` before validating: `mkdir -p /tmp/vagrant && cp -r ./* ./.* /tmp/vagrant/ 2>/dev/null; npx --yes skills-ref validate /tmp/vagrant`.
Comment thread .claude/language.md Outdated
---

## Skill Definition (Markdown + YAML frontmatter)
- `SKILL.md` is validated against the Agent Skills standard. The validator requires the skill directory to be named `vagrant`, so the `validate-skill` CI job copies the checkout to `/tmp/vagrant` first: `mkdir -p /tmp/vagrant && cp -r ./* ./.* /tmp/vagrant/ 2>/dev/null; npx --yes skills-ref validate /tmp/vagrant`. Running it directly from the `vagrant-skill` checkout fails on the directory-name check.
Comment on lines +30 to +33
## Stack
- Skill format: Agent Skills standard (`SKILL.md` with YAML frontmatter); validated by the `validate-skill` CI job. The validator requires the skill directory to be named `vagrant`, so CI copies the checkout to `/tmp/vagrant` first: `mkdir -p /tmp/vagrant && cp -r ./* ./.* /tmp/vagrant/ 2>/dev/null; npx --yes skills-ref validate /tmp/vagrant`.
- VM tooling: Vagrant CLI with a provider (Parallels / libvirt / VirtualBox). Base box `bento/ubuntu-24.04`.
- Languages: Ruby (Vagrantfile, syntax-checked with `ruby -c`; Ruby 3.3 in CI) and Bash (`scripts/*.sh`, shellcheck-linted).
Comment thread .github/copilot-instructions.md Outdated
- `make lint && make test` pass (matching CI). Run `make test-integration` / `make test-all` locally when a provider is available and VM behavior changed.
- Skill changes validate via the CI flow (validator requires the dir named `vagrant`): `mkdir -p /tmp/vagrant && cp -r ./* ./.* /tmp/vagrant/ 2>/dev/null; npx --yes skills-ref validate /tmp/vagrant`.
- PR opened with problem statement, approach, and test evidence.
- No `[FILL IN]` placeholders left in affected files.
Align documented skill-validation copy command with CI (add `|| true`
after cp so it is safe under set -e) across .claude/workflow.md,
.claude/stack.md, .claude/language.md, and .github/copilot-instructions.md.
Reword the DoD FILL IN bullet so the intentional marker definitions in
.claude/stack.md and .claude/language.md no longer violate it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@jpoley

jpoley commented May 23, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by a fresh PR on the same branch so Copilot re-reviews. Branch retained.

@jpoley jpoley closed this May 23, 2026
@jpoley
jpoley deleted the chore/agentic-setup branch May 23, 2026 10:40
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