Skill Adopter
Adopt enterprise skills into a target project, wired for the specific AI agent(s) in use.
When to use
- Onboarding a new or existing project onto the enterprise skills catalog.
- Adding, switching, or updating AI agent configuration in a project.
- Refreshing stale agent configs that reference old paths or removed artifacts.
- Aligning a project with the current skills repository after structural changes.
Required flow
- Detect — Identify the project's tech stack and active AI agent(s).
- Select — Choose relevant skills from the enterprise catalog.
- Generate — Produce or update agent-native configuration files.
- Verify — Confirm the generated configs reference valid skill paths.
Step 1: Detect project context
Scan the target project root for:
Tech stack signals
| Signal |
Look for |
| Java / Maven |
pom.xml, module-info.java |
| GuicedEE |
com.guicedee in pom.xml or module-info.java |
| JWebMP |
com.jwebmp in pom.xml or module-info.java |
| EntityAssist |
com.entityassist in pom.xml or module-info.java |
| ActivityMaster |
activitymaster modules in pom.xml |
| Angular / TypeScript |
angular.json, tsconfig.json, package.json |
| Vert.x |
com.guicedee.vertx or io.vertx in dependencies |
| Terraform |
*.tf files, .terraform/ |
| Docker / K8s |
Dockerfile, docker-compose.yml, k8s/ |
| React / Vue / Next.js |
package.json framework deps |
AI agent signals
| Agent |
Config location |
| Codex CLI |
AGENTS.md |
| GitHub Copilot |
.github/copilot-instructions.md |
| Cursor |
.cursor/rules.md or .cursorrules |
| JetBrains Junie |
.junie/guidelines.md |
| JetBrains AI Assistant |
.aiassistant/rules/*.md |
| Claude (project skills) |
.claude/settings.json, .claude/skills/ |
| Roo |
.roo/rules or .roomodes |
If no agent config is found, ask the user which agent(s) they use.
Step 2: Select relevant skills
Use the enterprise skills catalog (skills.md at the repository root, or scan skills/.curated/ and skills/.system/ directories) to select skills.
Automatic selection by stack
| Detected stack |
Skills to include |
| Any project |
git-commit-helper, code-reviewer, systematic-debugging |
| GuicedEE |
All guicedee-* skills matching detected modules |
| JWebMP |
All jwebmp-* skills matching detected plugins |
| EntityAssist |
entityassist |
| ActivityMaster |
activitymaster, entityassist |
| Vert.x |
guicedee-vertx |
| Terraform |
All terraform-* skills |
| Frontend (Angular) |
jwebmp-angular (if JWebMP), figma |
| AG Grid |
aggrid, jwebmp-aggrid-enterprise (if JWebMP) |
| Security-sensitive |
security-best-practices, security-compliance |
| CI/CD (GitHub Actions) |
gh-fix-ci, gh-address-comments |
Interactive refinement
After automatic selection, present the list to the user:
Based on your project, I recommend these skills:
Always:
✓ git-commit-helper
✓ code-reviewer
✓ systematic-debugging
Stack-specific:
✓ guicedee-inject
✓ guicedee-vertx
✓ guicedee-persistence
✓ entityassist
✓ activitymaster
Optional:
○ senior-architect
○ test-driven-development
○ security-best-practices
Add or remove skills? (Enter to accept)
Step 3: Generate agent configuration
Generate the agent-native config files. See references/agent-config-formats.md for the complete format reference per agent.
Submodule path resolution
Determine the skills repository path relative to the project root:
- If the skills repo is a git submodule (e.g.,
rules/ or AIRules/), use that prefix.
- If skills are installed to
$CODEX_HOME/skills/, use ~/.codex/skills/ paths.
- If the skills repo is in the same workspace, use the relative path.
All skill references in generated configs must use resolved, valid relative paths.
Generation rules
- One config per agent — generate only for detected/requested agents.
- Skill references use SKILL.md paths — point to the
SKILL.md file, not the directory.
- Curated vs system — include both tiers when relevant; label them in the config.
- Keep configs idempotent — re-running the adopter on the same project updates existing configs without duplication.
- Preserve user customizations — if an agent config already exists, merge new skill references; do not overwrite custom rules or instructions.
Per-agent output summary
| Agent |
Output file(s) |
Format |
| Codex CLI |
AGENTS.md |
Markdown with skill paths and operating rules |
| GitHub Copilot |
.github/copilot-instructions.md |
Markdown instructions with skill references |
| Cursor |
.cursor/rules.md |
Markdown rules with skill paths |
| Junie |
.junie/guidelines.md |
Markdown guidelines with skill routing |
| AI Assistant |
.aiassistant/rules/*.md |
Numbered rule files with skill routing |
| Claude |
.claude/settings.json + skill symlinks |
JSON config + file references |
| Roo |
.roo/rules/*.md |
Markdown rule files |
Step 4: Verify
After generation, verify:
- Every referenced skill path resolves to an existing
SKILL.md file.
- No config references old/removed paths (e.g.,
.claude/skills/rules-repo-conventions/).
- The config file is syntactically valid for the agent.
- If a
skills.md exists in the project, it is consistent with the generated configs.
Report any unresolved paths as warnings.
Refresh mode
When called with "refresh" or "update" intent:
- Read existing agent config files.
- Extract currently referenced skill paths.
- Check each path against the current skills repository structure.
- Replace broken paths with correct current paths.
- Add newly relevant skills that were not previously included.
- Remove references to skills that no longer exist.
References
references/agent-config-formats.md — complete config format templates for each AI agent.
Source: GuicedEE/ai-rules — distributed by TomeVault.
1---2name: skill-adopter3description: Adopt and wire enterprise skills into a target project for the AI agent(s) in use. Scans a project to detect its tech stack and configured AI agents (Codex, Copilot, Cursor, Junie, AI Assistant, Claude, Roo), selects relevant skills from the enterprise skills repository, and generates or updates the agent-native configuration files (AGENTS.md, .github/copilot-instructions.md, .cursor/rules.md, .junie/guidelines.md, .aiassistant/rules/, .cursorrules, .roo/rules). Use when onboarding a project onto enterprise skills, switching AI agents, refreshing stale agent configs, or aligning a project's AI setup with the current skills catalog. Use when this capability is needed.4---56# Skill Adopter78Adopt enterprise skills into a target project, wired for the specific AI agent(s) in use.910## When to use1112- Onboarding a new or existing project onto the enterprise skills catalog.13- Adding, switching, or updating AI agent configuration in a project.14- Refreshing stale agent configs that reference old paths or removed artifacts.15- Aligning a project with the current skills repository after structural changes.1617## Required flow18191. **Detect** — Identify the project's tech stack and active AI agent(s).202. **Select** — Choose relevant skills from the enterprise catalog.213. **Generate** — Produce or update agent-native configuration files.224. **Verify** — Confirm the generated configs reference valid skill paths.2324## Step 1: Detect project context2526Scan the target project root for:2728### Tech stack signals2930| Signal | Look for |31|--------|----------|32| Java / Maven | `pom.xml`, `module-info.java` |33| GuicedEE | `com.guicedee` in `pom.xml` or `module-info.java` |34| JWebMP | `com.jwebmp` in `pom.xml` or `module-info.java` |35| EntityAssist | `com.entityassist` in `pom.xml` or `module-info.java` |36| ActivityMaster | `activitymaster` modules in `pom.xml` |37| Angular / TypeScript | `angular.json`, `tsconfig.json`, `package.json` |38| Vert.x | `com.guicedee.vertx` or `io.vertx` in dependencies |39| Terraform | `*.tf` files, `.terraform/` |40| Docker / K8s | `Dockerfile`, `docker-compose.yml`, `k8s/` |41| React / Vue / Next.js | `package.json` framework deps |4243### AI agent signals4445| Agent | Config location |46|-------|-----------------|47| Codex CLI | `AGENTS.md` |48| GitHub Copilot | `.github/copilot-instructions.md` |49| Cursor | `.cursor/rules.md` or `.cursorrules` |50| JetBrains Junie | `.junie/guidelines.md` |51| JetBrains AI Assistant | `.aiassistant/rules/*.md` |52| Claude (project skills) | `.claude/settings.json`, `.claude/skills/` |53| Roo | `.roo/rules` or `.roomodes` |5455If no agent config is found, ask the user which agent(s) they use.5657## Step 2: Select relevant skills5859Use the enterprise skills catalog (`skills.md` at the repository root, or scan `skills/.curated/` and `skills/.system/` directories) to select skills.6061### Automatic selection by stack6263| Detected stack | Skills to include |64|----------------|-------------------|65| Any project | `git-commit-helper`, `code-reviewer`, `systematic-debugging` |66| GuicedEE | All `guicedee-*` skills matching detected modules |67| JWebMP | All `jwebmp-*` skills matching detected plugins |68| EntityAssist | `entityassist` |69| ActivityMaster | `activitymaster`, `entityassist` |70| Vert.x | `guicedee-vertx` |71| Terraform | All `terraform-*` skills |72| Frontend (Angular) | `jwebmp-angular` (if JWebMP), `figma` |73| AG Grid | `aggrid`, `jwebmp-aggrid-enterprise` (if JWebMP) |74| Security-sensitive | `security-best-practices`, `security-compliance` |75| CI/CD (GitHub Actions) | `gh-fix-ci`, `gh-address-comments` |7677### Interactive refinement7879After automatic selection, present the list to the user:8081```82Based on your project, I recommend these skills:8384Always:85 ✓ git-commit-helper86 ✓ code-reviewer87 ✓ systematic-debugging8889Stack-specific:90 ✓ guicedee-inject91 ✓ guicedee-vertx92 ✓ guicedee-persistence93 ✓ entityassist94 ✓ activitymaster9596Optional:97 ○ senior-architect98 ○ test-driven-development99 ○ security-best-practices100101Add or remove skills? (Enter to accept)102```103104## Step 3: Generate agent configuration105106Generate the agent-native config files. See `references/agent-config-formats.md` for the complete format reference per agent.107108### Submodule path resolution109110Determine the skills repository path relative to the project root:111112- If the skills repo is a git submodule (e.g., `rules/` or `AIRules/`), use that prefix.113- If skills are installed to `$CODEX_HOME/skills/`, use `~/.codex/skills/` paths.114- If the skills repo is in the same workspace, use the relative path.115116All skill references in generated configs must use resolved, valid relative paths.117118### Generation rules1191201. **One config per agent** — generate only for detected/requested agents.1212. **Skill references use SKILL.md paths** — point to the `SKILL.md` file, not the directory.1223. **Curated vs system** — include both tiers when relevant; label them in the config.1234. **Keep configs idempotent** — re-running the adopter on the same project updates existing configs without duplication.1245. **Preserve user customizations** — if an agent config already exists, merge new skill references; do not overwrite custom rules or instructions.125126### Per-agent output summary127128| Agent | Output file(s) | Format |129|-------|----------------|--------|130| Codex CLI | `AGENTS.md` | Markdown with skill paths and operating rules |131| GitHub Copilot | `.github/copilot-instructions.md` | Markdown instructions with skill references |132| Cursor | `.cursor/rules.md` | Markdown rules with skill paths |133| Junie | `.junie/guidelines.md` | Markdown guidelines with skill routing |134| AI Assistant | `.aiassistant/rules/*.md` | Numbered rule files with skill routing |135| Claude | `.claude/settings.json` + skill symlinks | JSON config + file references |136| Roo | `.roo/rules/*.md` | Markdown rule files |137138## Step 4: Verify139140After generation, verify:1411421. Every referenced skill path resolves to an existing `SKILL.md` file.1432. No config references old/removed paths (e.g., `.claude/skills/rules-repo-conventions/`).1443. The config file is syntactically valid for the agent.1454. If a `skills.md` exists in the project, it is consistent with the generated configs.146147Report any unresolved paths as warnings.148149## Refresh mode150151When called with "refresh" or "update" intent:1521531. Read existing agent config files.1542. Extract currently referenced skill paths.1553. Check each path against the current skills repository structure.1564. Replace broken paths with correct current paths.1575. Add newly relevant skills that were not previously included.1586. Remove references to skills that no longer exist.159160## References161162- `references/agent-config-formats.md` — complete config format templates for each AI agent.163164---165> Source: [GuicedEE/ai-rules](https://github.com/GuicedEE/ai-rules) — distributed by [TomeVault](https://tomevault.io).166<!-- tomevault:4.0:skill_md:2026-05-23 -->