symfonia-ai-tools 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/installer.mjs +23 -6
- package/package.json +1 -1
- package/templates/base/_ai/skills/smf-aws-analysis/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-babysit-prs/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-debug/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-figma-analysis/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-fill-worklogs/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-grafana-logs/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-hotfix/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-jira-explorer/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-jira-task/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-my-prs/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-pr-dashboard/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-pr-prepare/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-refactor/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-write-tests/SKILL.md +5 -0
- package/templates/base/_ai/skills/smf-wtf/SKILL.md +5 -0
- package/templates/packs/laravel/_ai/skills/smf-migration/SKILL.md +5 -0
- package/templates/packs/laravel/_ai/skills/smf-new-endpoint/SKILL.md +5 -0
- package/templates/packs/laravel/_ai/skills/smf-new-module/SKILL.md +5 -0
- package/templates/packs/laravel/_ai/skills/smf-queued-job/SKILL.md +5 -0
- package/templates/packs/laravel/_ai/skills/smf-testing-feature/SKILL.md +5 -0
- package/templates/packs/laravel/_ai/skills/smf-testing-manual/SKILL.md +5 -0
- package/templates/packs/laravel/_ai/skills/smf-testing-unit/SKILL.md +5 -0
- package/templates/packs/vue3/_ai/skills/smf-api-integration/SKILL.md +5 -0
- package/templates/packs/vue3/_ai/skills/smf-new-component/SKILL.md +5 -0
- package/templates/packs/vue3/_ai/skills/smf-new-module/SKILL.md +5 -0
package/lib/installer.mjs
CHANGED
|
@@ -149,12 +149,20 @@ export async function install(packageRoot, answers) {
|
|
|
149
149
|
step(++currentStep, totalSteps, `${t('i.step.guidelines')} ${cyan('guidelines.md')}`);
|
|
150
150
|
await assembleGuidelines(templatesDir, targetDir, answers, selectedPacks, allPacks, mode);
|
|
151
151
|
|
|
152
|
-
// 4. Mirror .ai/ → .github/
|
|
153
|
-
if (answers.toolCopilot) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
152
|
+
// 4. Mirror .ai/ → .github/ and .ai/skills/ → .claude/skills/
|
|
153
|
+
if (answers.toolCopilot || answers.toolClaude) {
|
|
154
|
+
const targets = [];
|
|
155
|
+
if (answers.toolCopilot) targets.push('.github/');
|
|
156
|
+
if (answers.toolClaude) targets.push('.claude/skills/');
|
|
157
|
+
step(++currentStep, totalSteps, `${t('i.step.mirror')} ${cyan('.ai/')} → ${targets.map(p => cyan(p)).join(', ')}`);
|
|
158
|
+
if (answers.toolCopilot) {
|
|
159
|
+
await mirrorAiToGithub(targetDir, 'instructions', mode);
|
|
160
|
+
await mirrorAiToGithub(targetDir, 'prompts', mode);
|
|
161
|
+
await mirrorAiToGithub(targetDir, 'skills', mode);
|
|
162
|
+
}
|
|
163
|
+
if (answers.toolClaude) {
|
|
164
|
+
await mirrorAiToClaude(targetDir, 'skills', mode);
|
|
165
|
+
}
|
|
158
166
|
} else {
|
|
159
167
|
++currentStep;
|
|
160
168
|
}
|
|
@@ -315,6 +323,15 @@ async function mirrorAiToGithub(targetDir, subdir, mode) {
|
|
|
315
323
|
);
|
|
316
324
|
}
|
|
317
325
|
|
|
326
|
+
async function mirrorAiToClaude(targetDir, subdir, mode) {
|
|
327
|
+
await mirrorDir(
|
|
328
|
+
join(targetDir, '.ai', subdir),
|
|
329
|
+
join(targetDir, '.claude', subdir),
|
|
330
|
+
targetDir,
|
|
331
|
+
mode,
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
|
|
318
335
|
// ─── Placeholders ───
|
|
319
336
|
|
|
320
337
|
function replacePlaceholders(content, a) {
|
package/package.json
CHANGED