Skip to content
Draft
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
4 changes: 3 additions & 1 deletion docs/src/content/docs/guides/compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ Optimizing instruction placement...
Generated 4 AGENTS.md files with guaranteed coverage
```

> **[!] Missing `applyTo`:** If any instruction file is missing a valid `applyTo` frontmatter field, `apm compile` emits a warning for each affected file across all compilation modes. Instructions without `applyTo` are treated as global (matching all files) which can inflate context load. Add a glob pattern to each `.instructions.md` frontmatter to silence the warning and improve optimization accuracy.

### Mathematical Analysis Mode

```bash
Expand Down Expand Up @@ -287,7 +289,7 @@ compilation:

#### Directory Exclusion Patterns

Use the `exclude` field to skip directories during compilation, improving performance in large monorepos:
Use the `exclude` field to skip directories during both primitive discovery and compilation. Excluded paths are filtered before any scanning begins, so matched files never appear in compiled output even if they would otherwise match an instruction pattern. This improves performance in large monorepos and prevents duplicate instructions from leaking through:

**Pattern Syntax:**
- `tmp` - Matches directory named "tmp" at any depth
Expand Down
7 changes: 7 additions & 0 deletions docs/src/content/docs/guides/marketplaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ This registers the marketplace and fetches its `marketplace.json`. By default AP
apm marketplace add acme/plugin-marketplace --name acme-plugins --branch release
```

**GitHub Enterprise Server:** If `GITHUB_HOST` is set, `apm marketplace add` resolves bare `owner/repo` references against your GHES instance, the same way `apm install` does. Set the variable before running the command:

```bash
export GITHUB_HOST=github.company.com
apm marketplace add internal-org/plugin-marketplace
```

## List registered marketplaces

```bash
Expand Down
11 changes: 11 additions & 0 deletions docs/src/content/docs/guides/skills.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,17 @@ If you see a skill name validation warning:
1. **Check naming:** Names must be lowercase, 1-64 chars, hyphens only (no underscores)
2. **Auto-normalization:** APM automatically normalizes invalid names when possible

### Native Skill Name Collision

If two installed packages deploy a native skill with the same name, APM emits a warning during install:

```
[!] Native skill name collision: "code-review" is deployed by both acme/code-review and corp/standards.
The last package installed wins. Rename one skill or remove the conflicting package.
```

To resolve: either rename the `SKILL.md` file in one of the packages, or remove the package that is shadowing the other. The last package installed takes precedence at the filesystem level.

### Metadata Missing

If skill lacks APM metadata:
Expand Down
Loading