Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions docs/cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,16 +270,20 @@ apm uninstall microsoft/apm-sample-package --dry-run
|------|----------|
| Package entry | `apm.yml` dependencies section |
| Package folder | `apm_modules/owner/repo/` |
| Transitive deps | `apm_modules/` (orphaned transitive dependencies) |
| Integrated prompts | `.github/prompts/*-apm.prompt.md` |
| Integrated agents | `.github/agents/*-apm.agent.md` |
| Integrated chatmodes | `.github/agents/*-apm.chatmode.md` |
| Claude commands | `.claude/commands/*-apm.md` |
| Skill folders | `.github/skills/{folder-name}/` |
| Lockfile entries | `apm.lock` (removed packages + orphaned transitives) |

**Behavior:**
- Removes package from `apm.yml` dependencies
- Deletes package folder from `apm_modules/`
- Removes orphaned transitive dependencies (npm-style pruning via `apm.lock`)
- Removes all integrated files with `-apm` suffix that originated from the package
- Updates `apm.lock` (or deletes it if no dependencies remain)
- Cleans up empty parent directories
- Safe operation: only removes APM-managed files (identified by `-apm` suffix)

Expand Down Expand Up @@ -336,7 +340,7 @@ apm deps COMMAND [OPTIONS]

#### `apm deps list` - 📋 List installed APM dependencies

Show all installed APM dependencies in a Rich table format with context files and agent workflows.
Show all installed APM dependencies in a Rich table format with per-primitive counts.

```bash
apm deps list
Expand All @@ -350,24 +354,22 @@ apm deps list

**Sample Output:**
```
┌─────────────────────┬─────────┬──────────────┬─────────────┬─────────────┐
│ Package │ Version │ Source Context │ Workflows
├─────────────────────┼─────────┼──────────────┼─────────────┼─────────────┤
│ compliance-rules │ 1.0.0 │ main │ 2 files │ 3 wf
│ design-guidelines │ 1.0.0 │ main │ 1 files │ 3 wf
└─────────────────────┴─────────┴──────────────┴─────────────┴─────────────┘
┌─────────────────────┬─────────┬───────────────────┬─────────────┬────────┬────────┐
│ Package │ Version │ Source │ Prompts │ InstructionsAgents │ Skills
├─────────────────────┼─────────┼───────────────────┼─────────────┼────────┼────────┤
│ compliance-rules │ 1.0.0 │ github 2 │ 1 │ - │ 1
│ design-guidelines │ 1.0.0 │ github - │ 1 │ 1 │ -
└─────────────────────┴─────────┴───────────────────┴─────────────┴────────┴────────┘
```

**Output includes:**
- Package name and version
- Source repository/branch information
- Number of context files (instructions, chatmodes, contexts)
- Number of agent workflows (prompts)
- Installation path and status
- Source information
- Per-primitive counts (prompts, instructions, agents, skills)

#### `apm deps tree` - 🌳 Show dependency tree structure

Display dependencies in hierarchical tree format showing context and agent workflows.
Display dependencies in hierarchical tree format with primitive counts.

```bash
apm deps tree
Expand Down
12 changes: 9 additions & 3 deletions docs/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ Skills are integrated to `.github/skills/`:

| Source | Result |
|--------|--------|
| Package with existing `SKILL.md` | Skill folder copied to `.github/skills/{folder-name}/` |
| APM package with `.apm/` primitives (no SKILL.md) | SKILL.md auto-generated, folder copied to `.github/skills/{folder-name}/` |
| Package without SKILL.md or primitives | No skill folder created |
| Package with `SKILL.md` | Skill folder copied to `.github/skills/{folder-name}/` |
| Package without `SKILL.md` | No skill folder created |

#### Skill Folder Naming

Expand Down Expand Up @@ -355,6 +354,13 @@ Result:
- `depth: 1` = direct dependency
- `depth: 2+` = transitive dependency

Uninstalling a package also removes its orphaned transitive dependencies (npm-style pruning):

```bash
apm uninstall acme/package-a
# Also removes B and C if no other package depends on them
```

### Cleaning Dependencies

```bash
Expand Down
5 changes: 2 additions & 3 deletions docs/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,8 @@ apm install ComposioHQ/awesome-claude-skills/mcp-builder
**How skill integration works:**
1. `apm install` checks if the package contains a `SKILL.md` file
2. If `SKILL.md` exists: copies the entire skill folder to `.github/skills/{folder-name}/`
3. If no `SKILL.md` but package has `.apm/` primitives: auto-generates `SKILL.md` in `.github/skills/{folder-name}/`
4. Updates `.gitignore` to exclude generated skills
5. `apm uninstall` removes the skill folder
3. Updates `.gitignore` to exclude integrated skills
4. `apm uninstall` removes the skill folder

### Target-Specific Compilation

Expand Down
2 changes: 1 addition & 1 deletion docs/skills.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ APM automatically detects package types:
| Has | Type | Detection |
|-----|------|-----------|
| `apm.yml` only | APM Package | Standard APM primitives |
| `SKILL.md` only | Claude Skill | Auto-generates `apm.yml` |
| `SKILL.md` only | Claude Skill | Treated as native skill |
| Both files | Hybrid Package | Best of both worlds |

## Target Detection
Expand Down
Loading