You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/compilation.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ target: vscode # or claude, or all
41
41
| `all` | Both `AGENTS.md` and `CLAUDE.md` | Universal compatibility |
42
42
| `minimal` | `AGENTS.md` only | Works everywhere, no folder integration |
43
43
44
-
> **Note**: `AGENTS.md` and `CLAUDE.md` contain **only instructions** (grouped by `applyTo` patterns). Prompts, agents, commands, and skills are integrated by `apm install`, not `apm compile`. See the [Integrations Guide](integrations.md) for details on how `apm install` populates `.github/prompts/`, `.github/agents/`, `.github/skills/`, and `.claude/commands/`.
44
+
> **Note**: `AGENTS.md` and `CLAUDE.md` contain **only instructions** (grouped by `applyTo` patterns). Prompts, agents, commands, hooks, and skills are integrated by `apm install`, not `apm compile`. See the [Integrations Guide](integrations.md) for details on how `apm install` populates `.github/prompts/`, `.github/agents/`, `.github/skills/`, and `.claude/commands/`.
|**APM Package**| Has `apm.yml`|`microsoft/apm-sample-package`|
21
-
|**Claude Skill**| Has `SKILL.md` (no `apm.yml`) |`ComposioHQ/awesome-claude-skills/brand-guidelines`|
22
-
|**Virtual Subdirectory Package**| Folder path in monorepo |`ComposioHQ/awesome-claude-skills/mcp-builder`|
21
+
|**Claude Skill**| Has `SKILL.md` (no `apm.yml`) |`ComposioHQ/awesome-claude-skills/brand-guidelines`||**Hook Package**| Has `hooks/*.json` (no `apm.yml` or `SKILL.md`) |`anthropics/claude-plugins-official/plugins/hookify`||**Virtual Subdirectory Package**| Folder path in monorepo |`ComposioHQ/awesome-claude-skills/mcp-builder`|
23
22
|**Virtual Subdirectory Package**| Folder path in repo |`github/awesome-copilot/skills/review-and-refactor`|
3. Updates `.gitignore` to exclude integrated skills
287
292
4.`apm uninstall` removes the skill folder
288
293
294
+
### Automatic Hook Integration
295
+
296
+
APM automatically integrates hooks from installed packages. Hooks define lifecycle event handlers (e.g., `PreToolUse`, `PostToolUse`, `Stop`) supported by both VSCode Copilot and Claude Code.
297
+
298
+
> **Note:** Hook packages must be authored in the target platform's native format. APM handles path rewriting and file placement but does not translate between hook schema formats (e.g., Claude's `command` key vs GitHub Copilot's `bash`/`powershell` keys, or event name casing differences).
Copy file name to clipboardExpand all lines: docs/primitives.md
+41-4Lines changed: 41 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,12 +69,13 @@ apm run review-copilot --param files="src/auth/"
69
69
70
70
## Overview
71
71
72
-
The APM CLI supports four types of primitives:
72
+
The APM CLI supports the following types of primitives:
73
73
74
74
-**Agents** (`.agent.md`) - Define AI assistant personalities and behaviors (legacy: `.chatmode.md`)
75
75
-**Instructions** (`.instructions.md`) - Provide coding standards and guidelines for specific file types
76
76
-**Skills** (`SKILL.md`) - Package meta-guides that help AI agents understand what a package does
77
77
-**Context** (`.context.md`, `.memory.md`) - Supply background information and project context
78
+
-**Hooks** (`.json` in `.apm/hooks/` or `hooks/`) - Define lifecycle event handlers with script references
78
79
79
80
> **Note**: Both `.agent.md` (new format) and `.chatmode.md` (legacy format) are fully supported. VSCode provides Quick Fix actions to help migrate from `.chatmode.md` to `.agent.md`.
80
81
@@ -95,8 +96,12 @@ APM discovers primitives in these locations:
95
96
│ └── *.instructions.md
96
97
├── context/ # Project context files
97
98
│ └── *.context.md
98
-
└── memory/ # Team info, contacts, etc.
99
-
└── *.memory.md
99
+
├── memory/ # Team info, contacts, etc.
100
+
│ └── *.memory.md
101
+
└── hooks/ # Lifecycle event handlers
102
+
├── *.json # Hook definitions (JSON)
103
+
└── scripts/ # Referenced scripts
104
+
└── *.sh, *.py
100
105
101
106
# VSCode-compatible structure
102
107
.github/
@@ -117,7 +122,7 @@ APM discovers primitives in these locations:
117
122
118
123
## Component Types Overview
119
124
120
-
Context implements the complete [AI-Native Development framework](https://danielmeppiel.github.io/awesome-ai-native/docs/concepts/) through four core component types:
125
+
Context implements the complete [AI-Native Development framework](https://danielmeppiel.github.io/awesome-ai-native/docs/concepts/) through the following core component types:
121
126
122
127
### Instructions (.instructions.md)
123
128
**Context Engineering Layer** - Targeted guidance by file type and domain
@@ -340,6 +345,38 @@ Team information (`.apm/memory/team-contacts.memory.md`):
340
345
- Sprint planning: Mondays 2:00 PM PST
341
346
```
342
347
348
+
### Hooks
349
+
350
+
Hooks define lifecycle event handlers that run scripts at specific points during AI agent operations (e.g., before/after tool use).
351
+
352
+
**Format:**`.json` files in `hooks/` or `.apm/hooks/`
0 commit comments