symfonia-ai-tools 1.5.0 → 1.7.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/base/_github/copilot-instructions.md +14 -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
|
@@ -1 +1,15 @@
|
|
|
1
1
|
Read and follow .ai/guidelines.md as mandatory context for all work in this project.
|
|
2
|
+
|
|
3
|
+
## Skills
|
|
4
|
+
|
|
5
|
+
This project has workflow skills in `.github/skills/`. Each subdirectory contains a `SKILL.md` with a complete workflow.
|
|
6
|
+
|
|
7
|
+
**Before starting any task**, scan `.github/skills/` for a matching skill. If the user's request matches a skill's trigger or description, follow that skill's workflow step by step.
|
|
8
|
+
|
|
9
|
+
**How to use skills:**
|
|
10
|
+
1. List available skills: read directory names in `.github/skills/`
|
|
11
|
+
2. Check if user's request matches a skill name or its YAML frontmatter `description`
|
|
12
|
+
3. If match found — read the full `SKILL.md` and follow its steps
|
|
13
|
+
4. If user explicitly asks for a skill by name (e.g. "use smf-debug") — always load and follow it
|
|
14
|
+
|
|
15
|
+
**Proactive skill suggestions:** When you recognize a task that matches an available skill, suggest it to the user before proceeding manually.
|