opencodekit 0.16.15 → 0.16.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/template/.opencode/AGENTS.md +1 -1
- package/dist/template/.opencode/agent/plan.md +77 -161
- package/dist/template/.opencode/command/create.md +75 -307
- package/dist/template/.opencode/command/design.md +53 -589
- package/dist/template/.opencode/command/handoff.md +76 -180
- package/dist/template/.opencode/command/init.md +45 -211
- package/dist/template/.opencode/command/plan.md +62 -514
- package/dist/template/.opencode/command/pr.md +56 -226
- package/dist/template/.opencode/command/research.md +55 -266
- package/dist/template/.opencode/command/resume.md +33 -138
- package/dist/template/.opencode/command/review-codebase.md +54 -202
- package/dist/template/.opencode/command/ship.md +78 -127
- package/dist/template/.opencode/command/start.md +47 -577
- package/dist/template/.opencode/command/status.md +55 -354
- package/dist/template/.opencode/command/ui-review.md +52 -298
- package/dist/template/.opencode/command/verify.md +36 -250
- package/dist/template/.opencode/memory.db-shm +0 -0
- package/dist/template/.opencode/memory.db-wal +0 -0
- package/dist/template/.opencode/plugin/README.md +8 -4
- package/dist/template/.opencode/plugin/swarm-enforcer.ts +182 -27
- package/dist/template/.opencode/skill/augment-context-engine/SKILL.md +112 -0
- package/dist/template/.opencode/skill/augment-context-engine/mcp.json +6 -0
- package/dist/template/.opencode/skill/core-data-expert/SKILL.md +82 -0
- package/dist/template/.opencode/skill/core-data-expert/references/batch-operations.md +543 -0
- package/dist/template/.opencode/skill/core-data-expert/references/cloudkit-integration.md +259 -0
- package/dist/template/.opencode/skill/core-data-expert/references/concurrency.md +522 -0
- package/dist/template/.opencode/skill/core-data-expert/references/fetch-requests.md +643 -0
- package/dist/template/.opencode/skill/core-data-expert/references/glossary.md +233 -0
- package/dist/template/.opencode/skill/core-data-expert/references/migration.md +393 -0
- package/dist/template/.opencode/skill/core-data-expert/references/model-configuration.md +597 -0
- package/dist/template/.opencode/skill/core-data-expert/references/performance.md +300 -0
- package/dist/template/.opencode/skill/core-data-expert/references/persistent-history.md +553 -0
- package/dist/template/.opencode/skill/core-data-expert/references/project-audit.md +60 -0
- package/dist/template/.opencode/skill/core-data-expert/references/saving.md +574 -0
- package/dist/template/.opencode/skill/core-data-expert/references/stack-setup.md +625 -0
- package/dist/template/.opencode/skill/core-data-expert/references/testing.md +300 -0
- package/dist/template/.opencode/skill/core-data-expert/references/threading.md +589 -0
- package/dist/template/.opencode/skill/swift-concurrency/SKILL.md +246 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/actors.md +640 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/async-algorithms.md +822 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/async-await-basics.md +249 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/async-sequences.md +670 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/core-data.md +533 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/glossary.md +128 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/linting.md +142 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/memory-management.md +542 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/migration.md +1076 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/performance.md +574 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/sendable.md +578 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/tasks.md +604 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/testing.md +565 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/threading.md +452 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/SKILL.md +290 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/animation-advanced.md +351 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/animation-basics.md +284 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/animation-transitions.md +326 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/image-optimization.md +286 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/layout-best-practices.md +312 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/liquid-glass.md +377 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/list-patterns.md +153 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/modern-apis.md +400 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/performance-patterns.md +377 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/scroll-patterns.md +305 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/sheet-navigation-patterns.md +292 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/state-management.md +447 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/text-formatting.md +285 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/view-structure.md +276 -0
- package/package.json +1 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: augment-context-engine
|
|
3
|
+
description: Semantic codebase search via Augment Context Engine MCP. Use when you need to understand code relationships, find relevant implementations, or explore unfamiliar codebases beyond keyword matching.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Augment Context Engine (MCP)
|
|
7
|
+
|
|
8
|
+
Semantic code search powered by Augment's Context Engine. Unlike grep (text matching), this understands code meaning, relationships, and cross-file dependencies.
|
|
9
|
+
|
|
10
|
+
## Available Tools
|
|
11
|
+
|
|
12
|
+
- `augment_code_search` - Semantic search across indexed GitHub repositories
|
|
13
|
+
|
|
14
|
+
**Parameters:**
|
|
15
|
+
|
|
16
|
+
- `repo_owner` (string, required) - GitHub org or username (e.g. `"augmentcode"`)
|
|
17
|
+
- `repo_name` (string, required) - Repository name (e.g. `"test-repo"`)
|
|
18
|
+
- `query` (string, required) - Natural language description of what you're looking for
|
|
19
|
+
- `branch` (string, optional) - Branch to search (defaults to `"main"`)
|
|
20
|
+
- `max_results` (integer, optional) - Max code snippets to return (defaults to 5)
|
|
21
|
+
|
|
22
|
+
## Quick Start
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
# Search a GitHub repo for authentication code
|
|
26
|
+
skill_mcp(skill_name="augment-context-engine", tool_name="augment_code_search", arguments='{"repo_owner": "myorg", "repo_name": "myapp", "query": "authentication middleware that validates JWT tokens"}')
|
|
27
|
+
|
|
28
|
+
# Search a specific branch with more results
|
|
29
|
+
skill_mcp(skill_name="augment-context-engine", tool_name="augment_code_search", arguments='{"repo_owner": "myorg", "repo_name": "myapp", "query": "error handling patterns", "branch": "develop", "max_results": 10}')
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
> **Tip:** Get `repo_owner` and `repo_name` from git: `git remote get-url origin`
|
|
33
|
+
|
|
34
|
+
## Setup
|
|
35
|
+
|
|
36
|
+
### 1. Install the Augment GitHub App
|
|
37
|
+
|
|
38
|
+
Install at [github.com/apps/augmentcode](https://github.com/apps/augmentcode/installations/new) and grant access to the repos you want to index.
|
|
39
|
+
|
|
40
|
+
### 2. Add the remote server
|
|
41
|
+
|
|
42
|
+
The skill's `mcp.json` uses `mcp-remote` to bridge the remote API via stdio.
|
|
43
|
+
|
|
44
|
+
For global access, add to `~/.config/opencode/opencode.json`:
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"$schema": "https://opencode.ai/config.json",
|
|
49
|
+
"mcp": {
|
|
50
|
+
"auggie": {
|
|
51
|
+
"type": "remote",
|
|
52
|
+
"url": "https://api.augmentcode.com/mcp",
|
|
53
|
+
"enabled": true
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### 3. Authenticate
|
|
60
|
+
|
|
61
|
+
Sign in at [app.augmentcode.com](https://app.augmentcode.com) when prompted by `mcp-remote` on first use.
|
|
62
|
+
|
|
63
|
+
## Query Tips
|
|
64
|
+
|
|
65
|
+
Good queries (natural language, conceptual):
|
|
66
|
+
|
|
67
|
+
- `"function that handles user authentication"`
|
|
68
|
+
- `"database connection setup code"`
|
|
69
|
+
- `"tests for the payment processing module"`
|
|
70
|
+
|
|
71
|
+
Bad queries (use grep instead):
|
|
72
|
+
|
|
73
|
+
- `"foo_bar"` — exact symbol search
|
|
74
|
+
- `"TODO"` — keyword search
|
|
75
|
+
- `"code that deals with everything"` — too vague
|
|
76
|
+
|
|
77
|
+
## When to Use
|
|
78
|
+
|
|
79
|
+
| Scenario | Use This | Instead Of |
|
|
80
|
+
| ------------------------ | --------------------- | -------------------------- |
|
|
81
|
+
| Find code by meaning | `augment_code_search` | `grep` (text only) |
|
|
82
|
+
| Understand relationships | `augment_code_search` | `@explore` agent (heavier) |
|
|
83
|
+
| Unfamiliar codebase | `augment_code_search` | Manual file exploration |
|
|
84
|
+
| Cross-repo dependencies | `augment_code_search` | LSP references (narrower) |
|
|
85
|
+
|
|
86
|
+
## When NOT to Use
|
|
87
|
+
|
|
88
|
+
- **Exact string matching** — Use `grep` instead (faster, free)
|
|
89
|
+
- **Known file paths** — Use `read` directly
|
|
90
|
+
- **Symbol definitions** — Use LSP `goToDefinition` (precise)
|
|
91
|
+
- **Local-only work** — This searches GitHub-indexed repos, not local files
|
|
92
|
+
|
|
93
|
+
## Tool Priority Integration
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
grep (text) → semantic search (meaning) → read (full file) → LSP (symbols) → edit
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Use grep first for exact matches. Escalate to semantic search when grep results are noisy or you need conceptual understanding.
|
|
100
|
+
|
|
101
|
+
## Cost
|
|
102
|
+
|
|
103
|
+
- ~40-70 credits per query
|
|
104
|
+
- Not free — use judiciously
|
|
105
|
+
- Prefer grep for simple lookups
|
|
106
|
+
|
|
107
|
+
## Resources
|
|
108
|
+
|
|
109
|
+
- Docs: https://docs.augmentcode.com/context-services/mcp/overview
|
|
110
|
+
- OpenCode Quickstart: https://docs.augmentcode.com/context-services/mcp/quickstart-open-code
|
|
111
|
+
- GitHub App: https://github.com/apps/augmentcode/installations/new
|
|
112
|
+
- Product: https://www.augmentcode.com/product/context-engine-mcp
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: core-data-expert
|
|
3
|
+
description: 'Expert Core Data guidance (iOS/macOS): stack setup, fetch requests & NSFetchedResultsController, saving/merge conflicts, threading & Swift Concurrency, batch operations & persistent history, migrations, performance, and NSPersistentCloudKitContainer/CloudKit sync.'
|
|
4
|
+
---
|
|
5
|
+
# Core Data Expert
|
|
6
|
+
|
|
7
|
+
Fast, production-oriented guidance for building **correct**, **performant** Core Data stacks and fixing common crashes.
|
|
8
|
+
|
|
9
|
+
## Agent behavior contract (follow these rules)
|
|
10
|
+
|
|
11
|
+
1. Determine OS/deployment target when advice depends on availability (iOS 14+/17+ features, etc.).
|
|
12
|
+
2. Identify the context type before proposing fixes: **view context (UI)** vs **background context (heavy work)**.
|
|
13
|
+
3. Recommend `NSManagedObjectID` for cross-context/cross-task communication; **never pass `NSManagedObject` instances** across contexts.
|
|
14
|
+
4. Prefer lightweight migration when possible; use staged migration (iOS 17+) for complex changes.
|
|
15
|
+
5. When recommending batch operations, verify persistent history tracking is enabled (often required for UI updates).
|
|
16
|
+
6. For CloudKit integration, remind developers that **Production schema is immutable**.
|
|
17
|
+
7. Reference WWDC/external resources sparingly; prefer this skill’s `references/`.
|
|
18
|
+
|
|
19
|
+
## First 60 seconds (triage template)
|
|
20
|
+
|
|
21
|
+
- **Clarify the goal**: setup, bugfix, migration, performance, CloudKit?
|
|
22
|
+
- **Collect minimal facts**:
|
|
23
|
+
- platform + deployment target
|
|
24
|
+
- store type (SQLite / in-memory) and whether CloudKit is enabled
|
|
25
|
+
- context involved (view vs background) and whether Swift Concurrency is in use
|
|
26
|
+
- exact error message + stack trace/logs
|
|
27
|
+
- **Branch immediately**:
|
|
28
|
+
- threading/crash → focus on context confinement + `NSManagedObjectID` handoff
|
|
29
|
+
- migration error → identify model versions + migration strategy
|
|
30
|
+
- batch ops not updating UI → persistent history tracking + merge pipeline
|
|
31
|
+
|
|
32
|
+
## Routing map (pick the right reference fast)
|
|
33
|
+
|
|
34
|
+
- **Stack setup / merge policies / contexts** → `references/stack-setup.md`
|
|
35
|
+
- **Saving patterns** → `references/saving.md`
|
|
36
|
+
- **Fetch requests / list updates / aggregates** → `references/fetch-requests.md`
|
|
37
|
+
- **Traditional threading (perform/performAndWait, object IDs)** → `references/threading.md`
|
|
38
|
+
- **Swift Concurrency (async/await, actors, Sendable, DAOs)** → `references/concurrency.md`
|
|
39
|
+
- **Batch insert/delete/update** → `references/batch-operations.md`
|
|
40
|
+
- **Persistent history tracking + “batch ops not updating UI”** → `references/persistent-history.md`
|
|
41
|
+
- **Model configuration (constraints, validation, derived/composite, transformables)** → `references/model-configuration.md`
|
|
42
|
+
- **Schema migration (lightweight/staged/deferred)** → `references/migration.md`
|
|
43
|
+
- **CloudKit integration & debugging** → `references/cloudkit-integration.md`
|
|
44
|
+
- **Performance profiling & memory** → `references/performance.md`
|
|
45
|
+
- **Testing patterns** → `references/testing.md`
|
|
46
|
+
- **Terminology** → `references/glossary.md`
|
|
47
|
+
|
|
48
|
+
## Common errors → next best move
|
|
49
|
+
|
|
50
|
+
- **“Failed to find a unique match for an NSEntityDescription”** → `references/testing.md` (shared `NSManagedObjectModel`)
|
|
51
|
+
- **`NSPersistentStoreIncompatibleVersionHashError`** → `references/migration.md` (versioning + migration)
|
|
52
|
+
- **Cross-context/threading exceptions** (e.g. delete/update from wrong context) → `references/threading.md` and/or `references/concurrency.md` (use `NSManagedObjectID`)
|
|
53
|
+
- **Sendable / actor-isolation warnings around Core Data** → `references/concurrency.md` (don’t “paper over” with `@unchecked Sendable`)
|
|
54
|
+
- **`NSMergeConflict` / constraint violations** → `references/model-configuration.md` + `references/stack-setup.md` (constraints + merge policy)
|
|
55
|
+
- **Batch operations not updating UI** → `references/persistent-history.md` + `references/batch-operations.md`
|
|
56
|
+
- **CloudKit schema/sync issues** → `references/cloudkit-integration.md`
|
|
57
|
+
- **Memory grows during fetch** → `references/performance.md` + `references/fetch-requests.md`
|
|
58
|
+
|
|
59
|
+
## Verification checklist (when changing Core Data code)
|
|
60
|
+
|
|
61
|
+
- Confirm the context matches the work (UI vs background).
|
|
62
|
+
- Ensure `NSManagedObject` instances never cross contexts; pass `NSManagedObjectID` instead.
|
|
63
|
+
- If using batch ops, confirm persistent history tracking + merge pipeline.
|
|
64
|
+
- If using constraints, confirm merge policy and conflict resolution strategy.
|
|
65
|
+
- If performance-related, profile with Instruments and validate fetch batching/limits.
|
|
66
|
+
|
|
67
|
+
## Reference files
|
|
68
|
+
|
|
69
|
+
- `references/_index.md` (navigation)
|
|
70
|
+
- `references/stack-setup.md`
|
|
71
|
+
- `references/saving.md`
|
|
72
|
+
- `references/fetch-requests.md`
|
|
73
|
+
- `references/threading.md`
|
|
74
|
+
- `references/concurrency.md`
|
|
75
|
+
- `references/batch-operations.md`
|
|
76
|
+
- `references/persistent-history.md`
|
|
77
|
+
- `references/model-configuration.md`
|
|
78
|
+
- `references/migration.md`
|
|
79
|
+
- `references/cloudkit-integration.md`
|
|
80
|
+
- `references/performance.md`
|
|
81
|
+
- `references/testing.md`
|
|
82
|
+
- `references/glossary.md`
|