Skip to content

chore: optimize AI agent configuration - #22

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

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

Conversation

@jpoley

@jpoley jpoley commented May 23, 2026

Copy link
Copy Markdown
Contributor

Problem

The repo had a single ad-hoc CLAUDE.md and no shared, multi-agent instruction set. Codex (AGENTS.md), Copilot (.github/copilot-instructions.md), and the granular .claude/*.md context files were missing, so agent guidance was inconsistent and not self-contained per tool.

Approach

Applied the agent-config template from jp/cfix and filled every placeholder with values verified from this repo:

  • Inspected: SKILL.md, Vagrantfile, Makefile, package.json, scripts/setup.sh + verify.sh, test/*.bats, references/, examples/, .github/workflows/ci.yml, existing CLAUDE.md, and GitHub Issues.
  • CLAUDE.md: kept operator prefs + guardrails + @.claude/workflow.md include chain; folded in the existing skill-specific guidance (key commands, file layout, idempotency/shellcheck rules) rather than dropping it.
  • language.md: kept only real languages — Bash (shellcheck) and Ruby (ruby -c, Ruby 3.3 in CI); validation via bats-core (no coverage tooling). Dropped Go/TS/Python/.NET blocks.
  • stack.md: documented the Agent Skills format + skills-ref validator, contributor toolchain, provisioned-VM contents, and npm/ClawHub packaging; omitted persistence/messaging/auth/observability/cloud (N/A).
  • architecture.md: trimmed to the skill's real contracts (general-purpose, idempotent, disposable, multi-provider); marked service-oriented sections N/A.
  • workflow.md: DoD test command set to make lint && make test (matches CI), with make test-integration/make test-all for provider-backed runs; Work Intake = GitHub Issues (verified active).
  • sourcecontrol.md: github.com/daax-dev/vagrant-skill, default main, semver/bump-branch release flow.

Detected stack

Agent Skill package (Agent Skills standard). Ruby Vagrantfile (multi-provider: Parallels/libvirt/VirtualBox, bento/ubuntu-24.04); Bash provisioning scripts; bats-core tests; npm package @daax-dev/vagrant-skill (Node >=22.14.0) published to npm + ClawHub; GitHub Actions CI (lint -> test + validate-skill).

Test evidence

Docs/config-only change. Referenced files verified to exist; no stray [FILL IN] placeholders remain. make lint passes (shellcheck + ruby -c Vagrantfile -> Syntax OK); make test passes (63/63 bats unit tests).

Validation

Producer: Claude Opus 4.7. Validator: self-review (cross-provider Claude <-> Codex not available in this environment).

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>
Copilot AI review requested due to automatic review settings May 23, 2026 08:30

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

This PR replaces the prior single Claude-focused guidance with a multi-agent configuration set for Claude, Codex-compatible agents, and Copilot, documenting repository workflow, stack, language, architecture, source control, and decision logging expectations.

Changes:

  • Reworked CLAUDE.md as the top-level Claude guidance with repo-specific rules and include chain.
  • Added AGENTS.md and .github/copilot-instructions.md for Codex-compatible agents and Copilot.
  • Added granular .claude/*.md files covering workflow, stack, source control, language conventions, history logging, and architecture.

Reviewed changes

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

Show a summary per file
File Description
CLAUDE.md Updates Claude entry-point guidance and links to .claude/workflow.md.
AGENTS.md Adds Codex-compatible agent instructions and repo layout guidance.
.github/copilot-instructions.md Adds Copilot-specific project, stack, workflow, and DoD guidance.
.claude/workflow.md Defines planning, execution, intake, model validation, and DoD.
.claude/stack.md Documents confirmed skill format, tooling, VM contents, packaging, and exclusions.
.claude/sourcecontrol.md Documents branch, commit, PR, worktree, destructive operation, and release practices.
.claude/language.md Documents Bash, Ruby, skill definition, and bats testing conventions.
.claude/history.md Defines JSONL decision and reference logging formats.
.claude/architecture.md Documents the skill’s architecture boundaries and anti-patterns.
Comments suppressed due to low confidence (1)

.github/copilot-instructions.md:65

  • This Definition of Done points contributors at a validation command that does not include the required vagrant directory-name workaround used in CI. Running it from the repo root can fail despite valid content, so this should reference the CI-equivalent temp-directory validation command or a make target that wraps it.
- Skill changes validate (`npx --yes skills-ref validate`).

💡 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: `npx --yes skills-ref validate` (CI runs this as `validate-skill`).
Comment thread .claude/language.md Outdated
---

## Skill Definition (Markdown + YAML frontmatter)
- `SKILL.md` is validated against the Agent Skills standard via `npx --yes skills-ref validate` (CI `validate-skill` job).
Comment thread .claude/stack.md Outdated

## Skill Format
- Agent Skills standard: `SKILL.md` with YAML frontmatter (`name`, `description`, `license`, `compatibility`, `allowed-tools`, `metadata`).
- Validated with `npx --yes skills-ref validate` (CI job `validate-skill`; validator requires the skill dir to be named `vagrant`).
Comment thread .github/copilot-instructions.md Outdated
---

## Stack
- Skill format: Agent Skills standard (`SKILL.md` with YAML frontmatter); validated via `npx skills-ref validate`.
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 combined PR (agent config + Copilot feedback addressed) so Copilot re-reviews. Branch retained.

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