apple-agent-kit 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +88 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,31 +1,105 @@
1
- # apple-agent-kit
1
+ # Apple Agent Kit
2
2
 
3
- Installer for the **Apple Agent Kit** Claude Code plugin — a spec-first knowledge system for AI coding agents developing Apple platform applications.
3
+ Status: Draft
4
+ Version: 0.1.0
4
5
 
5
- ## What this does
6
+ ## Overview
6
7
 
7
- Running the installer:
8
+ Apple Agent Kit is a source-available, spec-first knowledge system for AI coding agents developing Apple platform applications.
8
9
 
9
- 1. Adds the [Apple Agent Kit](https://github.com/caglarbaranbora/Apple-Agent-Kit) repository as a Claude Code plugin marketplace.
10
- 2. Installs the `apple-agent-kit` plugin from it.
10
+ The project transforms official Apple documentation into small, atomic Knowledge Contracts that can be deterministically routed through Skills instead of relying on repository-wide semantic search.
11
11
 
12
- After that, the plugin's Skills and Knowledge Contracts are available inside your Claude Code sessions.
12
+ ## Why
13
13
 
14
- ## Prerequisites
14
+ AI coding agents working on Apple platform apps tend to either hallucinate platform conventions or burn tokens re-reading entire doc sets on every task. Apple Agent Kit exists to fix both: it pre-digests official Apple documentation into small, atomic, traceable Knowledge Contracts, and routes an agent to exactly the ones a task needs via deterministic Skills — not semantic search over the whole repo. The result is lower token cost per task, more consistent output across sessions, and a clear paper trail back to the Apple documentation that justifies each rule.
15
15
 
16
- - [Claude Code](https://docs.claude.com/claude-code) CLI (`claude`) already installed and on your `PATH`.
17
- - Node.js >= 18.
16
+ ## Goals
18
17
 
19
- ## Usage
18
+ - Reduce token usage
19
+ - Improve routing accuracy
20
+ - Increase implementation consistency
21
+ - Preserve traceability to Apple documentation
22
+ - Scale to hundreds of reusable Knowledge Contracts
23
+
24
+ ## Installation
25
+
26
+ Install the Claude Code plugin via the npx installer:
20
27
 
21
28
  ```bash
22
29
  npx apple-agent-kit
23
30
  ```
24
31
 
25
- ## Full documentation
32
+ This adds this repository as a Claude Code plugin marketplace and installs the `apple-agent-kit` plugin, so its Skills, Knowledge Contracts, and routing become available inside Claude Code sessions. Requires the `claude` CLI to already be installed.
33
+
34
+ ## Architecture
35
+
36
+ Apple Documentation
37
+
38
+ References
39
+
40
+ Knowledge Contracts
41
+
42
+ Skills
43
+
44
+ Workflows
45
+
46
+ ## Skills
47
+
48
+ Skills route a task to the minimum set of Knowledge Contracts it needs. Invoke them with a specific task, not a broad topic request — name the concrete thing you're doing (e.g. "check this screen's layout against HIG"), not "tell me about HIG."
49
+
50
+ - **`authentication`** — Routes sign-in, sign-up, credential, and biometric implementation tasks to Authentication Knowledge Contracts.
51
+ Example: `"add a Face ID unlock option to my login screen"` → `knowledge.authentication.authentication`, `knowledge.authentication.accessibility-forms`
52
+
53
+ - **`style-guide`** — Routes UI copy and wording tasks (button labels, error text, capitalization, punctuation, inclusive writing, formatting) to Style Guide Knowledge Contracts.
54
+ Example: `"what's the correct label for a destructive delete button"` → `general-button-labels.md`
55
+
56
+ - **`human-interface-guidelines`** — Routes iOS/iPadOS visual design tasks (layout, color, typography, dark mode, materials, motion, icons, branding, accessibility-design, privacy UI, RTL) to HIG Foundations Knowledge Contracts.
57
+ Example: `"check this screen's layout against HIG"` → `layout.md` (+ `right-to-left.md` if relevant)
58
+ Example: `"does my dark mode palette meet contrast guidance"` → `dark-mode.md`, `color.md`
59
+
60
+ - **`app-store-review-guidelines`** — Routes App Store submission-compliance tasks (app completeness, metadata accuracy, in-app purchase, spam/duplicate-app avoidance, privacy manifest and nutrition label accuracy) to App Store Review Guidelines Knowledge Contracts.
61
+ Example: `"why would this in-app subscription get rejected"` → `digital-goods-iap.md`, `restore-purchases.md`
62
+ Example: `"what needs to go in my PrivacyInfo.xcprivacy"` → `privacy-manifest.md`
63
+
64
+ - **`swiftui`** — Routes SwiftUI implementation-code tasks (view composition, view identity, modifier order, NavigationStack/NavigationSplitView, layout, safe area, lazy grids, GeometryReader pitfalls, state management) to SwiftUI Knowledge Contracts.
65
+ Example: `"why did my list row selection reset after reordering the array"` → `view-identity.md`
66
+ Example: `"should I use @State or @Binding here"` → `state-and-binding.md`
67
+
68
+ - **`accessibility`** — Routes Accessibility API implementation tasks (labels, traits, value/hint, custom actions, element grouping, VoiceOver navigation order, Dynamic Type API, Reduce Motion/Transparency/Increase Contrast, Full Keyboard Access, hidden/decorative elements, accessibility audits) to Accessibility Knowledge Contracts, across SwiftUI and UIKit.
69
+ Example: `"this icon-only button has no VoiceOver label"` → `accessibility-labels.md`
70
+ Example: `"swipe-to-delete row needs a VoiceOver alternative"` → `custom-accessibility-actions.md`
71
+
72
+ - **`uikit`** — Routes UIKit screen-scaffolding implementation tasks (view controller lifecycle/composition, programmatic Auto Layout, navigation, diffable table/collection views, modal presentation) to UIKit Knowledge Contracts.
73
+ Example: `"my child view controller's view isn't showing up correctly"` → `view-controller-composition.md`
74
+ Example: `"how do I animate row insertion in a UITableView"` → `table-view-diffable.md`
75
+
76
+ - **`sf-symbols`** — Routes SF Symbols API implementation tasks (rendering modes, symbol variants, variable value, weight/scale, color/tinting mechanics, custom symbol usage, UIKit SymbolConfiguration) to SF Symbols Knowledge Contracts, across SwiftUI and UIKit.
77
+ Example: `"this status icon should use two colors, one per layer"` → `rendering-modes.md`
78
+ Example: `"how do I show wifi signal strength as a symbol"` → `variable-value-symbols.md`
79
+
80
+ - **`networking`** — Routes URLSession async/await networking implementation tasks (request construction, data fetching, Codable decoding, error handling, task cancellation, session configuration, App Transport Security, authenticated requests) to Networking Knowledge Contracts.
81
+ Example: `"my JSON response isn't decoding, dates are failing"` → `codable-decoding.md`
82
+ Example: `"how do I retry a request after a 401 without an infinite loop"` → `authenticated-requests.md`
83
+
84
+ Full routing tables: [skills/index.md](skills/index.md). Domain build order and scope: [docs/architecture/domain-map.md](docs/architecture/domain-map.md).
85
+
86
+ ## What's New
87
+
88
+ - 2026-08-01 — Added `networking` Skill (URL request construction, async data fetching, Codable decoding, HTTP error handling, task cancellation, session configuration, App Transport Security, authenticated requests; async/await URLSession v1) — 8 Knowledge Contracts. Fills the "Authentication networking" gap authentication.md explicitly excludes, and replaces the prior placeholder scope in domain-map.md.
89
+ - 2026-08-01 — Added `sf-symbols` Skill (symbol basics, rendering modes, symbol variants, variable value, weight/scale, color/tinting, custom symbol usage, UIKit SymbolConfiguration; SwiftUI + UIKit) — 8 Knowledge Contracts. Resolves the human-interface-guidelines sf-symbols forward-reference and replaces the prior placeholder scope in domain-map.md.
90
+ - 2026-08-01 — Added `uikit` Skill (view controller lifecycle/composition, Auto Layout, navigation, diffable table/collection views, cell configuration, modal presentation; programmatic UI v1) — 12 Knowledge Contracts. Replaces the prior placeholder scope in domain-map.md.
91
+ - 2026-08-01 — Added `accessibility` Skill (labels/traits/value/hint, custom actions, element grouping, VoiceOver navigation order, Dynamic Type API, reduce-motion/transparency/increase-contrast, keyboard access & focus, hidden/decorative elements, accessibility audits; SwiftUI + UIKit) — 12 Knowledge Contracts. Resolves the human-interface-guidelines and swiftui accessibility forward-references.
92
+ - 2026-08-01 — Added `swiftui` Skill (Views: composition/identity/modifier order; Navigation: NavigationStack/NavigationSplitView; Layout: stacks/safe-area/lazy-grids/GeometryReader; State: @State/@Binding/@Observable/@Environment) — 12 Knowledge Contracts.
93
+ - 2026-07-31 — Added `app-store-review-guidelines` Skill (App Completeness, Accurate Metadata, In-App Purchase, Minimum Functionality, Spam/Duplicate, Privacy manifest & nutrition label) — 12 Knowledge Contracts.
94
+ - 2026-07-31 — Added `human-interface-guidelines` Skill (Foundations: layout, color, typography, app icons, images, inclusion, accessibility-design, dark mode, materials, motion, icons, branding, privacy-design, SF Symbols usage, RTL) — 15 Knowledge Contracts.
95
+ - 2026-07-31 — Hardened native Skill format (real YAML frontmatter, deterministic keyword routing, Stop Conditions) across all Skills.
96
+ - 2026-07-31 — Added `authentication` Skill (sign-in, sign-up, credentials, biometrics).
97
+ - 2026-07-31 — Added `style-guide` Skill (terminology, capitalization, punctuation, inclusive writing).
98
+
99
+ ## Contributing
26
100
 
27
- See the [main repository](https://github.com/caglarbaranbora/Apple-Agent-Kit) for architecture, Knowledge Contract format, and contributing guide.
101
+ Contributions are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md) for how to open a PR and what a good Knowledge Contract or Skill submission looks like. Repo dev conventions (validation scripts, naming, layer order) are in [CLAUDE.md](CLAUDE.md).
28
102
 
29
103
  ## License
30
104
 
31
- Source-available under the [PolyForm Strict License 1.0.0](https://github.com/caglarbaranbora/Apple-Agent-Kit/blob/main/LICENSE). Use it; don't redistribute, republish, or resell it.
105
+ Source-available under the [PolyForm Strict License 1.0.0](LICENSE). You may download and use this software; you may not copy, redistribute, republish, or resell it. See [LICENSE](LICENSE) for the full terms.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apple-agent-kit",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Installs the Apple Agent Kit Claude Code plugin via the claude CLI.",
5
5
  "bin": {
6
6
  "apple-agent-kit": "bin/install.js"