Repository navigation
fix(skills): deploy team-wiki-codebase on init, decouple from recall - #358
Merged
jeff-r2026 merged 1 commit intoAug 28, 2026
Merged
Conversation
team-wiki-codebase failed to reach IDE skill dirs on fresh installs, breaking the import AI-enrich flow. Two root causes: 1. It was gated behind RECALL_DEPENDENT_SKILLS, so with recall disabled (the default) it was silently skipped — but it is a knowledge-base generator that does not depend on recall. Removed it from the set; only teamai-share-learnings remains. 2. `teamai init` never deployed built-in skills at all (only `pull` did), so users had nothing in the IDE right after init. Added Step 7.5 to deploy built-in skills immediately, mirroring pull's proven path. Tests: real-fs regression covering skipRecall deployment, and an init call-site test. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Walternater
pushed a commit
to Walternater/teamai-cli
that referenced
this pull request
Nov 2, 2026
…encent#358) team-wiki-codebase failed to reach IDE skill dirs on fresh installs, breaking the import AI-enrich flow. Two root causes: 1. It was gated behind RECALL_DEPENDENT_SKILLS, so with recall disabled (the default) it was silently skipped — but it is a knowledge-base generator that does not depend on recall. Removed it from the set; only teamai-share-learnings remains. 2. `teamai init` never deployed built-in skills at all (only `pull` did), so users had nothing in the IDE right after init. Added Step 7.5 to deploy built-in skills immediately, mirroring pull's proven path. Tests: real-fs regression covering skipRecall deployment, and an init call-site test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On fresh installs,
team-wiki-codebasenever reached the IDE skill directories, so theimportAI-enrich flow was unavailable. Two independent root causes:Silently gated behind recall.
team-wiki-codebasewas listed inRECALL_DEPENDENT_SKILLS, so when recall was disabled (the default) it was silently skipped during deployment. But it is a knowledge-base generator and does not depend on recall at runtime — recall only consumes the knowledge base it produces. Removed it from the set; onlyteamai-share-learnings(which contributes learnings back to the team repo) legitimately remains.teamai initnever deployed built-in skills. Built-in skills were only deployed byteamai pull, never byinit. So right afterinitthe user had nothing in the IDE until the first pull. Added a Step 7.5 toinitthat deploys built-in skills immediately, mirroring pull's proven deployment path (dynamic import +isRecallEnabled-derivedskipRecall+ fault-tolerant try/catch).Net effect: after
teamai init,team-wiki-codebaseis present in every installed IDE's skill dir regardless of recall state, so the/team-wiki-codebaseskill and its AI-enrich phase work out of the box.Changes
src/builtin-skills.ts— removeteam-wiki-codebasefromRECALL_DEPENDENT_SKILLS; document why onlyteamai-share-learningsbelongs there.src/init.ts— deploy built-in skills at end ofinit(Step 7.5); add a success line noting skills are ready.src/__tests__/skip-uninstalled-tools.test.ts— real-filesystem regression: withskipRecall: true,team-wiki-codebase(incl. its AI-enrichphase3file) still deploys whileteamai-share-learningsis correctly skipped.src/__tests__/init.test.ts— verifyinitcallsdeployBuiltinSkillswith a booleanskipRecallwhen a team config is present.Test Plan
npx tsc --noEmit— passesnpx vitest run— full suite passes (2325 tests)npm run build— succeedsteam-wiki-codebase+ its AI-enrichphase3-ai-enhancement.mdland on disk underskipRecall: true(real fs)deployBuiltinSkillsis invoked frominitteamai initend-to-end deployment — blocked locally by GitHub/ghauth in an isolated$HOME; covered by the CI-gated init e2e (TEAMAI_TEST_TOKEN+ GitHub provider) instead.🤖 Generated with Claude Code