Skip to content

fix(skills): deploy team-wiki-codebase on init, decouple from recall - #358

Merged
jeff-r2026 merged 1 commit into
Tencent:mainfrom
m0Nst3r873:fix/team-wiki-skill-recall-decouple
Aug 28, 2026
Merged

jeff-r2026 merged 1 commit into
Tencent:mainfrom
m0Nst3r873:fix/team-wiki-skill-recall-decouple

Conversation

@m0Nst3r873

Copy link
Copy Markdown
Collaborator

Summary

On fresh installs, team-wiki-codebase never reached the IDE skill directories, so the import AI-enrich flow was unavailable. Two independent root causes:

  1. Silently gated behind recall. team-wiki-codebase was listed in RECALL_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; only teamai-share-learnings (which contributes learnings back to the team repo) legitimately remains.

  2. teamai init never deployed built-in skills. Built-in skills were only deployed by teamai pull, never by init. So right after init the user had nothing in the IDE until the first pull. Added a Step 7.5 to init that deploys built-in skills immediately, mirroring pull's proven deployment path (dynamic import + isRecallEnabled-derived skipRecall + fault-tolerant try/catch).

Net effect: after teamai init, team-wiki-codebase is present in every installed IDE's skill dir regardless of recall state, so the /team-wiki-codebase skill and its AI-enrich phase work out of the box.

Changes

  • src/builtin-skills.ts — remove team-wiki-codebase from RECALL_DEPENDENT_SKILLS; document why only teamai-share-learnings belongs there.
  • src/init.ts — deploy built-in skills at end of init (Step 7.5); add a success line noting skills are ready.
  • src/__tests__/skip-uninstalled-tools.test.ts — real-filesystem regression: with skipRecall: true, team-wiki-codebase (incl. its AI-enrich phase3 file) still deploys while teamai-share-learnings is correctly skipped.
  • src/__tests__/init.test.ts — verify init calls deployBuiltinSkills with a boolean skipRecall when a team config is present.

Test Plan

  • npx tsc --noEmit — passes
  • npx vitest run — full suite passes (2325 tests)
  • npm run build — succeeds
  • Regression test proves team-wiki-codebase + its AI-enrich phase3-ai-enhancement.md land on disk under skipRecall: true (real fs)
  • Init call-site test proves deployBuiltinSkills is invoked from init
  • Full real-CLI teamai init end-to-end deployment — blocked locally by GitHub/gh auth in an isolated $HOME; covered by the CI-gated init e2e (TEAMAI_TEST_TOKEN + GitHub provider) instead.

🤖 Generated with Claude Code

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]>
@jeff-r2026
jeff-r2026 merged commit 7998d99 into Tencent:main Aug 28, 2026
7 checks passed
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants