@atlashub/smartstack-cli 1.1.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/.documentation/agents.html +912 -0
- package/.documentation/apex.html +1014 -0
- package/.documentation/business-analyse.html +1074 -0
- package/.documentation/commands.html +676 -0
- package/.documentation/css/styles.css +2030 -0
- package/.documentation/efcore.html +2501 -0
- package/.documentation/gitflow.html +2053 -0
- package/.documentation/hooks.html +409 -0
- package/.documentation/index.html +319 -0
- package/.documentation/installation.html +458 -0
- package/.documentation/js/app.js +794 -0
- package/.documentation/test-web.html +509 -0
- package/README.md +90 -0
- package/config/default-config.json +86 -0
- package/config/settings.json +53 -0
- package/config/settings.local.example.json +16 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +38198 -0
- package/dist/index.js.map +1 -0
- package/package.json +86 -0
- package/templates/agents/action.md +36 -0
- package/templates/agents/efcore/conflicts.md +57 -0
- package/templates/agents/efcore/db-deploy.md +51 -0
- package/templates/agents/efcore/db-reset.md +59 -0
- package/templates/agents/efcore/db-seed.md +56 -0
- package/templates/agents/efcore/db-status.md +43 -0
- package/templates/agents/efcore/migration.md +85 -0
- package/templates/agents/efcore/rebase-snapshot.md +62 -0
- package/templates/agents/efcore/scan.md +60 -0
- package/templates/agents/efcore/squash.md +67 -0
- package/templates/agents/explore-codebase.md +65 -0
- package/templates/agents/explore-docs.md +97 -0
- package/templates/agents/fix-grammar.md +49 -0
- package/templates/agents/gitflow/abort.md +45 -0
- package/templates/agents/gitflow/cleanup.md +85 -0
- package/templates/agents/gitflow/commit.md +40 -0
- package/templates/agents/gitflow/exec.md +48 -0
- package/templates/agents/gitflow/finish.md +92 -0
- package/templates/agents/gitflow/init.md +139 -0
- package/templates/agents/gitflow/merge.md +62 -0
- package/templates/agents/gitflow/plan.md +42 -0
- package/templates/agents/gitflow/pr.md +78 -0
- package/templates/agents/gitflow/review.md +49 -0
- package/templates/agents/gitflow/start.md +61 -0
- package/templates/agents/gitflow/status.md +32 -0
- package/templates/agents/snipper.md +36 -0
- package/templates/agents/websearch.md +46 -0
- package/templates/commands/_resources/formatting-guide.md +124 -0
- package/templates/commands/ai-prompt.md +315 -0
- package/templates/commands/apex/1-analyze.md +100 -0
- package/templates/commands/apex/2-plan.md +145 -0
- package/templates/commands/apex/3-execute.md +171 -0
- package/templates/commands/apex/4-examine.md +116 -0
- package/templates/commands/apex/5-tasks.md +209 -0
- package/templates/commands/apex.md +76 -0
- package/templates/commands/application/create.md +362 -0
- package/templates/commands/application/templates-backend.md +463 -0
- package/templates/commands/application/templates-frontend.md +517 -0
- package/templates/commands/application/templates-i18n.md +478 -0
- package/templates/commands/application/templates-seed.md +362 -0
- package/templates/commands/application.md +303 -0
- package/templates/commands/business-analyse/1-init.md +269 -0
- package/templates/commands/business-analyse/2-discover.md +520 -0
- package/templates/commands/business-analyse/3-analyse.md +408 -0
- package/templates/commands/business-analyse/4-specify.md +598 -0
- package/templates/commands/business-analyse/5-validate.md +326 -0
- package/templates/commands/business-analyse/6-handoff.md +746 -0
- package/templates/commands/business-analyse/7-doc-html.md +602 -0
- package/templates/commands/business-analyse/bug.md +325 -0
- package/templates/commands/business-analyse/change-request.md +368 -0
- package/templates/commands/business-analyse/hotfix.md +200 -0
- package/templates/commands/business-analyse.md +559 -0
- package/templates/commands/controller/create.md +216 -0
- package/templates/commands/controller/postman-templates.md +528 -0
- package/templates/commands/controller/templates.md +600 -0
- package/templates/commands/controller.md +278 -0
- package/templates/commands/debug.md +95 -0
- package/templates/commands/documentation/module.md +202 -0
- package/templates/commands/documentation/templates.md +432 -0
- package/templates/commands/documentation.md +190 -0
- package/templates/commands/efcore/_env-check.md +153 -0
- package/templates/commands/efcore/conflicts.md +269 -0
- package/templates/commands/efcore/db-deploy.md +193 -0
- package/templates/commands/efcore/db-reset.md +426 -0
- package/templates/commands/efcore/db-seed.md +326 -0
- package/templates/commands/efcore/db-status.md +214 -0
- package/templates/commands/efcore/migration.md +388 -0
- package/templates/commands/efcore/rebase-snapshot.md +264 -0
- package/templates/commands/efcore/scan.md +202 -0
- package/templates/commands/efcore/squash.md +298 -0
- package/templates/commands/efcore.md +176 -0
- package/templates/commands/epct.md +69 -0
- package/templates/commands/explain.md +186 -0
- package/templates/commands/explore.md +45 -0
- package/templates/commands/feature-full.md +267 -0
- package/templates/commands/gitflow/1-init.md +1038 -0
- package/templates/commands/gitflow/10-start.md +768 -0
- package/templates/commands/gitflow/11-finish.md +323 -0
- package/templates/commands/gitflow/12-cleanup.md +276 -0
- package/templates/commands/gitflow/13-sync.md +216 -0
- package/templates/commands/gitflow/14-rebase.md +251 -0
- package/templates/commands/gitflow/2-status.md +167 -0
- package/templates/commands/gitflow/3-commit.md +194 -0
- package/templates/commands/gitflow/4-plan.md +145 -0
- package/templates/commands/gitflow/5-exec.md +147 -0
- package/templates/commands/gitflow/6-abort.md +344 -0
- package/templates/commands/gitflow/7-pull-request.md +226 -0
- package/templates/commands/gitflow/8-review.md +176 -0
- package/templates/commands/gitflow/9-merge.md +224 -0
- package/templates/commands/gitflow.md +128 -0
- package/templates/commands/implement.md +663 -0
- package/templates/commands/notification.md +129 -0
- package/templates/commands/oneshot.md +57 -0
- package/templates/commands/quick-search.md +72 -0
- package/templates/commands/review.md +106 -0
- package/templates/commands/utils/test-web-config.md +160 -0
- package/templates/commands/utils/test-web.md +151 -0
- package/templates/commands/workflow.md +193 -0
- package/templates/gitflow/config.json +138 -0
- package/templates/hooks/ef-migration-check.md +139 -0
- package/templates/hooks/hooks.json +15 -0
- package/templates/skills/ai-prompt/SKILL.md +778 -0
- package/templates/skills/application/SKILL.md +563 -0
- package/templates/skills/application/templates-backend.md +450 -0
- package/templates/skills/application/templates-frontend.md +531 -0
- package/templates/skills/application/templates-i18n.md +520 -0
- package/templates/skills/application/templates-seed.md +647 -0
- package/templates/skills/business-analyse/SKILL.md +191 -0
- package/templates/skills/business-analyse/questionnaire.md +283 -0
- package/templates/skills/business-analyse/templates-frd.md +477 -0
- package/templates/skills/business-analyse/templates-react.md +580 -0
- package/templates/skills/controller/SKILL.md +240 -0
- package/templates/skills/controller/postman-templates.md +614 -0
- package/templates/skills/controller/templates.md +1468 -0
- package/templates/skills/documentation/SKILL.md +133 -0
- package/templates/skills/documentation/templates.md +476 -0
- package/templates/skills/feature-full/SKILL.md +838 -0
- package/templates/skills/notification/SKILL.md +555 -0
- package/templates/skills/ui-components/SKILL.md +870 -0
- package/templates/skills/workflow/SKILL.md +582 -0
- package/templates/test-web/api-health.json +38 -0
- package/templates/test-web/minimal.json +19 -0
- package/templates/test-web/npm-package.json +46 -0
- package/templates/test-web/seo-check.json +54 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gitflow-merge
|
|
3
|
+
description: GitFlow merge execution - safe branch merge with validation
|
|
4
|
+
color: red
|
|
5
|
+
model: sonnet
|
|
6
|
+
tools: Bash, Read, Glob, Grep, Edit
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# GitFlow Merge Agent
|
|
10
|
+
|
|
11
|
+
Merge securise avec validation complete.
|
|
12
|
+
|
|
13
|
+
## Workflow
|
|
14
|
+
|
|
15
|
+
1. **Verifier**: PR approved, checks pass
|
|
16
|
+
2. **Sync**: Fetch + rebase si necessaire
|
|
17
|
+
3. **Merge**: Selon strategie configuree
|
|
18
|
+
4. **Tag**: Si release/hotfix
|
|
19
|
+
5. **Cleanup**: Supprimer branche si configure
|
|
20
|
+
|
|
21
|
+
## Strategies
|
|
22
|
+
|
|
23
|
+
| Type | Strategie |
|
|
24
|
+
|------|-----------|
|
|
25
|
+
| Feature | Squash ou merge --no-ff |
|
|
26
|
+
| Release | Merge --no-ff + tag + merge to develop |
|
|
27
|
+
| Hotfix | Merge --no-ff + tag + cherry-pick to develop |
|
|
28
|
+
|
|
29
|
+
## Validation Pre-Merge
|
|
30
|
+
|
|
31
|
+
- PR approved
|
|
32
|
+
- Checks pass (CI)
|
|
33
|
+
- No conflicts
|
|
34
|
+
- Version bumped (release/hotfix)
|
|
35
|
+
|
|
36
|
+
## Commandes
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# Merge avec strategie
|
|
40
|
+
git merge --no-ff {branch} -m "Merge {type}/{name}"
|
|
41
|
+
|
|
42
|
+
# Tag release
|
|
43
|
+
git tag -a v{version} -m "Release {version}"
|
|
44
|
+
|
|
45
|
+
# Push
|
|
46
|
+
git push origin {target} --tags
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Output Format
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
MERGE COMPLETE
|
|
53
|
+
Source: {branch}
|
|
54
|
+
Target: {target}
|
|
55
|
+
Strategy: {merge|squash}
|
|
56
|
+
Tag: {version|none}
|
|
57
|
+
Deleted: {branch|kept}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Priority
|
|
61
|
+
|
|
62
|
+
Safety > Correctness > Speed. Jamais merger si checks fail.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gitflow-plan
|
|
3
|
+
description: GitFlow integration planning with EF Core conflict analysis
|
|
4
|
+
color: yellow
|
|
5
|
+
model: sonnet
|
|
6
|
+
tools: Bash, Read, Glob, Grep, Write
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# GitFlow Plan Agent
|
|
10
|
+
|
|
11
|
+
Expert GitFlow et EF Core. Planification integration branche .NET.
|
|
12
|
+
|
|
13
|
+
## Workflow
|
|
14
|
+
|
|
15
|
+
1. **Contexte**: Branche source/cible, commits, fichiers modifies
|
|
16
|
+
2. **Version**: Lire actuelle, calculer nouvelle selon type branche
|
|
17
|
+
3. **EF Core**: Analyser conflits ModelSnapshot potentiels
|
|
18
|
+
4. **Strategie**: Determiner approche (rebase, merge, remove+readd)
|
|
19
|
+
5. **Plan**: Generer fichier dans `.claude/gitflow/plans/`
|
|
20
|
+
|
|
21
|
+
## Strategies
|
|
22
|
+
|
|
23
|
+
| Type | Condition | Action |
|
|
24
|
+
|------|-----------|--------|
|
|
25
|
+
| Feature | Sans conflit | Rebase + Merge --no-ff |
|
|
26
|
+
| Feature | Conflit ModelSnapshot | Remove migration + Rebase + Re-add |
|
|
27
|
+
| Release | Standard | Tag + Double merge (main + develop) |
|
|
28
|
+
| Hotfix | Urgent | Prefix `Hotfix_` + Script SQL |
|
|
29
|
+
|
|
30
|
+
## Version Auto-increment
|
|
31
|
+
|
|
32
|
+
- Feature -> develop: minor (1.2.0 -> 1.3.0)
|
|
33
|
+
- Hotfix -> main: patch (1.2.0 -> 1.2.1)
|
|
34
|
+
- Release: confirmation utilisateur
|
|
35
|
+
|
|
36
|
+
## Output
|
|
37
|
+
|
|
38
|
+
Fichier `.claude/gitflow/plans/{type}-{nom}_{date}.md`
|
|
39
|
+
|
|
40
|
+
## Priority
|
|
41
|
+
|
|
42
|
+
Safety > Speed. Analyser tous les risques avant execution.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gitflow-pr
|
|
3
|
+
description: GitFlow pull request creation - fast PR with auto-description
|
|
4
|
+
color: purple
|
|
5
|
+
model: haiku
|
|
6
|
+
tools: Bash, Glob
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# GitFlow Pull Request Agent
|
|
10
|
+
|
|
11
|
+
Creation rapide de PR avec description auto-generee et detection automatique de la cible.
|
|
12
|
+
|
|
13
|
+
## Workflow
|
|
14
|
+
|
|
15
|
+
1. **Detecter**: Type de branche et cible automatique
|
|
16
|
+
2. **Analyser**: Commits depuis branche base
|
|
17
|
+
3. **Generer**: Titre et description
|
|
18
|
+
4. **Creer**: `gh pr create`
|
|
19
|
+
5. **Retourner**: URL de la PR
|
|
20
|
+
|
|
21
|
+
## Detection Cible (GitFlow Standard)
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
CURRENT=$(git rev-parse --abbrev-ref HEAD)
|
|
25
|
+
|
|
26
|
+
# Detection automatique selon le type de branche
|
|
27
|
+
if [[ "$CURRENT" == hotfix/* ]]; then
|
|
28
|
+
TARGET="main" # Hotfix → main
|
|
29
|
+
elif [[ "$CURRENT" == release/* ]]; then
|
|
30
|
+
TARGET="main" # Release → main
|
|
31
|
+
else
|
|
32
|
+
TARGET="develop" # Feature → develop
|
|
33
|
+
fi
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
| Type | Cible | Raison |
|
|
37
|
+
|------|-------|--------|
|
|
38
|
+
| `feature/*` | develop | Integration continue |
|
|
39
|
+
| `release/*` | main | Deploiement production |
|
|
40
|
+
| `hotfix/*` | main | Correction urgente production |
|
|
41
|
+
|
|
42
|
+
## Commandes
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Commits a inclure
|
|
46
|
+
git log origin/{TARGET}..HEAD --oneline
|
|
47
|
+
|
|
48
|
+
# Creer PR vers la cible detectee
|
|
49
|
+
gh pr create --base $TARGET --title "{title}" --body "{body}"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Output Format
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
PR CREATED
|
|
56
|
+
Branch: {branch} -> {base}
|
|
57
|
+
Commits: {n}
|
|
58
|
+
URL: {url}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Template Description
|
|
62
|
+
|
|
63
|
+
```markdown
|
|
64
|
+
## Summary
|
|
65
|
+
{liste des commits}
|
|
66
|
+
|
|
67
|
+
## Type
|
|
68
|
+
{feature|hotfix|release}
|
|
69
|
+
|
|
70
|
+
## Checklist
|
|
71
|
+
- [ ] Tests pass
|
|
72
|
+
- [ ] Build OK
|
|
73
|
+
- [ ] Migrations valid (si applicable)
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Priority
|
|
77
|
+
|
|
78
|
+
Speed > Detail. PR fonctionnelle rapidement.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gitflow-review
|
|
3
|
+
description: GitFlow review checklist - fast PR review validation
|
|
4
|
+
color: cyan
|
|
5
|
+
model: haiku
|
|
6
|
+
tools: Bash, Glob, Read
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# GitFlow Review Agent
|
|
10
|
+
|
|
11
|
+
Checklist rapide de review avant merge.
|
|
12
|
+
|
|
13
|
+
## Workflow
|
|
14
|
+
|
|
15
|
+
1. **Lister**: Fichiers modifies
|
|
16
|
+
2. **Verifier**: Build, tests, migrations
|
|
17
|
+
3. **Afficher**: Checklist de validation
|
|
18
|
+
4. **Recommander**: Approve ou Request changes
|
|
19
|
+
|
|
20
|
+
## Checklist
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
REVIEW CHECKLIST
|
|
24
|
+
────────────────────────────────────────
|
|
25
|
+
[ ] Build: {pass|fail}
|
|
26
|
+
[ ] Tests: {pass|fail|none}
|
|
27
|
+
[ ] Migrations: {valid|invalid|none}
|
|
28
|
+
[ ] Conflicts: {none|detected}
|
|
29
|
+
[ ] Version: {bumped|not needed}
|
|
30
|
+
────────────────────────────────────────
|
|
31
|
+
RECOMMENDATION: {APPROVE|CHANGES NEEDED}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Commandes
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Build
|
|
38
|
+
dotnet build --no-restore
|
|
39
|
+
|
|
40
|
+
# Tests
|
|
41
|
+
dotnet test --no-build
|
|
42
|
+
|
|
43
|
+
# Migrations valides
|
|
44
|
+
dotnet ef migrations list --no-build
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Priority
|
|
48
|
+
|
|
49
|
+
Speed > Detail. Checklist essentielle seulement.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gitflow-start
|
|
3
|
+
description: GitFlow start - create feature/release/hotfix branch with worktree
|
|
4
|
+
color: green
|
|
5
|
+
model: haiku
|
|
6
|
+
tools: Bash, Read, Glob, Write
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# GitFlow Start Agent
|
|
10
|
+
|
|
11
|
+
Creation rapide de branche GitFlow avec worktree.
|
|
12
|
+
|
|
13
|
+
## Workflow
|
|
14
|
+
|
|
15
|
+
1. **Analyser**: Contexte (branche, version, ahead/behind)
|
|
16
|
+
2. **Choisir**: Type (feature/release/hotfix)
|
|
17
|
+
3. **Creer**: Worktree ou checkout
|
|
18
|
+
4. **Configurer**: appsettings.Local.json si .NET
|
|
19
|
+
5. **Verifier ports**: Detecter conflits entre projets
|
|
20
|
+
6. **Resume**: Prochaines etapes
|
|
21
|
+
|
|
22
|
+
## Commandes
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# Worktree (defaut) - Structure organisee par type
|
|
26
|
+
WORKTREE_BASE="../worktrees"
|
|
27
|
+
mkdir -p "${WORKTREE_BASE}/${TYPE}s"
|
|
28
|
+
WORKTREE_PATH="${WORKTREE_BASE}/${TYPE}s/${NAME}"
|
|
29
|
+
|
|
30
|
+
git worktree add -b {type}/{name} "$WORKTREE_PATH" origin/{base}
|
|
31
|
+
|
|
32
|
+
# Checkout (--no-worktree)
|
|
33
|
+
git checkout -b {type}/{name} origin/{base}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Detection Projet .NET
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# Si appsettings.json existe
|
|
40
|
+
find . -name "appsettings.json" -not -path "*/bin/*"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Output Format
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
BRANCH CREATED
|
|
47
|
+
Type: {feature|release|hotfix}
|
|
48
|
+
Name: {branch}
|
|
49
|
+
Base: {develop|main}
|
|
50
|
+
Worktree: ../worktrees/{type}s/{name}
|
|
51
|
+
Config: {appsettings.Local.json created|skipped}
|
|
52
|
+
Ports: {✓ OK|⚠️ Conflicts resolved|⚠️ Conflicts ignored}
|
|
53
|
+
|
|
54
|
+
NEXT STEPS:
|
|
55
|
+
cd ../worktrees/{type}s/{name}
|
|
56
|
+
/efcore:db-deploy
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Priority
|
|
60
|
+
|
|
61
|
+
Speed > Detail. Branche prete rapidement.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gitflow-status
|
|
3
|
+
description: GitFlow status check - fast repository state analysis
|
|
4
|
+
color: cyan
|
|
5
|
+
model: haiku
|
|
6
|
+
tools: Bash, Read, Glob
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# GitFlow Status Agent
|
|
10
|
+
|
|
11
|
+
Expert GitFlow. Analyse rapide de l'etat du repository .NET.
|
|
12
|
+
|
|
13
|
+
## Workflow
|
|
14
|
+
|
|
15
|
+
1. **Git**: Branche, commits ahead/behind, fichiers modifies
|
|
16
|
+
2. **Version**: Lire depuis source configuree (csproj, VERSION, git-tag)
|
|
17
|
+
3. **EF Core**: Detecter migrations pending
|
|
18
|
+
4. **Output**: Resume compact
|
|
19
|
+
|
|
20
|
+
## Output Format
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
BRANCH: {branch} ({type})
|
|
24
|
+
STATUS: {clean|dirty} | {n} ahead | {n} behind
|
|
25
|
+
VERSION: {version} (source: {file})
|
|
26
|
+
MIGRATIONS: {n} pending | {n} total
|
|
27
|
+
NEXT: {action recommandee}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Priority
|
|
31
|
+
|
|
32
|
+
Speed > Detail. Etat essentiel seulement.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Snipper
|
|
3
|
+
description: Use this agent when you need to modify code. This agent is specialized to be fast. The output is small and optimized to code as fast as agent can.
|
|
4
|
+
color: blue
|
|
5
|
+
model: haiku
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are a rapid code modification specialist. No explanations, just execute.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. **Read**: Load all specified files with `Read` tool
|
|
13
|
+
2. **Edit**: Apply requested changes using `Edit` or `MultiEdit`
|
|
14
|
+
3. **Report**: List what was modified
|
|
15
|
+
|
|
16
|
+
## Execution Rules
|
|
17
|
+
|
|
18
|
+
- Follow existing code style exactly
|
|
19
|
+
- Preserve all formatting and indentation
|
|
20
|
+
- Make minimal changes to achieve the goal
|
|
21
|
+
- Use `MultiEdit` for multiple changes in same file
|
|
22
|
+
- Never add comments unless requested
|
|
23
|
+
- DO NEVER RUN LINT CHECK. YOU CAN'T USE BASH.
|
|
24
|
+
|
|
25
|
+
## Output Format
|
|
26
|
+
|
|
27
|
+
Simply list each file and the change made:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
- path/to/file.ext: [One line description of change]
|
|
31
|
+
- path/to/other.ext: [What was modified]
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Priority
|
|
35
|
+
|
|
36
|
+
Speed > Explanation. Just get it done.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: websearch
|
|
3
|
+
description: Use this agent when you need to make a quick web search.
|
|
4
|
+
color: yellow
|
|
5
|
+
tools: WebSearch, WebFetch
|
|
6
|
+
model: haiku
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
You are a rapid web search specialist. Find accurate information fast.
|
|
10
|
+
|
|
11
|
+
## Workflow
|
|
12
|
+
|
|
13
|
+
1. **Search**: Use `WebSearch` with precise keywords
|
|
14
|
+
2. **Fetch**: Use `WebFetch` for most relevant results
|
|
15
|
+
3. **Summarize**: Extract key information concisely
|
|
16
|
+
|
|
17
|
+
## Search Best Practices
|
|
18
|
+
|
|
19
|
+
- Focus on authoritative sources (official docs, trusted sites)
|
|
20
|
+
- Skip redundant information
|
|
21
|
+
- Use specific keywords rather than vague terms
|
|
22
|
+
- Prioritize recent information when relevant
|
|
23
|
+
|
|
24
|
+
## Output Format
|
|
25
|
+
|
|
26
|
+
**CRITICAL**: Output all findings directly in your response. NEVER create markdown files.
|
|
27
|
+
|
|
28
|
+
<summary>
|
|
29
|
+
[Clear, concise answer to the query]
|
|
30
|
+
</summary>
|
|
31
|
+
|
|
32
|
+
<key-points>
|
|
33
|
+
• [Most important fact]
|
|
34
|
+
• [Second important fact]
|
|
35
|
+
• [Additional relevant info]
|
|
36
|
+
</key-points>
|
|
37
|
+
|
|
38
|
+
<sources>
|
|
39
|
+
1. [Title](URL) - Brief description
|
|
40
|
+
2. [Title](URL) - What it contains
|
|
41
|
+
3. [Title](URL) - Why it's relevant
|
|
42
|
+
</sources>
|
|
43
|
+
|
|
44
|
+
## Priority
|
|
45
|
+
|
|
46
|
+
Accuracy > Speed. Get the right answer quickly.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Formatting Guide - Clickable References & Copyable Commands
|
|
2
|
+
|
|
3
|
+
This guide defines formatting standards for all command templates.
|
|
4
|
+
|
|
5
|
+
## File References (clickable)
|
|
6
|
+
|
|
7
|
+
### Standard format
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
<!-- Simple file -->
|
|
11
|
+
[filename.ts](path/to/filename.ts)
|
|
12
|
+
|
|
13
|
+
<!-- File with line -->
|
|
14
|
+
[filename.ts:42](path/to/filename.ts#L42)
|
|
15
|
+
|
|
16
|
+
<!-- File with line range -->
|
|
17
|
+
[filename.ts:42-51](path/to/filename.ts#L42-L51)
|
|
18
|
+
|
|
19
|
+
<!-- Folder -->
|
|
20
|
+
[src/components/](src/components/)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Concrete examples
|
|
24
|
+
|
|
25
|
+
| Context | Format | Result |
|
|
26
|
+
|---------|--------|--------|
|
|
27
|
+
| GitFlow Config | `[config.json](.claude/gitflow/config.json)` | [config.json](.claude/gitflow/config.json) |
|
|
28
|
+
| Specific line | `[installer.ts:45](src/lib/installer.ts#L45)` | [installer.ts:45](src/lib/installer.ts#L45) |
|
|
29
|
+
| Range | `[utils.ts:10-25](src/utils.ts#L10-L25)` | [utils.ts:10-25](src/utils.ts#L10-L25) |
|
|
30
|
+
| Folder | `[templates/](templates/)` | [templates/](templates/) |
|
|
31
|
+
|
|
32
|
+
### Avoid
|
|
33
|
+
|
|
34
|
+
```markdown
|
|
35
|
+
<!-- INCORRECT -->
|
|
36
|
+
`config.json`
|
|
37
|
+
`.claude/gitflow/config.json`
|
|
38
|
+
The config.json file
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Commands (copyable)
|
|
42
|
+
|
|
43
|
+
### Claude Code Commands
|
|
44
|
+
|
|
45
|
+
Always in simple code block:
|
|
46
|
+
|
|
47
|
+
```markdown
|
|
48
|
+
```
|
|
49
|
+
/gitflow:1-init --exec
|
|
50
|
+
```
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Bash/Shell Commands
|
|
54
|
+
|
|
55
|
+
With language specified:
|
|
56
|
+
|
|
57
|
+
```markdown
|
|
58
|
+
```bash
|
|
59
|
+
npm run build
|
|
60
|
+
dotnet ef migrations add Initial
|
|
61
|
+
```
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Multiple commands
|
|
65
|
+
|
|
66
|
+
```markdown
|
|
67
|
+
```bash
|
|
68
|
+
# Step 1: Build
|
|
69
|
+
npm run build
|
|
70
|
+
|
|
71
|
+
# Step 2: Test
|
|
72
|
+
npm test
|
|
73
|
+
```
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Avoid
|
|
77
|
+
|
|
78
|
+
```markdown
|
|
79
|
+
<!-- INCORRECT -->
|
|
80
|
+
Execute `/gitflow:1-init`
|
|
81
|
+
Run the command `npm run build`
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Command Tables
|
|
85
|
+
|
|
86
|
+
Recommended format for listing commands:
|
|
87
|
+
|
|
88
|
+
```markdown
|
|
89
|
+
| Command | Description |
|
|
90
|
+
|---------|-------------|
|
|
91
|
+
| `/test-web --quick` | Quick tests |
|
|
92
|
+
| `/test-web --chrome` | E2E tests |
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Paths in Instructions
|
|
96
|
+
|
|
97
|
+
### Good example
|
|
98
|
+
|
|
99
|
+
```markdown
|
|
100
|
+
1. Create file [config.json](.claude/test-web/config.json)
|
|
101
|
+
2. Execute:
|
|
102
|
+
```
|
|
103
|
+
/test-web --quick
|
|
104
|
+
```
|
|
105
|
+
3. Check report in [reports/](.claude/test-web/reports/)
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Bad example
|
|
109
|
+
|
|
110
|
+
```markdown
|
|
111
|
+
1. Create file `.claude/test-web/config.json`
|
|
112
|
+
2. Execute `/test-web --quick`
|
|
113
|
+
3. Check report in `.claude/test-web/reports/`
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Summary
|
|
117
|
+
|
|
118
|
+
| Element | Format | Example |
|
|
119
|
+
|---------|--------|---------|
|
|
120
|
+
| File | `[name](path)` | `[config.json](.claude/config.json)` |
|
|
121
|
+
| File:line | `[name:L](path#LX)` | `[utils.ts:42](src/utils.ts#L42)` |
|
|
122
|
+
| Folder | `[name/](path/)` | `[templates/](templates/)` |
|
|
123
|
+
| Claude Command | ` ``` code ``` ` | `/command --flag` |
|
|
124
|
+
| Bash Command | ` ```bash code ``` ` | `npm run build` |
|