@codyswann/lisa 1.0.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/LICENSE +21 -0
- package/README.md +867 -0
- package/all/copy-overwrite/.claude/README.md +205 -0
- package/all/copy-overwrite/.claude/agents/agent-architect.md +311 -0
- package/all/copy-overwrite/.claude/agents/codebase-analyzer.md +146 -0
- package/all/copy-overwrite/.claude/agents/codebase-locator.md +125 -0
- package/all/copy-overwrite/.claude/agents/codebase-pattern-finder.md +237 -0
- package/all/copy-overwrite/.claude/agents/git-history-analyzer.md +183 -0
- package/all/copy-overwrite/.claude/agents/hooks-expert.md +74 -0
- package/all/copy-overwrite/.claude/agents/skill-evaluator.md +246 -0
- package/all/copy-overwrite/.claude/agents/slash-command-architect.md +87 -0
- package/all/copy-overwrite/.claude/agents/web-search-researcher.md +112 -0
- package/all/copy-overwrite/.claude/commands/git/commit-and-submit-pr.md +8 -0
- package/all/copy-overwrite/.claude/commands/git/commit.md +44 -0
- package/all/copy-overwrite/.claude/commands/git/prune.md +34 -0
- package/all/copy-overwrite/.claude/commands/git/submit-pr.md +50 -0
- package/all/copy-overwrite/.claude/commands/jira/create.md +50 -0
- package/all/copy-overwrite/.claude/commands/jira/verify.md +34 -0
- package/all/copy-overwrite/.claude/commands/project/archive.md +8 -0
- package/all/copy-overwrite/.claude/commands/project/bootstrap.md +49 -0
- package/all/copy-overwrite/.claude/commands/project/complete-task.md +7 -0
- package/all/copy-overwrite/.claude/commands/project/debrief.md +65 -0
- package/all/copy-overwrite/.claude/commands/project/execute.md +94 -0
- package/all/copy-overwrite/.claude/commands/project/implement.md +42 -0
- package/all/copy-overwrite/.claude/commands/project/local-code-review.md +88 -0
- package/all/copy-overwrite/.claude/commands/project/lower-code-complexity.md +74 -0
- package/all/copy-overwrite/.claude/commands/project/plan.md +314 -0
- package/all/copy-overwrite/.claude/commands/project/research.md +248 -0
- package/all/copy-overwrite/.claude/commands/project/review.md +63 -0
- package/all/copy-overwrite/.claude/commands/project/setup.md +19 -0
- package/all/copy-overwrite/.claude/commands/project/verify.md +38 -0
- package/all/copy-overwrite/.claude/commands/pull-request/review.md +12 -0
- package/all/copy-overwrite/.claude/commands/rules/format-md.md +72 -0
- package/all/copy-overwrite/.claude/commands/sonarqube/check.md +6 -0
- package/all/copy-overwrite/.claude/commands/sonarqube/fix.md +3 -0
- package/all/copy-overwrite/.claude/hooks/README.md +301 -0
- package/all/copy-overwrite/.claude/hooks/notify-ntfy.sh +181 -0
- package/all/copy-overwrite/.claude/settings.json +41 -0
- package/all/copy-overwrite/.claude/settings.local.json.example +14 -0
- package/all/copy-overwrite/.claude/skills/coding-philosophy/SKILL.md +405 -0
- package/all/copy-overwrite/.claude/skills/coding-philosophy/references/function-structure.md +416 -0
- package/all/copy-overwrite/.claude/skills/coding-philosophy/references/immutable-patterns.md +316 -0
- package/all/copy-overwrite/.claude/skills/prompt-complexity-scorer/SKILL.md +118 -0
- package/all/copy-overwrite/.claude/skills/skill-creator/LICENSE.txt +202 -0
- package/all/copy-overwrite/.claude/skills/skill-creator/SKILL.md +210 -0
- package/all/copy-overwrite/.claude/skills/skill-creator/scripts/__pycache__/quick_validate.cpython-312.pyc +0 -0
- package/all/copy-overwrite/.claude/skills/skill-creator/scripts/init_skill.py +303 -0
- package/all/copy-overwrite/.claude/skills/skill-creator/scripts/package_skill.py +110 -0
- package/all/copy-overwrite/.claude/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/all/copy-overwrite/CLAUDE.md +77 -0
- package/all/copy-overwrite/HUMAN.md +17 -0
- package/all/copy-overwrite/specs/.keep +0 -0
- package/all/create-only/PROJECT_RULES.md +0 -0
- package/cdk/merge/package.json +20 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +107 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/prompts.d.ts +45 -0
- package/dist/cli/prompts.d.ts.map +1 -0
- package/dist/cli/prompts.js +58 -0
- package/dist/cli/prompts.js.map +1 -0
- package/dist/core/config.d.ts +73 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +36 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +4 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/lisa.d.ts +81 -0
- package/dist/core/lisa.d.ts.map +1 -0
- package/dist/core/lisa.js +459 -0
- package/dist/core/lisa.js.map +1 -0
- package/dist/core/manifest.d.ts +58 -0
- package/dist/core/manifest.d.ts.map +1 -0
- package/dist/core/manifest.js +104 -0
- package/dist/core/manifest.js.map +1 -0
- package/dist/detection/detector.interface.d.ts +15 -0
- package/dist/detection/detector.interface.d.ts.map +1 -0
- package/dist/detection/detector.interface.js +2 -0
- package/dist/detection/detector.interface.js.map +1 -0
- package/dist/detection/detectors/cdk.d.ts +10 -0
- package/dist/detection/detectors/cdk.d.ts.map +1 -0
- package/dist/detection/detectors/cdk.js +34 -0
- package/dist/detection/detectors/cdk.js.map +1 -0
- package/dist/detection/detectors/expo.d.ts +10 -0
- package/dist/detection/detectors/expo.d.ts.map +1 -0
- package/dist/detection/detectors/expo.js +30 -0
- package/dist/detection/detectors/expo.js.map +1 -0
- package/dist/detection/detectors/nestjs.d.ts +10 -0
- package/dist/detection/detectors/nestjs.d.ts.map +1 -0
- package/dist/detection/detectors/nestjs.js +34 -0
- package/dist/detection/detectors/nestjs.js.map +1 -0
- package/dist/detection/detectors/npm-package.d.ts +13 -0
- package/dist/detection/detectors/npm-package.d.ts.map +1 -0
- package/dist/detection/detectors/npm-package.js +30 -0
- package/dist/detection/detectors/npm-package.js.map +1 -0
- package/dist/detection/detectors/typescript.d.ts +10 -0
- package/dist/detection/detectors/typescript.d.ts.map +1 -0
- package/dist/detection/detectors/typescript.js +25 -0
- package/dist/detection/detectors/typescript.js.map +1 -0
- package/dist/detection/index.d.ts +24 -0
- package/dist/detection/index.d.ts.map +1 -0
- package/dist/detection/index.js +57 -0
- package/dist/detection/index.js.map +1 -0
- package/dist/errors/index.d.ts +69 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +110 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/logging/console-logger.d.ts +12 -0
- package/dist/logging/console-logger.d.ts.map +1 -0
- package/dist/logging/console-logger.js +22 -0
- package/dist/logging/console-logger.js.map +1 -0
- package/dist/logging/index.d.ts +4 -0
- package/dist/logging/index.d.ts.map +1 -0
- package/dist/logging/index.js +3 -0
- package/dist/logging/index.js.map +1 -0
- package/dist/logging/logger.interface.d.ts +20 -0
- package/dist/logging/logger.interface.d.ts.map +1 -0
- package/dist/logging/logger.interface.js +2 -0
- package/dist/logging/logger.interface.js.map +1 -0
- package/dist/logging/silent-logger.d.ts +12 -0
- package/dist/logging/silent-logger.d.ts.map +1 -0
- package/dist/logging/silent-logger.js +21 -0
- package/dist/logging/silent-logger.js.map +1 -0
- package/dist/strategies/copy-contents.d.ts +14 -0
- package/dist/strategies/copy-contents.d.ts.map +1 -0
- package/dist/strategies/copy-contents.js +69 -0
- package/dist/strategies/copy-contents.js.map +1 -0
- package/dist/strategies/copy-overwrite.d.ts +14 -0
- package/dist/strategies/copy-overwrite.d.ts.map +1 -0
- package/dist/strategies/copy-overwrite.js +47 -0
- package/dist/strategies/copy-overwrite.js.map +1 -0
- package/dist/strategies/create-only.d.ts +13 -0
- package/dist/strategies/create-only.d.ts.map +1 -0
- package/dist/strategies/create-only.js +30 -0
- package/dist/strategies/create-only.js.map +1 -0
- package/dist/strategies/index.d.ts +31 -0
- package/dist/strategies/index.d.ts.map +1 -0
- package/dist/strategies/index.js +52 -0
- package/dist/strategies/index.js.map +1 -0
- package/dist/strategies/merge.d.ts +13 -0
- package/dist/strategies/merge.d.ts.map +1 -0
- package/dist/strategies/merge.js +60 -0
- package/dist/strategies/merge.js.map +1 -0
- package/dist/strategies/strategy.interface.d.ts +31 -0
- package/dist/strategies/strategy.interface.d.ts.map +1 -0
- package/dist/strategies/strategy.interface.js +2 -0
- package/dist/strategies/strategy.interface.js.map +1 -0
- package/dist/transaction/backup.d.ts +38 -0
- package/dist/transaction/backup.d.ts.map +1 -0
- package/dist/transaction/backup.js +97 -0
- package/dist/transaction/backup.js.map +1 -0
- package/dist/transaction/index.d.ts +4 -0
- package/dist/transaction/index.d.ts.map +1 -0
- package/dist/transaction/index.js +3 -0
- package/dist/transaction/index.js.map +1 -0
- package/dist/transaction/transaction.d.ts +34 -0
- package/dist/transaction/transaction.d.ts.map +1 -0
- package/dist/transaction/transaction.js +68 -0
- package/dist/transaction/transaction.js.map +1 -0
- package/dist/utils/file-operations.d.ts +29 -0
- package/dist/utils/file-operations.d.ts.map +1 -0
- package/dist/utils/file-operations.js +84 -0
- package/dist/utils/file-operations.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/json-utils.d.ts +22 -0
- package/dist/utils/json-utils.d.ts.map +1 -0
- package/dist/utils/json-utils.js +57 -0
- package/dist/utils/json-utils.js.map +1 -0
- package/dist/utils/path-utils.d.ts +21 -0
- package/dist/utils/path-utils.d.ts.map +1 -0
- package/dist/utils/path-utils.js +35 -0
- package/dist/utils/path-utils.js.map +1 -0
- package/eslint-plugin-code-organization/README.md +149 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order.test.js +468 -0
- package/eslint-plugin-code-organization/index.js +23 -0
- package/eslint-plugin-code-organization/package.json +10 -0
- package/eslint-plugin-code-organization/rules/enforce-statement-order.js +157 -0
- package/expo/copy-overwrite/.claude/skills/apollo-client/SKILL.md +238 -0
- package/expo/copy-overwrite/.claude/skills/apollo-client/references/mutation-patterns.md +360 -0
- package/expo/copy-overwrite/.claude/skills/atomic-design-gluestack/SKILL.md +360 -0
- package/expo/copy-overwrite/.claude/skills/atomic-design-gluestack/references/atomic-levels.md +417 -0
- package/expo/copy-overwrite/.claude/skills/atomic-design-gluestack/references/folder-structure.md +257 -0
- package/expo/copy-overwrite/.claude/skills/atomic-design-gluestack/references/gluestack-mapping.md +233 -0
- package/expo/copy-overwrite/.claude/skills/atomic-design-gluestack/scripts/validate_atomic_structure.py +327 -0
- package/expo/copy-overwrite/.claude/skills/container-view-pattern/SKILL.md +299 -0
- package/expo/copy-overwrite/.claude/skills/container-view-pattern/references/examples.md +749 -0
- package/expo/copy-overwrite/.claude/skills/container-view-pattern/references/patterns.md +318 -0
- package/expo/copy-overwrite/.claude/skills/container-view-pattern/scripts/create_component.py +198 -0
- package/expo/copy-overwrite/.claude/skills/container-view-pattern/scripts/validate_component.py +207 -0
- package/expo/copy-overwrite/.claude/skills/cross-platform-compatibility/SKILL.md +268 -0
- package/expo/copy-overwrite/.claude/skills/cross-platform-compatibility/references/common-issues.md +619 -0
- package/expo/copy-overwrite/.claude/skills/cross-platform-compatibility/references/file-extensions.md +340 -0
- package/expo/copy-overwrite/.claude/skills/cross-platform-compatibility/references/platform-api.md +276 -0
- package/expo/copy-overwrite/.claude/skills/cross-platform-compatibility/scripts/validate_cross_platform.py +414 -0
- package/expo/copy-overwrite/.claude/skills/directory-structure/SKILL.md +202 -0
- package/expo/copy-overwrite/.claude/skills/directory-structure/scripts/validate_structure.py +443 -0
- package/expo/copy-overwrite/.claude/skills/expo-env-config/SKILL.md +309 -0
- package/expo/copy-overwrite/.claude/skills/expo-env-config/references/validation-patterns.md +417 -0
- package/expo/copy-overwrite/.claude/skills/expo-router-best-practices/SKILL.md +431 -0
- package/expo/copy-overwrite/.claude/skills/expo-router-best-practices/references/official-docs.md +290 -0
- package/expo/copy-overwrite/.claude/skills/expo-router-best-practices/scripts/generate-route.py +169 -0
- package/expo/copy-overwrite/.claude/skills/gluestack-nativewind/SKILL.md +411 -0
- package/expo/copy-overwrite/.claude/skills/gluestack-nativewind/references/color-tokens.md +343 -0
- package/expo/copy-overwrite/.claude/skills/gluestack-nativewind/references/component-mapping.md +307 -0
- package/expo/copy-overwrite/.claude/skills/gluestack-nativewind/references/spacing-scale.md +300 -0
- package/expo/copy-overwrite/.claude/skills/gluestack-nativewind/scripts/validate_styling.py +354 -0
- package/expo/copy-overwrite/.claude/skills/local-state/SKILL.md +362 -0
- package/expo/copy-overwrite/.claude/skills/local-state/references/async-storage.md +505 -0
- package/expo/copy-overwrite/.claude/skills/local-state/references/persistence-patterns.md +711 -0
- package/expo/copy-overwrite/.claude/skills/local-state/references/reactive-variables.md +446 -0
- package/expo/copy-overwrite/.claude/skills/playwright-selectors/SKILL.md +223 -0
- package/expo/copy-overwrite/.claude/skills/testing-library/SKILL.md +319 -0
- package/expo/copy-overwrite/.claude/skills/testing-library/references/async-patterns.md +420 -0
- package/expo/copy-overwrite/.claude/skills/testing-library/references/expo-router-testing.md +556 -0
- package/expo/copy-overwrite/.claude/skills/testing-library/references/mocking-patterns.md +590 -0
- package/expo/copy-overwrite/.claude/skills/testing-library/references/query-priority.md +291 -0
- package/expo/copy-overwrite/.easignore.extra +2 -0
- package/expo/copy-overwrite/.mcp.json +33 -0
- package/expo/copy-overwrite/eslint-plugin-component-structure/README.md +234 -0
- package/expo/copy-overwrite/eslint-plugin-component-structure/__tests__/plugin-index.test.js +84 -0
- package/expo/copy-overwrite/eslint-plugin-component-structure/__tests__/require-memo-in-view.test.js +196 -0
- package/expo/copy-overwrite/eslint-plugin-component-structure/__tests__/single-component-per-file.test.js +289 -0
- package/expo/copy-overwrite/eslint-plugin-component-structure/index.js +32 -0
- package/expo/copy-overwrite/eslint-plugin-component-structure/package.json +10 -0
- package/expo/copy-overwrite/eslint-plugin-component-structure/rules/enforce-component-structure.js +230 -0
- package/expo/copy-overwrite/eslint-plugin-component-structure/rules/no-return-in-view.js +91 -0
- package/expo/copy-overwrite/eslint-plugin-component-structure/rules/require-memo-in-view.js +178 -0
- package/expo/copy-overwrite/eslint-plugin-component-structure/rules/single-component-per-file.js +238 -0
- package/expo/copy-overwrite/eslint-plugin-ui-standards/README.md +260 -0
- package/expo/copy-overwrite/eslint-plugin-ui-standards/index.js +29 -0
- package/expo/copy-overwrite/eslint-plugin-ui-standards/package.json +10 -0
- package/expo/copy-overwrite/eslint-plugin-ui-standards/rules/no-classname-outside-ui.js +51 -0
- package/expo/copy-overwrite/eslint-plugin-ui-standards/rules/no-direct-rn-imports.js +55 -0
- package/expo/copy-overwrite/eslint-plugin-ui-standards/rules/no-inline-styles.js +73 -0
- package/expo/copy-overwrite/eslint.config.mjs +560 -0
- package/expo/copy-overwrite/lighthouserc.js +194 -0
- package/expo/create-only/lighthouserc-config.json +28 -0
- package/expo/merge/package.json +132 -0
- package/lisa.sh +35 -0
- package/nestjs/copy-overwrite/.claude/skills/nestjs-graphql/SKILL.md +176 -0
- package/nestjs/copy-overwrite/.claude/skills/nestjs-graphql/references/advanced-features.md +527 -0
- package/nestjs/copy-overwrite/.claude/skills/nestjs-graphql/references/project-patterns.md +483 -0
- package/nestjs/copy-overwrite/.claude/skills/nestjs-graphql/references/quick-start.md +257 -0
- package/nestjs/copy-overwrite/.claude/skills/nestjs-graphql/references/resolvers-mutations.md +413 -0
- package/nestjs/copy-overwrite/.claude/skills/nestjs-graphql/references/types-scalars.md +513 -0
- package/nestjs/copy-overwrite/.claude/skills/nestjs-rules/SKILL.md +536 -0
- package/nestjs/copy-overwrite/.claude/skills/typeorm-patterns/SKILL.md +275 -0
- package/nestjs/copy-overwrite/.claude/skills/typeorm-patterns/references/configuration-patterns.md +487 -0
- package/nestjs/copy-overwrite/.claude/skills/typeorm-patterns/references/entity-patterns.md +450 -0
- package/nestjs/copy-overwrite/.claude/skills/typeorm-patterns/references/observability-patterns.md +536 -0
- package/nestjs/merge/package.json +75 -0
- package/package.json +124 -0
- package/typescript/copy-contents/.husky/commit-msg +91 -0
- package/typescript/copy-contents/.husky/pre-commit +96 -0
- package/typescript/copy-contents/.husky/pre-push +211 -0
- package/typescript/copy-overwrite/.claude/hooks/format-on-edit.sh +74 -0
- package/typescript/copy-overwrite/.claude/hooks/install_pkgs.sh +59 -0
- package/typescript/copy-overwrite/.claude/hooks/lint-on-edit.sh +103 -0
- package/typescript/copy-overwrite/.claude/skills/jsdoc-best-practices/SKILL.md +388 -0
- package/typescript/copy-overwrite/.github/README.md +455 -0
- package/typescript/copy-overwrite/.github/dependabot.yml +40 -0
- package/typescript/copy-overwrite/.github/k6/BROWSER_TESTING_NOTE.md +129 -0
- package/typescript/copy-overwrite/.github/k6/INTEGRATION_GUIDE.md +354 -0
- package/typescript/copy-overwrite/.github/k6/README.md +386 -0
- package/typescript/copy-overwrite/.github/k6/SCENARIO_SELECTION_GUIDE.md +264 -0
- package/typescript/copy-overwrite/.github/k6/examples/customer-deploy-integration.yml +115 -0
- package/typescript/copy-overwrite/.github/k6/examples/data-driven-test.js +268 -0
- package/typescript/copy-overwrite/.github/k6/scenarios/load.js +142 -0
- package/typescript/copy-overwrite/.github/k6/scenarios/load.json +27 -0
- package/typescript/copy-overwrite/.github/k6/scenarios/smoke.js +26 -0
- package/typescript/copy-overwrite/.github/k6/scenarios/smoke.json +20 -0
- package/typescript/copy-overwrite/.github/k6/scenarios/soak.js +244 -0
- package/typescript/copy-overwrite/.github/k6/scenarios/soak.json +29 -0
- package/typescript/copy-overwrite/.github/k6/scenarios/spike.js +180 -0
- package/typescript/copy-overwrite/.github/k6/scenarios/spike.json +32 -0
- package/typescript/copy-overwrite/.github/k6/scenarios/stress.js +206 -0
- package/typescript/copy-overwrite/.github/k6/scenarios/stress.json +38 -0
- package/typescript/copy-overwrite/.github/k6/scripts/api-test.js +452 -0
- package/typescript/copy-overwrite/.github/k6/scripts/default-test.js +185 -0
- package/typescript/copy-overwrite/.github/k6/thresholds/normal.json +30 -0
- package/typescript/copy-overwrite/.github/k6/thresholds/relaxed.json +21 -0
- package/typescript/copy-overwrite/.github/k6/thresholds/strict.json +29 -0
- package/typescript/copy-overwrite/.github/workflows/build.yml +72 -0
- package/typescript/copy-overwrite/.github/workflows/ci.yml +49 -0
- package/typescript/copy-overwrite/.github/workflows/claude.yml +51 -0
- package/typescript/copy-overwrite/.github/workflows/create-github-issue-on-failure.yml +113 -0
- package/typescript/copy-overwrite/.github/workflows/create-jira-issue-on-failure.yml +195 -0
- package/typescript/copy-overwrite/.github/workflows/create-sentry-issue-on-failure.yml +267 -0
- package/typescript/copy-overwrite/.github/workflows/deploy.yml +228 -0
- package/typescript/copy-overwrite/.github/workflows/k6-load-test-README.md +230 -0
- package/typescript/copy-overwrite/.github/workflows/lighthouse.yml +68 -0
- package/typescript/copy-overwrite/.github/workflows/load-test.yml +282 -0
- package/typescript/copy-overwrite/.github/workflows/quality.yml +1737 -0
- package/typescript/copy-overwrite/.github/workflows/release.yml +1599 -0
- package/typescript/copy-overwrite/.gitleaksignore +28 -0
- package/typescript/copy-overwrite/.nvmrc +1 -0
- package/typescript/copy-overwrite/.prettierignore +23 -0
- package/typescript/copy-overwrite/.prettierrc.json +22 -0
- package/typescript/copy-overwrite/.versionrc +42 -0
- package/typescript/copy-overwrite/.yamllint +20 -0
- package/typescript/copy-overwrite/commitlint.config.js +11 -0
- package/typescript/copy-overwrite/eslint-plugin-code-organization/README.md +149 -0
- package/typescript/copy-overwrite/eslint-plugin-code-organization/__tests__/enforce-statement-order.test.js +468 -0
- package/typescript/copy-overwrite/eslint-plugin-code-organization/index.js +23 -0
- package/typescript/copy-overwrite/eslint-plugin-code-organization/package.json +10 -0
- package/typescript/copy-overwrite/eslint-plugin-code-organization/rules/enforce-statement-order.js +157 -0
- package/typescript/copy-overwrite/eslint.config.mjs +390 -0
- package/typescript/copy-overwrite/eslint.ignore.config.json +57 -0
- package/typescript/copy-overwrite/eslint.thresholds.config.json +5 -0
- package/typescript/github-rulesets/base.json +106 -0
- package/typescript/merge/.claude/settings.json +28 -0
- package/typescript/merge/package.json +71 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Skill Initializer - Creates a new skill from template
|
|
4
|
+
|
|
5
|
+
Usage:
|
|
6
|
+
init_skill.py <skill-name> --path <path>
|
|
7
|
+
|
|
8
|
+
Examples:
|
|
9
|
+
init_skill.py my-new-skill --path skills/public
|
|
10
|
+
init_skill.py my-api-helper --path skills/private
|
|
11
|
+
init_skill.py custom-skill --path /custom/location
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
import sys
|
|
15
|
+
from pathlib import Path
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
SKILL_TEMPLATE = """---
|
|
19
|
+
name: {skill_name}
|
|
20
|
+
description: [TODO: Complete and informative explanation of what the skill does and when to use it. Include WHEN to use this skill - specific scenarios, file types, or tasks that trigger it.]
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# {skill_title}
|
|
24
|
+
|
|
25
|
+
## Overview
|
|
26
|
+
|
|
27
|
+
[TODO: 1-2 sentences explaining what this skill enables]
|
|
28
|
+
|
|
29
|
+
## Structuring This Skill
|
|
30
|
+
|
|
31
|
+
[TODO: Choose the structure that best fits this skill's purpose. Common patterns:
|
|
32
|
+
|
|
33
|
+
**1. Workflow-Based** (best for sequential processes)
|
|
34
|
+
- Works well when there are clear step-by-step procedures
|
|
35
|
+
- Example: DOCX skill with "Workflow Decision Tree" → "Reading" → "Creating" → "Editing"
|
|
36
|
+
- Structure: ## Overview → ## Workflow Decision Tree → ## Step 1 → ## Step 2...
|
|
37
|
+
|
|
38
|
+
**2. Task-Based** (best for tool collections)
|
|
39
|
+
- Works well when the skill offers different operations/capabilities
|
|
40
|
+
- Example: PDF skill with "Quick Start" → "Merge PDFs" → "Split PDFs" → "Extract Text"
|
|
41
|
+
- Structure: ## Overview → ## Quick Start → ## Task Category 1 → ## Task Category 2...
|
|
42
|
+
|
|
43
|
+
**3. Reference/Guidelines** (best for standards or specifications)
|
|
44
|
+
- Works well for brand guidelines, coding standards, or requirements
|
|
45
|
+
- Example: Brand styling with "Brand Guidelines" → "Colors" → "Typography" → "Features"
|
|
46
|
+
- Structure: ## Overview → ## Guidelines → ## Specifications → ## Usage...
|
|
47
|
+
|
|
48
|
+
**4. Capabilities-Based** (best for integrated systems)
|
|
49
|
+
- Works well when the skill provides multiple interrelated features
|
|
50
|
+
- Example: Product Management with "Core Capabilities" → numbered capability list
|
|
51
|
+
- Structure: ## Overview → ## Core Capabilities → ### 1. Feature → ### 2. Feature...
|
|
52
|
+
|
|
53
|
+
Patterns can be mixed and matched as needed. Most skills combine patterns (e.g., start with task-based, add workflow for complex operations).
|
|
54
|
+
|
|
55
|
+
Delete this entire "Structuring This Skill" section when done - it's just guidance.]
|
|
56
|
+
|
|
57
|
+
## [TODO: Replace with the first main section based on chosen structure]
|
|
58
|
+
|
|
59
|
+
[TODO: Add content here. See examples in existing skills:
|
|
60
|
+
- Code samples for technical skills
|
|
61
|
+
- Decision trees for complex workflows
|
|
62
|
+
- Concrete examples with realistic user requests
|
|
63
|
+
- References to scripts/templates/references as needed]
|
|
64
|
+
|
|
65
|
+
## Resources
|
|
66
|
+
|
|
67
|
+
This skill includes example resource directories that demonstrate how to organize different types of bundled resources:
|
|
68
|
+
|
|
69
|
+
### scripts/
|
|
70
|
+
Executable code (Python/Bash/etc.) that can be run directly to perform specific operations.
|
|
71
|
+
|
|
72
|
+
**Examples from other skills:**
|
|
73
|
+
- PDF skill: `fill_fillable_fields.py`, `extract_form_field_info.py` - utilities for PDF manipulation
|
|
74
|
+
- DOCX skill: `document.py`, `utilities.py` - Python modules for document processing
|
|
75
|
+
|
|
76
|
+
**Appropriate for:** Python scripts, shell scripts, or any executable code that performs automation, data processing, or specific operations.
|
|
77
|
+
|
|
78
|
+
**Note:** Scripts may be executed without loading into context, but can still be read by Claude for patching or environment adjustments.
|
|
79
|
+
|
|
80
|
+
### references/
|
|
81
|
+
Documentation and reference material intended to be loaded into context to inform Claude's process and thinking.
|
|
82
|
+
|
|
83
|
+
**Examples from other skills:**
|
|
84
|
+
- Product management: `communication.md`, `context_building.md` - detailed workflow guides
|
|
85
|
+
- BigQuery: API reference documentation and query examples
|
|
86
|
+
- Finance: Schema documentation, company policies
|
|
87
|
+
|
|
88
|
+
**Appropriate for:** In-depth documentation, API references, database schemas, comprehensive guides, or any detailed information that Claude should reference while working.
|
|
89
|
+
|
|
90
|
+
### assets/
|
|
91
|
+
Files not intended to be loaded into context, but rather used within the output Claude produces.
|
|
92
|
+
|
|
93
|
+
**Examples from other skills:**
|
|
94
|
+
- Brand styling: PowerPoint template files (.pptx), logo files
|
|
95
|
+
- Frontend builder: HTML/React boilerplate project directories
|
|
96
|
+
- Typography: Font files (.ttf, .woff2)
|
|
97
|
+
|
|
98
|
+
**Appropriate for:** Templates, boilerplate code, document templates, images, icons, fonts, or any files meant to be copied or used in the final output.
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
**Any unneeded directories can be deleted.** Not every skill requires all three types of resources.
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
EXAMPLE_SCRIPT = '''#!/usr/bin/env python3
|
|
106
|
+
"""
|
|
107
|
+
Example helper script for {skill_name}
|
|
108
|
+
|
|
109
|
+
This is a placeholder script that can be executed directly.
|
|
110
|
+
Replace with actual implementation or delete if not needed.
|
|
111
|
+
|
|
112
|
+
Example real scripts from other skills:
|
|
113
|
+
- pdf/scripts/fill_fillable_fields.py - Fills PDF form fields
|
|
114
|
+
- pdf/scripts/convert_pdf_to_images.py - Converts PDF pages to images
|
|
115
|
+
"""
|
|
116
|
+
|
|
117
|
+
def main():
|
|
118
|
+
print("This is an example script for {skill_name}")
|
|
119
|
+
# TODO: Add actual script logic here
|
|
120
|
+
# This could be data processing, file conversion, API calls, etc.
|
|
121
|
+
|
|
122
|
+
if __name__ == "__main__":
|
|
123
|
+
main()
|
|
124
|
+
'''
|
|
125
|
+
|
|
126
|
+
EXAMPLE_REFERENCE = """# Reference Documentation for {skill_title}
|
|
127
|
+
|
|
128
|
+
This is a placeholder for detailed reference documentation.
|
|
129
|
+
Replace with actual reference content or delete if not needed.
|
|
130
|
+
|
|
131
|
+
Example real reference docs from other skills:
|
|
132
|
+
- product-management/references/communication.md - Comprehensive guide for status updates
|
|
133
|
+
- product-management/references/context_building.md - Deep-dive on gathering context
|
|
134
|
+
- bigquery/references/ - API references and query examples
|
|
135
|
+
|
|
136
|
+
## When Reference Docs Are Useful
|
|
137
|
+
|
|
138
|
+
Reference docs are ideal for:
|
|
139
|
+
- Comprehensive API documentation
|
|
140
|
+
- Detailed workflow guides
|
|
141
|
+
- Complex multi-step processes
|
|
142
|
+
- Information too lengthy for main SKILL.md
|
|
143
|
+
- Content that's only needed for specific use cases
|
|
144
|
+
|
|
145
|
+
## Structure Suggestions
|
|
146
|
+
|
|
147
|
+
### API Reference Example
|
|
148
|
+
- Overview
|
|
149
|
+
- Authentication
|
|
150
|
+
- Endpoints with examples
|
|
151
|
+
- Error codes
|
|
152
|
+
- Rate limits
|
|
153
|
+
|
|
154
|
+
### Workflow Guide Example
|
|
155
|
+
- Prerequisites
|
|
156
|
+
- Step-by-step instructions
|
|
157
|
+
- Common patterns
|
|
158
|
+
- Troubleshooting
|
|
159
|
+
- Best practices
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
EXAMPLE_ASSET = """# Example Asset File
|
|
163
|
+
|
|
164
|
+
This placeholder represents where asset files would be stored.
|
|
165
|
+
Replace with actual asset files (templates, images, fonts, etc.) or delete if not needed.
|
|
166
|
+
|
|
167
|
+
Asset files are NOT intended to be loaded into context, but rather used within
|
|
168
|
+
the output Claude produces.
|
|
169
|
+
|
|
170
|
+
Example asset files from other skills:
|
|
171
|
+
- Brand guidelines: logo.png, slides_template.pptx
|
|
172
|
+
- Frontend builder: hello-world/ directory with HTML/React boilerplate
|
|
173
|
+
- Typography: custom-font.ttf, font-family.woff2
|
|
174
|
+
- Data: sample_data.csv, test_dataset.json
|
|
175
|
+
|
|
176
|
+
## Common Asset Types
|
|
177
|
+
|
|
178
|
+
- Templates: .pptx, .docx, boilerplate directories
|
|
179
|
+
- Images: .png, .jpg, .svg, .gif
|
|
180
|
+
- Fonts: .ttf, .otf, .woff, .woff2
|
|
181
|
+
- Boilerplate code: Project directories, starter files
|
|
182
|
+
- Icons: .ico, .svg
|
|
183
|
+
- Data files: .csv, .json, .xml, .yaml
|
|
184
|
+
|
|
185
|
+
Note: This is a text placeholder. Actual assets can be any file type.
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
def title_case_skill_name(skill_name):
|
|
190
|
+
"""Convert hyphenated skill name to Title Case for display."""
|
|
191
|
+
return ' '.join(word.capitalize() for word in skill_name.split('-'))
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def init_skill(skill_name, path):
|
|
195
|
+
"""
|
|
196
|
+
Initialize a new skill directory with template SKILL.md.
|
|
197
|
+
|
|
198
|
+
Args:
|
|
199
|
+
skill_name: Name of the skill
|
|
200
|
+
path: Path where the skill directory should be created
|
|
201
|
+
|
|
202
|
+
Returns:
|
|
203
|
+
Path to created skill directory, or None if error
|
|
204
|
+
"""
|
|
205
|
+
# Determine skill directory path
|
|
206
|
+
skill_dir = Path(path).resolve() / skill_name
|
|
207
|
+
|
|
208
|
+
# Check if directory already exists
|
|
209
|
+
if skill_dir.exists():
|
|
210
|
+
print(f"❌ Error: Skill directory already exists: {skill_dir}")
|
|
211
|
+
return None
|
|
212
|
+
|
|
213
|
+
# Create skill directory
|
|
214
|
+
try:
|
|
215
|
+
skill_dir.mkdir(parents=True, exist_ok=False)
|
|
216
|
+
print(f"✅ Created skill directory: {skill_dir}")
|
|
217
|
+
except Exception as e:
|
|
218
|
+
print(f"❌ Error creating directory: {e}")
|
|
219
|
+
return None
|
|
220
|
+
|
|
221
|
+
# Create SKILL.md from template
|
|
222
|
+
skill_title = title_case_skill_name(skill_name)
|
|
223
|
+
skill_content = SKILL_TEMPLATE.format(
|
|
224
|
+
skill_name=skill_name,
|
|
225
|
+
skill_title=skill_title
|
|
226
|
+
)
|
|
227
|
+
|
|
228
|
+
skill_md_path = skill_dir / 'SKILL.md'
|
|
229
|
+
try:
|
|
230
|
+
skill_md_path.write_text(skill_content)
|
|
231
|
+
print("✅ Created SKILL.md")
|
|
232
|
+
except Exception as e:
|
|
233
|
+
print(f"❌ Error creating SKILL.md: {e}")
|
|
234
|
+
return None
|
|
235
|
+
|
|
236
|
+
# Create resource directories with example files
|
|
237
|
+
try:
|
|
238
|
+
# Create scripts/ directory with example script
|
|
239
|
+
scripts_dir = skill_dir / 'scripts'
|
|
240
|
+
scripts_dir.mkdir(exist_ok=True)
|
|
241
|
+
example_script = scripts_dir / 'example.py'
|
|
242
|
+
example_script.write_text(EXAMPLE_SCRIPT.format(skill_name=skill_name))
|
|
243
|
+
example_script.chmod(0o755)
|
|
244
|
+
print("✅ Created scripts/example.py")
|
|
245
|
+
|
|
246
|
+
# Create references/ directory with example reference doc
|
|
247
|
+
references_dir = skill_dir / 'references'
|
|
248
|
+
references_dir.mkdir(exist_ok=True)
|
|
249
|
+
example_reference = references_dir / 'api_reference.md'
|
|
250
|
+
example_reference.write_text(EXAMPLE_REFERENCE.format(skill_title=skill_title))
|
|
251
|
+
print("✅ Created references/api_reference.md")
|
|
252
|
+
|
|
253
|
+
# Create assets/ directory with example asset placeholder
|
|
254
|
+
assets_dir = skill_dir / 'assets'
|
|
255
|
+
assets_dir.mkdir(exist_ok=True)
|
|
256
|
+
example_asset = assets_dir / 'example_asset.txt'
|
|
257
|
+
example_asset.write_text(EXAMPLE_ASSET)
|
|
258
|
+
print("✅ Created assets/example_asset.txt")
|
|
259
|
+
except Exception as e:
|
|
260
|
+
print(f"❌ Error creating resource directories: {e}")
|
|
261
|
+
return None
|
|
262
|
+
|
|
263
|
+
# Print next steps
|
|
264
|
+
print(f"\n✅ Skill '{skill_name}' initialized successfully at {skill_dir}")
|
|
265
|
+
print("\nNext steps:")
|
|
266
|
+
print("1. Edit SKILL.md to complete the TODO items and update the description")
|
|
267
|
+
print("2. Customize or delete the example files in scripts/, references/, and assets/")
|
|
268
|
+
print("3. Run the validator when ready to check the skill structure")
|
|
269
|
+
|
|
270
|
+
return skill_dir
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
def main():
|
|
274
|
+
if len(sys.argv) < 4 or sys.argv[2] != '--path':
|
|
275
|
+
print("Usage: init_skill.py <skill-name> --path <path>")
|
|
276
|
+
print("\nSkill name requirements:")
|
|
277
|
+
print(" - Hyphen-case identifier (e.g., 'data-analyzer')")
|
|
278
|
+
print(" - Lowercase letters, digits, and hyphens only")
|
|
279
|
+
print(" - Max 40 characters")
|
|
280
|
+
print(" - Must match directory name exactly")
|
|
281
|
+
print("\nExamples:")
|
|
282
|
+
print(" init_skill.py my-new-skill --path skills/public")
|
|
283
|
+
print(" init_skill.py my-api-helper --path skills/private")
|
|
284
|
+
print(" init_skill.py custom-skill --path /custom/location")
|
|
285
|
+
sys.exit(1)
|
|
286
|
+
|
|
287
|
+
skill_name = sys.argv[1]
|
|
288
|
+
path = sys.argv[3]
|
|
289
|
+
|
|
290
|
+
print(f"🚀 Initializing skill: {skill_name}")
|
|
291
|
+
print(f" Location: {path}")
|
|
292
|
+
print()
|
|
293
|
+
|
|
294
|
+
result = init_skill(skill_name, path)
|
|
295
|
+
|
|
296
|
+
if result:
|
|
297
|
+
sys.exit(0)
|
|
298
|
+
else:
|
|
299
|
+
sys.exit(1)
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
if __name__ == "__main__":
|
|
303
|
+
main()
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Skill Packager - Creates a distributable zip file of a skill folder
|
|
4
|
+
|
|
5
|
+
Usage:
|
|
6
|
+
python utils/package_skill.py <path/to/skill-folder> [output-directory]
|
|
7
|
+
|
|
8
|
+
Example:
|
|
9
|
+
python utils/package_skill.py skills/public/my-skill
|
|
10
|
+
python utils/package_skill.py skills/public/my-skill ./dist
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import sys
|
|
14
|
+
import zipfile
|
|
15
|
+
from pathlib import Path
|
|
16
|
+
from quick_validate import validate_skill
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def package_skill(skill_path, output_dir=None):
|
|
20
|
+
"""
|
|
21
|
+
Package a skill folder into a zip file.
|
|
22
|
+
|
|
23
|
+
Args:
|
|
24
|
+
skill_path: Path to the skill folder
|
|
25
|
+
output_dir: Optional output directory for the zip file (defaults to current directory)
|
|
26
|
+
|
|
27
|
+
Returns:
|
|
28
|
+
Path to the created zip file, or None if error
|
|
29
|
+
"""
|
|
30
|
+
skill_path = Path(skill_path).resolve()
|
|
31
|
+
|
|
32
|
+
# Validate skill folder exists
|
|
33
|
+
if not skill_path.exists():
|
|
34
|
+
print(f"❌ Error: Skill folder not found: {skill_path}")
|
|
35
|
+
return None
|
|
36
|
+
|
|
37
|
+
if not skill_path.is_dir():
|
|
38
|
+
print(f"❌ Error: Path is not a directory: {skill_path}")
|
|
39
|
+
return None
|
|
40
|
+
|
|
41
|
+
# Validate SKILL.md exists
|
|
42
|
+
skill_md = skill_path / "SKILL.md"
|
|
43
|
+
if not skill_md.exists():
|
|
44
|
+
print(f"❌ Error: SKILL.md not found in {skill_path}")
|
|
45
|
+
return None
|
|
46
|
+
|
|
47
|
+
# Run validation before packaging
|
|
48
|
+
print("🔍 Validating skill...")
|
|
49
|
+
valid, message = validate_skill(skill_path)
|
|
50
|
+
if not valid:
|
|
51
|
+
print(f"❌ Validation failed: {message}")
|
|
52
|
+
print(" Please fix the validation errors before packaging.")
|
|
53
|
+
return None
|
|
54
|
+
print(f"✅ {message}\n")
|
|
55
|
+
|
|
56
|
+
# Determine output location
|
|
57
|
+
skill_name = skill_path.name
|
|
58
|
+
if output_dir:
|
|
59
|
+
output_path = Path(output_dir).resolve()
|
|
60
|
+
output_path.mkdir(parents=True, exist_ok=True)
|
|
61
|
+
else:
|
|
62
|
+
output_path = Path.cwd()
|
|
63
|
+
|
|
64
|
+
zip_filename = output_path / f"{skill_name}.zip"
|
|
65
|
+
|
|
66
|
+
# Create the zip file
|
|
67
|
+
try:
|
|
68
|
+
with zipfile.ZipFile(zip_filename, 'w', zipfile.ZIP_DEFLATED) as zipf:
|
|
69
|
+
# Walk through the skill directory
|
|
70
|
+
for file_path in skill_path.rglob('*'):
|
|
71
|
+
if file_path.is_file():
|
|
72
|
+
# Calculate the relative path within the zip
|
|
73
|
+
arcname = file_path.relative_to(skill_path.parent)
|
|
74
|
+
zipf.write(file_path, arcname)
|
|
75
|
+
print(f" Added: {arcname}")
|
|
76
|
+
|
|
77
|
+
print(f"\n✅ Successfully packaged skill to: {zip_filename}")
|
|
78
|
+
return zip_filename
|
|
79
|
+
|
|
80
|
+
except Exception as e:
|
|
81
|
+
print(f"❌ Error creating zip file: {e}")
|
|
82
|
+
return None
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def main():
|
|
86
|
+
if len(sys.argv) < 2:
|
|
87
|
+
print("Usage: python utils/package_skill.py <path/to/skill-folder> [output-directory]")
|
|
88
|
+
print("\nExample:")
|
|
89
|
+
print(" python utils/package_skill.py skills/public/my-skill")
|
|
90
|
+
print(" python utils/package_skill.py skills/public/my-skill ./dist")
|
|
91
|
+
sys.exit(1)
|
|
92
|
+
|
|
93
|
+
skill_path = sys.argv[1]
|
|
94
|
+
output_dir = sys.argv[2] if len(sys.argv) > 2 else None
|
|
95
|
+
|
|
96
|
+
print(f"📦 Packaging skill: {skill_path}")
|
|
97
|
+
if output_dir:
|
|
98
|
+
print(f" Output directory: {output_dir}")
|
|
99
|
+
print()
|
|
100
|
+
|
|
101
|
+
result = package_skill(skill_path, output_dir)
|
|
102
|
+
|
|
103
|
+
if result:
|
|
104
|
+
sys.exit(0)
|
|
105
|
+
else:
|
|
106
|
+
sys.exit(1)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
if __name__ == "__main__":
|
|
110
|
+
main()
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Quick validation script for skills - minimal version
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import sys
|
|
7
|
+
import os
|
|
8
|
+
import re
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
def validate_skill(skill_path):
|
|
12
|
+
"""Basic validation of a skill"""
|
|
13
|
+
skill_path = Path(skill_path)
|
|
14
|
+
|
|
15
|
+
# Check SKILL.md exists
|
|
16
|
+
skill_md = skill_path / 'SKILL.md'
|
|
17
|
+
if not skill_md.exists():
|
|
18
|
+
return False, "SKILL.md not found"
|
|
19
|
+
|
|
20
|
+
# Read and validate frontmatter
|
|
21
|
+
content = skill_md.read_text()
|
|
22
|
+
if not content.startswith('---'):
|
|
23
|
+
return False, "No YAML frontmatter found"
|
|
24
|
+
|
|
25
|
+
# Extract frontmatter
|
|
26
|
+
match = re.match(r'^---\n(.*?)\n---', content, re.DOTALL)
|
|
27
|
+
if not match:
|
|
28
|
+
return False, "Invalid frontmatter format"
|
|
29
|
+
|
|
30
|
+
frontmatter = match.group(1)
|
|
31
|
+
|
|
32
|
+
# Check required fields
|
|
33
|
+
if 'name:' not in frontmatter:
|
|
34
|
+
return False, "Missing 'name' in frontmatter"
|
|
35
|
+
if 'description:' not in frontmatter:
|
|
36
|
+
return False, "Missing 'description' in frontmatter"
|
|
37
|
+
|
|
38
|
+
# Extract name for validation
|
|
39
|
+
name_match = re.search(r'name:\s*(.+)', frontmatter)
|
|
40
|
+
if name_match:
|
|
41
|
+
name = name_match.group(1).strip()
|
|
42
|
+
# Check naming convention (hyphen-case: lowercase with hyphens)
|
|
43
|
+
if not re.match(r'^[a-z0-9-]+$', name):
|
|
44
|
+
return False, f"Name '{name}' should be hyphen-case (lowercase letters, digits, and hyphens only)"
|
|
45
|
+
if name.startswith('-') or name.endswith('-') or '--' in name:
|
|
46
|
+
return False, f"Name '{name}' cannot start/end with hyphen or contain consecutive hyphens"
|
|
47
|
+
|
|
48
|
+
# Extract and validate description
|
|
49
|
+
desc_match = re.search(r'description:\s*(.+)', frontmatter)
|
|
50
|
+
if desc_match:
|
|
51
|
+
description = desc_match.group(1).strip()
|
|
52
|
+
# Check for angle brackets
|
|
53
|
+
if '<' in description or '>' in description:
|
|
54
|
+
return False, "Description cannot contain angle brackets (< or >)"
|
|
55
|
+
|
|
56
|
+
return True, "Skill is valid!"
|
|
57
|
+
|
|
58
|
+
if __name__ == "__main__":
|
|
59
|
+
if len(sys.argv) != 2:
|
|
60
|
+
print("Usage: python quick_validate.py <skill_directory>")
|
|
61
|
+
sys.exit(1)
|
|
62
|
+
|
|
63
|
+
valid, message = validate_skill(sys.argv[1])
|
|
64
|
+
print(message)
|
|
65
|
+
sys.exit(0 if valid else 1)
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
Always figure out the Package manager the project uses: !`ls package-lock.json yarn.lock pnpm-lock.yaml bun.lockb 2>/dev/null | head -1`
|
|
2
|
+
Always invoke /prompt-complexity-scorer skill first on each user request to evaluate complexity (1-10 scale). For scores 5+, suggest writing to specs/<spec-name>.md before proceeding.
|
|
3
|
+
Always invoke /coding-philosophy skill to enforce immutable coding principles, function structure ordering, and YAGNI+SOLID+DRY+KISS patterns
|
|
4
|
+
Always invoke /jsdoc-best-practices skill when writing or reviewing JSDoc documentation to ensure "why" over "what" and proper tag usage
|
|
5
|
+
Always read @README.md
|
|
6
|
+
Always read @package.json without limit or offset to understand what third party packages are used
|
|
7
|
+
Always read @package.json without limit or offset to understand what scripts are used
|
|
8
|
+
Always read @eslint.config.mjs without limit or offset to understand this project's linting standards
|
|
9
|
+
Always read @.prettierrc.json without limit or offset to understand this project's formatting standards
|
|
10
|
+
Always make atomic commits with clear conventional messages
|
|
11
|
+
Always create clear documentation preambles with JSDoc for new code
|
|
12
|
+
Always update preambles when updating or modifying code
|
|
13
|
+
Always add language specifiers to fenced code blocks in Markdown.
|
|
14
|
+
Always use project-relative paths rather than absolute paths in documentation and Markdown.
|
|
15
|
+
Always ignore build folders (dist, build, etc) unless specified otherwise
|
|
16
|
+
Always delete and remove old code completely - no deprecation needed
|
|
17
|
+
Always read @PROJECT_RULES.md without limit or offset to understand additional rules for this project
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
Never commit changes to an environment branch (dev, staging, main) directly. This is enforced by the pre-commit hook.
|
|
21
|
+
Never skip or disable any tests or quality checks.
|
|
22
|
+
Never add .skip to a test unless explicitly asked to
|
|
23
|
+
Never directly modify a file in node_modules/
|
|
24
|
+
Never use --no-verify with git commands.
|
|
25
|
+
Never make assumptions about whether something worked. Test it empirically to confirm.
|
|
26
|
+
Never cover up bugs or issues. Always fix them properly.
|
|
27
|
+
Never write functions or methods unless they are needed.
|
|
28
|
+
Never say "not related to our changes" or "not relevant to this task". Always provide a solution.
|
|
29
|
+
Never create functions or variables with versioned names (processV2, handleNew, ClientOld)
|
|
30
|
+
Never write migration code unless explicitly requested
|
|
31
|
+
Never write unhelpful comments like "removed code"
|
|
32
|
+
Never commit changes to an environment branch (dev, staging, main) directly. This is enforced by the pre-commit hook.
|
|
33
|
+
Never skip or disable any tests or quality checks.
|
|
34
|
+
Never use --no-verify or attempt to bypass a git hook
|
|
35
|
+
Never create placeholders
|
|
36
|
+
Never create TODOs
|
|
37
|
+
Never create versions of files (i.e. V2 or Optimized)
|
|
38
|
+
Never assume test expectations before verifying actual implementation behavior (run tests to learn the behavior, then adjust expectations to match)
|
|
39
|
+
Never duplicate test helper functions without using eslint-disable comments for sonarjs/no-identical-functions when duplication is intentional for test isolation (exception to the general eslint-disable rule below)
|
|
40
|
+
Never add eslint-disable for lint warnings (except sonarjs/no-identical-functions in tests as noted above)
|
|
41
|
+
Never delete anything that isn't tracked in git
|
|
42
|
+
Never delete anything outside of this project's directory
|
|
43
|
+
Never add "BREAKING CHANGE" to a commit message unless there is actually a breaking change
|
|
44
|
+
|
|
45
|
+
ONLY use eslint-disable as a last resort and confirm with human before doing so
|
|
46
|
+
ONLY use eslint-disable for test file max-lines when comprehensive test coverage requires extensive test cases (must include matching eslint-enable)
|
|
47
|
+
ONLY use eslint-disable functional/no-loop-statements in tests when using loops for test consolidation improves readability over dozens of individual tests
|
|
48
|
+
ONLY use ts-ignore as a last resort and confirm with human before doing so
|
|
49
|
+
ONLY use ts-expect-error as a last resort and confirm with human before doing so
|
|
50
|
+
ONLY use ts-nocheck as a last resort and confirm with human before doing so
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## Landing the Plane (Session Completion)
|
|
54
|
+
|
|
55
|
+
**When ending a work session**, you MUST complete ALL steps below. Work is NOT complete until `git push` succeeds.
|
|
56
|
+
|
|
57
|
+
**MANDATORY WORKFLOW:**
|
|
58
|
+
|
|
59
|
+
1. **File issues for remaining work** - Create issues for anything that needs follow-up
|
|
60
|
+
2. **Run quality gates** (if code changed) - Tests, linters, builds
|
|
61
|
+
3. **Update issue status** - Close finished work, update in-progress items
|
|
62
|
+
4. **PUSH TO REMOTE** - This is MANDATORY:
|
|
63
|
+
```bash
|
|
64
|
+
git pull --rebase
|
|
65
|
+
bd sync
|
|
66
|
+
git push
|
|
67
|
+
git status # MUST show "up to date with origin"
|
|
68
|
+
```
|
|
69
|
+
5. **Clean up** - Clear stashes, prune remote branches
|
|
70
|
+
6. **Verify** - All changes committed AND pushed
|
|
71
|
+
7. **Hand off** - Provide context for next session
|
|
72
|
+
|
|
73
|
+
**CRITICAL RULES:**
|
|
74
|
+
- Work is NOT complete until `git push` succeeds
|
|
75
|
+
- NEVER stop before pushing - that leaves work stranded locally
|
|
76
|
+
- NEVER say "ready to push when you are" - YOU must push
|
|
77
|
+
- If push fails, resolve and retry until it succeeds
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
IMPORTANT: The automated workflow eliminates the need for `/clear` between phases
|
|
2
|
+
|
|
3
|
+
1. Create a file inside specs/ called `<something>.md` and describe what you want claude to do in as much detail as possible. See any `brief.md` for an example.
|
|
4
|
+
2. run `/project:bootstrap @specs/<something>.md` inside the claude session
|
|
5
|
+
1. This will create a new project directory in `projects/`
|
|
6
|
+
2. This will conduct comprehensive codebase and web research
|
|
7
|
+
3. This will detect knowledge gaps in the research
|
|
8
|
+
4. **If gaps are found**: Review `projects/<project-name>/research.md` and resolve any "Open Questions" before proceeding to step 3
|
|
9
|
+
5. **If no gaps found**: Proceed directly to step 3
|
|
10
|
+
3. run `/project:execute @projects/<project-name>` inside the claude session
|
|
11
|
+
1. This will validate research completeness (abort if gaps exist)
|
|
12
|
+
2. This will create tasks for the project based on the research and brief
|
|
13
|
+
3. This will implement all tasks following TDD practices
|
|
14
|
+
4. This will verify that all the tasks were actually completed
|
|
15
|
+
5. This will take any patterns, findings or rules that weren't already captured and add them to `PROJECT_RULES.md`
|
|
16
|
+
|
|
17
|
+
If you prefer the manual workflow with individual commands, see `HUMAN_MANUAL.md` for the step-by-step process.
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"scripts": {
|
|
3
|
+
"watch": "tsc -w",
|
|
4
|
+
"cdk": "cdk"
|
|
5
|
+
},
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@aws-cdk/aws-amplify-alpha": "^2.235.0-alpha.0",
|
|
8
|
+
"aws-cdk-github-oidc": "^2.4.1",
|
|
9
|
+
"aws-cdk-lib": "2.235.0",
|
|
10
|
+
"constructs": "^10.4.5",
|
|
11
|
+
"lodash": "^4.17.21",
|
|
12
|
+
"source-map-support": "^0.5.21"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"aws-cdk": "2.235.0"
|
|
16
|
+
},
|
|
17
|
+
"bin": {
|
|
18
|
+
"infrastructure": "bin/infrastructure.js"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuBpC;;GAEG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAiBvC;AAkFD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
|