Skip to content

Commit 23e3c68

Browse files
authored
Merge pull request #2 from useorgx/feat/bootstrap-claude-plugin
feat(plugin): add capability flywheel for task-specific policies
2 parents 13aeeba + af82b6a commit 23e3c68

16 files changed

Lines changed: 1725 additions & 5 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ artifacts/
55
*.log
66
.claude/orgx.local.json
77
.claude/orgx-skill-pack-state.json
8+
.claude/orgx-capability-cache.json
89
.claude/orgx-skills/

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Claude Code plugin package for OrgX:
66
- Browser pairing login (`/orgx-login`) with macOS keychain storage
77
- Session env hydration from keychain (`hooks/scripts/load-orgx-env.mjs`)
88
- Skill-pack sync from OrgX to local `SKILL.md` files (`/orgx-sync-skills`)
9+
- Agent-pack sync from OrgX to Claude subagent profiles (`/orgx-sync-agents`)
910
- Full dispatch/autopilot orchestration (`scripts/run-claude-dispatch-job.mjs`)
1011
- Project commands, agent profile, and skill guidance
1112
- CI and architecture ADR for migration planning
@@ -51,8 +52,9 @@ skills/**/SKILL.md # Reusable guidance
5152
2. Complete browser auth; key is stored in macOS keychain.
5253
3. SessionStart hook loads key into `CLAUDE_ENV_FILE`.
5354
4. Run `/orgx-sync-skills` to pull OrgX skill pack locally.
54-
5. Run `/orgx-autopilot-start` to dispatch initiative tasks.
55-
6. Run `/orgx-autopilot-resume` to resume from the latest state file.
55+
5. Run `/orgx-sync-agents` to refresh OrgX Claude agent profiles.
56+
6. Run `/orgx-autopilot-start` to dispatch initiative tasks.
57+
7. Run `/orgx-autopilot-resume` to resume from the latest state file.
5658

5759
## Local Development
5860

commands/orgx-sync-agents.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
description: Pull OrgX agent pack and materialize Claude agent profiles in this plugin.
3+
allowed-tools: Bash,Read,Write
4+
argument-hint: [skill_pack_name]
5+
---
6+
7+
Sync agent profiles from OrgX:
8+
9+
!`node ${CLAUDE_PLUGIN_ROOT}/scripts/orgx-sync-agents.mjs --project_dir="${CLAUDE_PROJECT_DIR:-$PWD}" --plugin_dir="${CLAUDE_PLUGIN_ROOT}" --skill_pack_name="${1:-orgx-agent-suite}"`
10+
11+
Then summarize:
12+
- agent count synced
13+
- agents directory path
14+
- whether pack was unchanged (ETag 304)

hooks/hooks.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
"type": "command",
1313
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/orgx-sync-skills.mjs --project_dir=\"${CLAUDE_PROJECT_DIR:-$PWD}\" --best_effort=true --quiet=true"
1414
},
15+
{
16+
"type": "command",
17+
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/orgx-sync-agents.mjs --project_dir=\"${CLAUDE_PROJECT_DIR:-$PWD}\" --plugin_dir=\"${CLAUDE_PLUGIN_ROOT}\" --best_effort=true --quiet=true"
18+
},
1519
{
1620
"type": "command",
1721
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/post-reporting-event.mjs --event=session_start --source_client=claude-code --phase=intent --message=\"Claude session started\""

0 commit comments

Comments
 (0)