Skip to content

Commit 8f51af0

Browse files
authored
Merge pull request #58 from MSiccDev/codex/codex-plugin-packaging
chore(plugin): add Codex plugin packaging
2 parents 352d578 + acb72ea commit 8f51af0

3 files changed

Lines changed: 90 additions & 6 deletions

File tree

.agents/plugins/marketplace.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "ai-context-kit",
3+
"interface": {
4+
"displayName": "AI Context Kit"
5+
},
6+
"plugins": [
7+
{
8+
"name": "ai-context-kit",
9+
"source": {
10+
"source": "local",
11+
"path": "./"
12+
},
13+
"policy": {
14+
"installation": "AVAILABLE",
15+
"authentication": "ON_INSTALL"
16+
},
17+
"category": "Productivity"
18+
}
19+
]
20+
}

.codex-plugin/plugin.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "ai-context-kit",
3+
"version": "1.4.2",
4+
"description": "Context-aware AI collaboration skills and implementation loop prompts for creating and validating user context, project AGENTS.md files, and skill artifacts across LLM providers.",
5+
"author": {
6+
"name": "MSiccDev Software Development",
7+
"url": "https://github.com/MSiccDev"
8+
},
9+
"homepage": "https://github.com/MSiccDev/ai-context-kit",
10+
"repository": "https://github.com/MSiccDev/ai-context-kit",
11+
"license": "MIT",
12+
"keywords": [
13+
"context",
14+
"agents",
15+
"skills",
16+
"user-context",
17+
"ai-collaboration",
18+
"prompt-engineering",
19+
"implementation-loop",
20+
"workflow-prompts"
21+
],
22+
"skills": "./skills/",
23+
"interface": {
24+
"displayName": "AI Context Kit",
25+
"shortDescription": "AGENTS-first collaboration skills for Codex.",
26+
"longDescription": "Reusable skills for creating and validating user context, project AGENTS.md files, and skill artifacts across LLM providers.",
27+
"developerName": "MSiccDev Software Development",
28+
"category": "Productivity",
29+
"capabilities": [
30+
"Read",
31+
"Write"
32+
],
33+
"websiteURL": "https://github.com/MSiccDev/ai-context-kit",
34+
"defaultPrompt": [
35+
"Use AI Context Kit to create a project AGENTS.md.",
36+
"Validate this AGENTS.md with AI Context Kit.",
37+
"Create a user context file with AI Context Kit."
38+
],
39+
"brandColor": "#2563EB"
40+
}
41+
}

README.md

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ ai-context-kit/
6767
├── README.md # This file
6868
├── LICENSE # MIT License file
6969
70+
├── .codex-plugin/
71+
│ └── plugin.json # Codex plugin manifest
72+
├── .agents/
73+
│ ├── plugins/
74+
│ │ └── marketplace.json # Repo-scoped Codex marketplace
75+
│ └── skills/ # Codex skill discovery symlinks
76+
7077
├── prompts/ # Prompt wrappers and implementation loop
7178
│ ├── skills/ # Skill-wrapper prompts (route to canonical skills)
7279
│ │ ├── create-usercontext-instructions.prompt.md # Generate user context instruction files
@@ -307,9 +314,21 @@ If paths must change, update the specification and README first, then adjust ski
307314

308315
---
309316

310-
## Installing as a Plugin (Claude Code and GitHub Copilot CLI)
317+
## Installing as a Plugin
318+
319+
AI Context Kit ships native plugin metadata for Codex and compatibility metadata for Claude Code and GitHub Copilot CLI. Installing registers all 11 skills in the target runtime, with no manual `SKILL.md` loading required.
320+
321+
### OpenAI Codex
322+
323+
Register the repository as a marketplace source:
324+
325+
```bash
326+
codex plugin marketplace add MSiccDev/ai-context-kit
327+
```
328+
329+
Then restart Codex, open **Plugins**, choose the **AI Context Kit** marketplace, and install `ai-context-kit`.
311330

312-
AI Context Kit is distributed as a plugin compatible with both Claude Code and GitHub Copilot CLI — they share the same plugin spec. Installing registers all 9 skills as namespaced slash commands in the plugin runtime, with no manual `SKILL.md` loading required.
331+
This repository also supports repo-scoped skill discovery for direct local use. If you clone the repository and run Codex inside it, the `.agents/skills/` symlinks expose the canonical `skills/` directory without duplicating content.
313332

314333
### Claude Code
315334

@@ -343,7 +362,7 @@ claude --plugin-dir ./path/to/ai-context-kit
343362

344363
### Invoking skills after installation
345364

346-
> **Plugin runtime vs. manual invocation:** This section covers invocation when the plugin is installed via the plugin system (Claude Code or Copilot CLI). If you are using the repository directly (cloned or forked), see [Invoking Skills](#invoking-skills) above — that approach requires loading each `SKILL.md` manually into your session.
365+
> **Plugin runtime vs. manual invocation:** This section covers invocation when the plugin is installed via the plugin system. If you are using the repository directly (cloned or forked), see [Invoking Skills](#invoking-skills) above, or use Codex repo-scoped skill discovery through `.agents/skills/`.
347366
348367
Skills are namespaced to the plugin name. Inside a session:
349368

@@ -376,13 +395,13 @@ claude plugin update ai-context-kit
376395

377396
## Using with OpenAI Codex
378397

379-
Codex auto-discovers skills from the `.agents/skills/` directory (scanned upward from the current working directory to the repo root). AI Context Kit ships a `.agents/skills/` directory whose entries are symlinks to the canonical `skills/` folder — no content duplication, single source of truth.
398+
Codex auto-discovers skills from the `.agents/skills/` directory, scanning upward from the current working directory to the repo root. AI Context Kit ships a `.agents/skills/` directory whose entries are symlinks to the canonical `skills/` folders, so repo-local skill discovery and plugin packaging both point at the same source of truth.
380399

381400
Each skill also includes an `agents/openai.yaml` sidecar (`skills/<name>/agents/openai.yaml`) with UI metadata consumed by the Codex skill picker.
382401

383402
### Auto-discovery (no install needed)
384403

385-
If you clone this repo and run Codex from within it, all 9 skills are discovered automatically — no registration or import required.
404+
If you clone this repo and run Codex from within it, all 11 skills are discovered automatically. No registration or import is required for repo-local use.
386405

387406
### Invoking skills in Codex
388407

@@ -396,9 +415,13 @@ $repository-drift-control
396415

397416
`repository-drift-control` requires explicit invocation (`allow_implicit_invocation: false`) since it is a governance action.
398417

418+
### Installing the plugin instead of using repo-local discovery
419+
420+
If you want the skills available outside this repository without copying `.agents/skills/` into each project, install the plugin from the Codex marketplace flow described above.
421+
399422
### Using skills in your own project
400423

401-
To make these skills available when working in a different project, add the skill path to your Codex configuration, or copy/symlink the `.agents/skills/` directory into your project root.
424+
To make these skills available when working in a different project without installing the plugin, add the skill path to your Codex configuration, or copy or symlink the `.agents/skills/` directory into your project root.
402425

403426
> **Note for Windows users:** Git symlink support must be enabled **before** checkout — otherwise git materialises symlinks as plain text files. Enable it at clone time:
404427
> ```bash

0 commit comments

Comments
 (0)