feat: deploy AIM (AI Agent Instruction Modules)#122
Merged
Conversation
Phase 0 of #120 — first PR of the v1.0.0 cycle. - Add AGENTS.md, aim.config.json, and instructions/ with 12 AIM modules (agent-workflow, shorthand, git-workflow, testing, powershell, markdown, readme, github-cli, releases, contributing, update, repository-specific). - Migrate CLAUDE.md content to instructions/repository-specific.instructions.md, keeping only repo-specific content (project layout, $PSBPreference internals, task dependency variables, naming conventions, build workflows, BuildHelpers env vars). Generic content covered by standard AIM modules was dropped to avoid duplication. - Fix stale references during migration: version 0.7.3 -> 0.8.0; public function count 9 -> 12 (signing functions added in 0.8.0). - Delete CLAUDE.md. Docs/config-only — no module code changes. Tests still pass (314 passed, 0 failed, 2 skipped — the skips are git-tagging tests that expectedly skip on feature branches). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
34 tasks
Claude Code auto-loads CLAUDE.md from the project root but does not auto-load AGENTS.md. Add a one-line CLAUDE.md that uses Claude Code's @-import syntax to load AGENTS.md (and through it, the AIM instruction modules) on every Claude Code session in this repo. Without this, fresh Claude Code sessions in the repo would start without AIM context and need to be pointed at AGENTS.md manually each time. Reference: https://code.claude.com/docs/en/memory.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR deploys AIM as the agent-instruction foundation for the v1.0.0 cycle, replacing the old monolithic Claude guide with a modular instruction set and repository-specific guidance.
Changes:
- Adds
AGENTS.md,aim.config.json, and AIM instruction modules. - Migrates repo-specific Claude guidance into
instructions/repository-specific.instructions.md. - Keeps
CLAUDE.mdas a one-line import ofAGENTS.md.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
AGENTS.md |
Adds the agent-facing entry point and instruction matrix. |
aim.config.json |
Configures included AIM modules and external source fallback. |
CLAUDE.md |
Replaces the old guide with an @AGENTS.md import. |
instructions/agent-workflow.instructions.md |
Adds agent workflow and pre-flight guidance. |
instructions/contributing.instructions.md |
Adds upstream AIM contribution guidance. |
instructions/git-workflow.instructions.md |
Adds Git, branch, commit, and PR conventions. |
instructions/github-cli.instructions.md |
Adds GitHub CLI operational guidance. |
instructions/markdown.instructions.md |
Adds Markdown formatting standards. |
instructions/powershell.instructions.md |
Adds PowerShell coding standards. |
instructions/readme.instructions.md |
Adds README maintenance guidance. |
instructions/releases.instructions.md |
Adds release management guidance. |
instructions/repository-specific.instructions.md |
Adds PowerShellBuild-specific project, API, build, and test guidance. |
instructions/shorthand.instructions.md |
Adds abbreviation and shorthand naming guidance. |
instructions/testing.instructions.md |
Adds general testing practices. |
instructions/update.instructions.md |
Adds AIM update and sync procedures. |
Comments suppressed due to low confidence (3)
instructions/repository-specific.instructions.md:110
- This dependency-variable table stops at
$PSBPublishDependency, butPowerShellBuild/psakeFile.ps1also defines$PSBSignModuleDependency,$PSBBuildCatalogDependency,$PSBSignCatalogDependency, and$PSBSignDependency. Include those rows so agents can correctly customize the signing task chain.
| `$PSBPublishDependency` | `@('Test')` |
instructions/repository-specific.instructions.md:198
- The module-level task list omits the signing tasks currently defined in
PowerShellBuild/psakeFile.ps1(SignModule,BuildCatalog,SignCatalog, andSign). Add them here so the repository instructions reflect the actual consumer-facing task surface.
| `Publish` | Publish to repository |
instructions/repository-specific.instructions.md:286
- This Invoke-Build example has the same alias/path issue as the earlier snippet:
PowerShellBuild.IB.Tasksis an exported alias to dot-source afterImport-Module, not a child path to combine with the module directory. Update the example to match the working pattern shown inREADME.mdandtests/TestModule/.build.ps1.
. ([IO.Path]::Combine((Split-Path (Get-Module PowerShellBuild -ListAvailable).Path), 'PowerShellBuild.IB.Tasks'))
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6 tasks
…ions - Add Sign and Sign.Catalog rows to $PSBPreference sections table - Fix Invoke-Build alias examples to use Import-Module + dot-source pattern (matches README.md and tests/TestModule/.build.ps1) - Replace stale node_modules psake Include with -FromModule pattern from README - Add four signing task dependency variables to the dependency table - Add four signing tasks (SignModule, BuildCatalog, SignCatalog, Sign) and expand precondition note for Sign.Enabled and Windows-only cmdlet checks Addresses Copilot comments on PR #122. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Addressed Copilot's review in fbf2bbe. Inline comments: replies attached to each thread. Summary:
Suppressed "low confidence" findings (all valid, addressed in the same commit):
|
tablackburn
added a commit
to tablackburn/ai-agent-instruction-modules
that referenced
this pull request
May 16, 2026
…otes flag (#24) * fix(instructions): correct upstream folder reference and gh release notes flag - contributing.instructions.md: "Make Changes" pointed at instructions/ instead of instruction-templates/, contradicting CONTRIBUTING.md and the README. Following the bad guidance landed new modules in the dogfood mirror where downstream sync workflows wouldn't pick them up. - github-cli.instructions.md: "Creating Releases" used --notes, contradicting releases.instructions.md which mandates --notes-file. Replaced with a temp-file pattern and added a precedence note. - shorthand.instructions.md: backfilled the Dir -> Directory row (added to the active copy in 0.8.13 but missed in the template), restoring sync between instruction-templates/ and instructions/. Surfaced during Copilot review of psake/PowerShellBuild#122. Closes #23 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: Release v0.8.14 --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ir row) Pull the three instruction-file fixes released in AIM 0.8.14: - contributing: point new modules at instruction-templates/, not instructions/ - github-cli: replace --notes with --notes-file + temp-file pattern, add precedence note that releases.instructions.md wins for project releases - shorthand: backfill missing Dir -> Directory row First two surfaced during Copilot review of this PR and filed upstream as tablackburn/ai-agent-instruction-modules#23; third is pre-existing sync drift in instruction-templates/ fixed in the same upstream PR. Bump AGENTS.md to Template Version 0.8.14 and sync date 2026-05-17. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
HeyItsGilbert
approved these changes
May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 0 of #120 — deploy AIM (AI Agent Instruction Modules) as the first PR of the v1.0.0 cycle.
What's included
AGENTS.md(root) — agent-facing entry point with instruction matrix; Last sync: 2026-05-17 (AIM 0.8.14)aim.config.json— module configuration; external sources enabled (awesome-copilot fallback)instructions/— 12 instruction modules:agent-workflow,shorthand,git-workflow,testing,updatepowershell,markdown,readme,github-clireleases,contributingrepository-specific.instructions.md(migrated from CLAUDE.md)CLAUDE.md— one-line@AGENTS.mdimport so Claude Code auto-loads AIM context (see "CLAUDE.md handling" below)CLAUDE.md migration
CLAUDE.md content was migrated to
instructions/repository-specific.instructions.md, keeping only repo-specific content (project layout,$PSBPreferenceinternals, task dependency variables, naming conventions, build workflows, BuildHelpers env vars). Generic content covered by standard AIM modules (PowerShell style, git workflow, generic testing patterns) was dropped to avoid duplication.Stale references corrected during migration:
CLAUDE.md handling
The original CLAUDE.md was deleted, then re-added as a one-line file containing only
@AGENTS.md. Reason: Claude Code auto-loadsCLAUDE.mdfrom the project root but does not auto-loadAGENTS.md(memory docs). Using the official@-import syntax means fresh Claude Code sessions in this repo automatically pick up AIM context (AGENTS.md → instruction matrix → applicable modules) without needing a manual pointer in every prompt.This matches the AIM source repo, which ships both
AGENTS.mdandCLAUDE.md.AIM 0.8.14 sync
Bumped from 0.8.13 → 0.8.14 (released 2026-05-16). Pulls three instruction-file fixes from tablackburn/ai-agent-instruction-modules#24:
contributing.instructions.md— "Make Changes" pointed contributors atinstructions/instead ofinstruction-templates/. Surfaced during Copilot review of this PR and filed upstream as tablackburn/ai-agent-instruction-modules#23.github-cli.instructions.md— "Creating Releases" example usedgh release create --notes, contradictingreleases.instructions.mdwhich mandates--notes-fileto avoid escaping issues. Replaced with a temp-file pattern and added a precedence note. Also surfaced during this PR's review; same upstream issue.shorthand.instructions.md— backfilled the missingDir → Directoryrow (pre-existing sync drift in the upstream template; fixed in the same upstream PR).AGENTS.mdTemplate Version 0.8.13 → 0.8.14 and Last sync 2026-05-15 → 2026-05-17.Scope
Docs/config-only — no module code changes. Verified locally:
git diff --stat origin/main: 16 files changed, 0 underPowerShellBuild/,requirements.psd1,CHANGELOG.md, or.github/./build.ps1 -Task Test -Bootstrappasses (314 passed, 0 failed, 2 skipped — the skips are git-tagging tests that expectedly skip on feature branches)Note on module count vs #120 checklist
#120's Phase 0 checklist lists 8 modules. This PR deploys 12 — the additional
readme,contributing,update, andrepository-specificmodules were included per the Phase 0 deployment scope I worked from. Happy to drop any of them if the tracking issue's narrower list was intentional.Phase 0 checklist (#120)
AGENTS.md,aim.config.json,instructions/CLAUDE.mdcontent →instructions/repository-specific.instructions.mdagent-workflow,shorthand,git-workflow,testing,powershell,markdown,releases,github-cli(plusreadme,contributing,update,repository-specific— see note above)Commits
feat: deploy AIM (AI Agent Instruction Modules)— main deployment + CLAUDE.md content migration + CLAUDE.md deletiondocs: add CLAUDE.md as @AGENTS.md import for Claude Code auto-loading— restore CLAUDE.md as a 1-line pointerdocs: address Copilot review feedback on repository-specific instructions— Sign/Catalog rows, IB alias examples,-FromModulepsake pattern, signing task dependency + task rowsdocs: sync AIM 0.8.14 fixes (contributing folder, gh release notes, Dir row)— pull the three instruction-file fixes from AIM 0.8.14 and bump template version + sync date🤖 Generated with Claude Code