@fprad0/skill-master-mcp 0.0.9 → 0.0.11
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/CHANGELOG.md +15 -0
- package/README.md +43 -9
- package/VERSION.md +3 -3
- package/bin/lib/client-config.mjs +268 -0
- package/bin/lib/menu-core.mjs +678 -33
- package/bin/skill-master-bootstrap-global.mjs +15 -1
- package/bin/skill-master-doctor.mjs +181 -0
- package/bin/skill-master-install-global-skills.mjs +30 -10
- package/bin/skill-master-menu.mjs +184 -36
- package/bin/skill-master-register-clients.mjs +43 -99
- package/dist/index.js +30 -5
- package/dist/index.js.map +1 -1
- package/docs/operations/GUIA_MULTI_COMPUTADOR.md +255 -0
- package/docs/operations/GUIA_NPM_PUBLICO.md +147 -0
- package/docs/skill-candidates/v0.0.10/cli-creator/LICENSE.txt +201 -0
- package/docs/skill-candidates/v0.0.10/cli-creator/SKILL.md +160 -0
- package/docs/skill-candidates/v0.0.10/cli-creator/agents/openai.yaml +4 -0
- package/docs/skill-candidates/v0.0.10/cli-creator/references/agent-cli-patterns.md +154 -0
- package/docs/skill-candidates/v0.0.10/developer-workstation-ops/SKILL.md +32 -0
- package/docs/skill-candidates/v0.0.10/figma/LICENSE.txt +2 -0
- package/docs/skill-candidates/v0.0.10/figma/SKILL.md +42 -0
- package/docs/skill-candidates/v0.0.10/figma/agents/openai.yaml +14 -0
- package/docs/skill-candidates/v0.0.10/figma/assets/figma-small.svg +3 -0
- package/docs/skill-candidates/v0.0.10/figma/assets/figma.png +0 -0
- package/docs/skill-candidates/v0.0.10/figma/assets/icon.svg +28 -0
- package/docs/skill-candidates/v0.0.10/figma/references/figma-mcp-config.md +35 -0
- package/docs/skill-candidates/v0.0.10/figma/references/figma-tools-and-prompts.md +34 -0
- package/docs/skill-candidates/v0.0.10/figma-code-connect-components/LICENSE.TXT +2 -0
- package/docs/skill-candidates/v0.0.10/figma-code-connect-components/SKILL.md +349 -0
- package/docs/skill-candidates/v0.0.10/figma-code-connect-components/agents/openai.yaml +14 -0
- package/docs/skill-candidates/v0.0.10/figma-code-connect-components/assets/figma-small.svg +3 -0
- package/docs/skill-candidates/v0.0.10/figma-code-connect-components/assets/figma.png +0 -0
- package/docs/skill-candidates/v0.0.10/figma-code-connect-components/assets/icon.svg +28 -0
- package/docs/skill-candidates/v0.0.10/figma-code-connect-components/references/mapping-checklist.md +7 -0
- package/docs/skill-candidates/v0.0.10/figma-code-connect-components/scripts/normalize_node_id.py +25 -0
- package/docs/skill-candidates/v0.0.10/figma-create-design-system-rules/LICENSE.TXT +2 -0
- package/docs/skill-candidates/v0.0.10/figma-create-design-system-rules/SKILL.md +537 -0
- package/docs/skill-candidates/v0.0.10/figma-create-design-system-rules/agents/openai.yaml +14 -0
- package/docs/skill-candidates/v0.0.10/figma-create-design-system-rules/assets/figma-small.svg +3 -0
- package/docs/skill-candidates/v0.0.10/figma-create-design-system-rules/assets/figma.png +0 -0
- package/docs/skill-candidates/v0.0.10/figma-create-design-system-rules/assets/icon.svg +28 -0
- package/docs/skill-candidates/v0.0.10/figma-create-design-system-rules/references/rule-template.md +15 -0
- package/docs/skill-candidates/v0.0.10/figma-create-design-system-rules/scripts/check_agents_md.sh +9 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-design/LICENSE.TXT +2 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-design/SKILL.md +341 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-design/agents/openai.yaml +14 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-design/assets/figma-small.svg +3 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-design/assets/figma.png +0 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-design/assets/icon.svg +28 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-design/maintainers.yml +1 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/LICENSE.TXT +2 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/SKILL.md +314 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/agents/openai.yaml +14 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/assets/figma-small.svg +3 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/assets/figma.png +0 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/assets/icon.svg +28 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/maintainers.yml +3 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/references/code-connect-setup.md +260 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/references/component-creation.md +1014 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/references/discovery-phase.md +518 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/references/documentation-creation.md +834 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/references/error-recovery.md +540 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/references/naming-conventions.md +527 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/references/token-creation.md +962 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/scripts/bindVariablesToComponent.js +110 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/scripts/cleanupOrphans.js +127 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/scripts/createComponentWithVariants.js +148 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/scripts/createDocumentationPage.js +139 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/scripts/createSemanticTokens.js +108 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/scripts/createVariableCollection.js +49 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/scripts/inspectFileStructure.js +121 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/scripts/rehydrateState.js +92 -0
- package/docs/skill-candidates/v0.0.10/figma-generate-library/scripts/validateCreation.js +83 -0
- package/docs/skill-candidates/v0.0.10/figma-implement-design/LICENSE.txt +2 -0
- package/docs/skill-candidates/v0.0.10/figma-implement-design/SKILL.md +258 -0
- package/docs/skill-candidates/v0.0.10/figma-implement-design/agents/openai.yaml +14 -0
- package/docs/skill-candidates/v0.0.10/figma-implement-design/assets/figma-small.svg +3 -0
- package/docs/skill-candidates/v0.0.10/figma-implement-design/assets/figma.png +0 -0
- package/docs/skill-candidates/v0.0.10/figma-implement-design/assets/icon.svg +28 -0
- package/docs/skill-candidates/v0.0.10/figma-use/LICENSE.TXT +2 -0
- package/docs/skill-candidates/v0.0.10/figma-use/SKILL.md +233 -0
- package/docs/skill-candidates/v0.0.10/figma-use/agents/openai.yaml +14 -0
- package/docs/skill-candidates/v0.0.10/figma-use/assets/figma-small.svg +3 -0
- package/docs/skill-candidates/v0.0.10/figma-use/assets/figma.png +0 -0
- package/docs/skill-candidates/v0.0.10/figma-use/assets/icon.svg +28 -0
- package/docs/skill-candidates/v0.0.10/figma-use/maintainers.yml +1 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/api-reference.md +301 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/common-patterns.md +512 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/component-patterns.md +488 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/effect-style-patterns.md +123 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/gotchas.md +599 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/maintainers.yml +12 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/plugin-api-patterns.md +513 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/plugin-api-standalone.d.ts +11293 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/plugin-api-standalone.index.md +441 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/text-style-patterns.md +203 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/validation-and-recovery.md +109 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/variable-patterns.md +354 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/working-with-design-systems/maintainers.yml +9 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/working-with-design-systems/wwds-components--creating.md +17 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/working-with-design-systems/wwds-components--using.md +17 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/working-with-design-systems/wwds-components.md +50 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/working-with-design-systems/wwds-effect-styles.md +52 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/working-with-design-systems/wwds-text-styles.md +90 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/working-with-design-systems/wwds-variables--creating.md +13 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/working-with-design-systems/wwds-variables--using.md +13 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/working-with-design-systems/wwds-variables.md +64 -0
- package/docs/skill-candidates/v0.0.10/figma-use/references/working-with-design-systems/wwds.md +41 -0
- package/docs/skill-candidates/v0.0.10/frontend-design/LICENSE.txt +177 -0
- package/docs/skill-candidates/v0.0.10/frontend-design/SKILL.md +55 -0
- package/docs/skill-candidates/v0.0.10/frontend-ui-ux-systems/SKILL.md +32 -0
- package/docs/skill-candidates/v0.0.10/github/SKILL.md +74 -0
- package/docs/skill-candidates/v0.0.10/github/agents/openai.yaml +6 -0
- package/docs/skill-candidates/v0.0.10/github/assets/github-small.svg +3 -0
- package/docs/skill-candidates/v0.0.10/github/assets/github.png +0 -0
- package/docs/skill-candidates/v0.0.10/image-graphic-design-rendering/SKILL.md +28 -0
- package/docs/skill-candidates/v0.0.10/language-quality-pt-en-fr-it-ru/SKILL.md +28 -0
- package/docs/skill-candidates/v0.0.10/math-physics-reasoning/SKILL.md +28 -0
- package/docs/skill-candidates/v0.0.10/mcp-builder/LICENSE.txt +202 -0
- package/docs/skill-candidates/v0.0.10/mcp-builder/SKILL.md +236 -0
- package/docs/skill-candidates/v0.0.10/mcp-builder/reference/evaluation.md +602 -0
- package/docs/skill-candidates/v0.0.10/mcp-builder/reference/mcp_best_practices.md +249 -0
- package/docs/skill-candidates/v0.0.10/mcp-builder/reference/node_mcp_server.md +970 -0
- package/docs/skill-candidates/v0.0.10/mcp-builder/reference/python_mcp_server.md +719 -0
- package/docs/skill-candidates/v0.0.10/mcp-builder/scripts/connections.py +151 -0
- package/docs/skill-candidates/v0.0.10/mcp-builder/scripts/evaluation.py +373 -0
- package/docs/skill-candidates/v0.0.10/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/docs/skill-candidates/v0.0.10/mcp-builder/scripts/requirements.txt +2 -0
- package/docs/skill-candidates/v0.0.10/mcp-client-readiness/SKILL.md +31 -0
- package/docs/skill-candidates/v0.0.10/openai-docs/LICENSE.txt +201 -0
- package/docs/skill-candidates/v0.0.10/openai-docs/SKILL.md +161 -0
- package/docs/skill-candidates/v0.0.10/openai-docs/agents/openai.yaml +14 -0
- package/docs/skill-candidates/v0.0.10/openai-docs/assets/openai-small.svg +3 -0
- package/docs/skill-candidates/v0.0.10/openai-docs/assets/openai.png +0 -0
- package/docs/skill-candidates/v0.0.10/openai-docs/references/latest-model.md +37 -0
- package/docs/skill-candidates/v0.0.10/openai-docs/references/prompting-guide.md +244 -0
- package/docs/skill-candidates/v0.0.10/openai-docs/references/upgrade-guide.md +181 -0
- package/docs/skill-candidates/v0.0.10/openai-docs/scripts/fetch-codex-manual.mjs +598 -0
- package/docs/skill-candidates/v0.0.10/openai-docs/scripts/resolve-latest-model-info.js +147 -0
- package/docs/skill-candidates/v0.0.10/playwright/LICENSE.txt +201 -0
- package/docs/skill-candidates/v0.0.10/playwright/NOTICE.txt +14 -0
- package/docs/skill-candidates/v0.0.10/playwright/SKILL.md +147 -0
- package/docs/skill-candidates/v0.0.10/playwright/agents/openai.yaml +6 -0
- package/docs/skill-candidates/v0.0.10/playwright/assets/playwright-small.svg +3 -0
- package/docs/skill-candidates/v0.0.10/playwright/assets/playwright.png +0 -0
- package/docs/skill-candidates/v0.0.10/playwright/references/cli.md +116 -0
- package/docs/skill-candidates/v0.0.10/playwright/references/workflows.md +95 -0
- package/docs/skill-candidates/v0.0.10/playwright/scripts/playwright_cli.sh +25 -0
- package/docs/skill-candidates/v0.0.10/polyglot-backend-engineering/SKILL.md +32 -0
- package/docs/skill-candidates/v0.0.10/screenshot/LICENSE.txt +201 -0
- package/docs/skill-candidates/v0.0.10/screenshot/SKILL.md +267 -0
- package/docs/skill-candidates/v0.0.10/screenshot/agents/openai.yaml +6 -0
- package/docs/skill-candidates/v0.0.10/screenshot/assets/screenshot-small.svg +5 -0
- package/docs/skill-candidates/v0.0.10/screenshot/assets/screenshot.png +0 -0
- package/docs/skill-candidates/v0.0.10/screenshot/scripts/ensure_macos_permissions.sh +54 -0
- package/docs/skill-candidates/v0.0.10/screenshot/scripts/macos_display_info.swift +22 -0
- package/docs/skill-candidates/v0.0.10/screenshot/scripts/macos_permissions.swift +40 -0
- package/docs/skill-candidates/v0.0.10/screenshot/scripts/macos_window_info.swift +126 -0
- package/docs/skill-candidates/v0.0.10/screenshot/scripts/take_screenshot.ps1 +163 -0
- package/docs/skill-candidates/v0.0.10/screenshot/scripts/take_screenshot.py +585 -0
- package/docs/skill-candidates/v0.0.10/skill-master-orchestrator/SKILL.md +62 -0
- package/docs/skill-candidates/v0.0.10/skill-master-orchestrator/agents/openai.yaml +4 -0
- package/docs/skill-candidates/v0.0.10/skill-master-orchestrator/references/activation-policy.md +77 -0
- package/docs/skill-candidates/v0.0.10/skill-master-orchestrator/references/human-approval-policy.md +83 -0
- package/docs/skill-candidates/v0.0.10/skill-master-orchestrator/references/persona-dev-senior-master.md +46 -0
- package/docs/skill-candidates/v0.0.10/terminal-menu-operations/SKILL.md +30 -0
- package/docs/skill-candidates/v0.0.10/terminal-pixel-art-tui/SKILL.md +43 -0
- package/docs/skill-candidates/v0.0.10/webapp-testing/LICENSE.txt +202 -0
- package/docs/skill-candidates/v0.0.10/webapp-testing/SKILL.md +96 -0
- package/docs/skill-candidates/v0.0.10/webapp-testing/examples/console_logging.py +35 -0
- package/docs/skill-candidates/v0.0.10/webapp-testing/examples/element_discovery.py +40 -0
- package/docs/skill-candidates/v0.0.10/webapp-testing/examples/static_html_automation.py +33 -0
- package/docs/skill-candidates/v0.0.10/webapp-testing/scripts/with_server.py +106 -0
- package/docs/skill-candidates/v0.0.10/winui-app/LICENSE.txt +202 -0
- package/docs/skill-candidates/v0.0.10/winui-app/SKILL.md +94 -0
- package/docs/skill-candidates/v0.0.10/winui-app/agents/openai.yaml +5 -0
- package/docs/skill-candidates/v0.0.10/winui-app/assets/winui.png +0 -0
- package/docs/skill-candidates/v0.0.10/winui-app/config.yaml +50 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/_sections.md +96 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/accessibility-input-and-localization.md +51 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/build-run-and-launch-verification.md +72 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/community-toolkit-controls-and-helpers.md +57 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/controls-layout-and-adaptive-ui.md +84 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/foundation-environment-audit-and-remediation.md +82 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/foundation-setup-and-project-selection.md +67 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/foundation-template-first-recovery.md +62 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/foundation-winui-app-structure.md +62 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/motion-animations-and-polish.md +45 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/performance-diagnostics-and-responsiveness.md +46 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/sample-source-map.md +37 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/shell-navigation-and-windowing.md +67 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/styling-theming-materials-and-icons.md +71 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/testing-debugging-and-review-checklists.md +77 -0
- package/docs/skill-candidates/v0.0.10/winui-app/references/windows-app-sdk-lifecycle-notifications-and-deployment.md +52 -0
- package/docs/skill-candidates/v0.0.11/frontend-dev-guidelines/SKILL.md +399 -0
- package/docs/skill-candidates/v0.0.11/frontend-dev-guidelines/resources/common-patterns.md +331 -0
- package/docs/skill-candidates/v0.0.11/frontend-dev-guidelines/resources/complete-examples.md +872 -0
- package/docs/skill-candidates/v0.0.11/frontend-dev-guidelines/resources/component-patterns.md +502 -0
- package/docs/skill-candidates/v0.0.11/frontend-dev-guidelines/resources/data-fetching.md +767 -0
- package/docs/skill-candidates/v0.0.11/frontend-dev-guidelines/resources/file-organization.md +502 -0
- package/docs/skill-candidates/v0.0.11/frontend-dev-guidelines/resources/loading-and-error-states.md +501 -0
- package/docs/skill-candidates/v0.0.11/frontend-dev-guidelines/resources/performance.md +406 -0
- package/docs/skill-candidates/v0.0.11/frontend-dev-guidelines/resources/routing-guide.md +364 -0
- package/docs/skill-candidates/v0.0.11/frontend-dev-guidelines/resources/styling-guide.md +428 -0
- package/docs/skill-candidates/v0.0.11/frontend-dev-guidelines/resources/typescript-standards.md +418 -0
- package/docs/skill-candidates/v0.0.11/git-version-control-ops/SKILL.md +34 -0
- package/docs/skill-candidates/v0.0.11/go-engineering/SKILL.md +34 -0
- package/docs/skill-candidates/v0.0.11/java-engineering/SKILL.md +34 -0
- package/docs/skill-candidates/v0.0.11/javascript-engineering/SKILL.md +34 -0
- package/docs/skill-candidates/v0.0.11/json-contract-design/SKILL.md +34 -0
- package/docs/skill-candidates/v0.0.11/multi-client-mcp-ops/SKILL.md +36 -0
- package/docs/skill-candidates/v0.0.11/nextjs/SKILL.md +745 -0
- package/docs/skill-candidates/v0.0.11/nextjs/agents/openai.yaml +3 -0
- package/docs/skill-candidates/v0.0.11/nextjs/references/app-router-files.md +94 -0
- package/docs/skill-candidates/v0.0.11/python-engineering/SKILL.md +34 -0
- package/docs/skill-candidates/v0.0.11/ruby-engineering/SKILL.md +34 -0
- package/docs/skill-candidates/v0.0.11/senior-fullstack/SKILL.md +209 -0
- package/docs/skill-candidates/v0.0.11/senior-fullstack/references/architecture_patterns.md +103 -0
- package/docs/skill-candidates/v0.0.11/senior-fullstack/references/development_workflows.md +103 -0
- package/docs/skill-candidates/v0.0.11/senior-fullstack/references/tech_stack_guide.md +103 -0
- package/docs/skill-candidates/v0.0.11/senior-fullstack/scripts/code_quality_analyzer.py +114 -0
- package/docs/skill-candidates/v0.0.11/senior-fullstack/scripts/fullstack_scaffolder.py +114 -0
- package/docs/skill-candidates/v0.0.11/senior-fullstack/scripts/project_scaffolder.py +114 -0
- package/docs/skill-candidates/v0.0.11/shadcn/SKILL.md +573 -0
- package/docs/skill-candidates/v0.0.11/shadcn/agents/openai.yaml +3 -0
- package/docs/skill-candidates/v0.0.11/sql-postgresql-engineering/SKILL.md +34 -0
- package/docs/skill-candidates/v0.0.11/terminal-shell-ops/SKILL.md +34 -0
- package/docs/skill-candidates/v0.0.11/typescript-expert/SKILL.md +429 -0
- package/docs/skill-candidates/v0.0.11/typescript-expert/references/tsconfig-strict.json +92 -0
- package/docs/skill-candidates/v0.0.11/typescript-expert/references/typescript-cheatsheet.md +383 -0
- package/docs/skill-candidates/v0.0.11/typescript-expert/references/utility-types.ts +335 -0
- package/docs/skill-candidates/v0.0.11/typescript-expert/scripts/ts_diagnostic.py +203 -0
- package/docs/skill-candidates/v0.0.11/ui-component-primitives/SKILL.md +34 -0
- package/docs/skill-candidates/v0.0.11/web-mobile-design-systems/SKILL.md +34 -0
- package/docs/skill-candidates/v0.0.11/windows-linux-platform-ops/SKILL.md +34 -0
- package/manifests/channels/beta.json +7 -7
- package/manifests/channels/stable.json +8 -8
- package/network/unapproved-skill-candidates.json +34 -1
- package/package.json +7 -2
- package/scripts/verify-menu-actions.mjs +115 -0
package/docs/skill-candidates/v0.0.11/frontend-dev-guidelines/resources/typescript-standards.md
ADDED
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
# TypeScript Standards
|
|
2
|
+
|
|
3
|
+
TypeScript best practices for type safety and maintainability in React frontend code.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Strict Mode
|
|
8
|
+
|
|
9
|
+
### Configuration
|
|
10
|
+
|
|
11
|
+
TypeScript strict mode is **enabled** in the project:
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
// tsconfig.json
|
|
15
|
+
{
|
|
16
|
+
"compilerOptions": {
|
|
17
|
+
"strict": true,
|
|
18
|
+
"noImplicitAny": true,
|
|
19
|
+
"strictNullChecks": true
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**This means:**
|
|
25
|
+
- No implicit `any` types
|
|
26
|
+
- Null/undefined must be handled explicitly
|
|
27
|
+
- Type safety enforced
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## No `any` Type
|
|
32
|
+
|
|
33
|
+
### The Rule
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
// ❌ NEVER use any
|
|
37
|
+
function handleData(data: any) {
|
|
38
|
+
return data.something;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// ✅ Use specific types
|
|
42
|
+
interface MyData {
|
|
43
|
+
something: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function handleData(data: MyData) {
|
|
47
|
+
return data.something;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// ✅ Or use unknown for truly unknown data
|
|
51
|
+
function handleUnknown(data: unknown) {
|
|
52
|
+
if (typeof data === 'object' && data !== null && 'something' in data) {
|
|
53
|
+
return (data as MyData).something;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**If you truly don't know the type:**
|
|
59
|
+
- Use `unknown` (forces type checking)
|
|
60
|
+
- Use type guards to narrow
|
|
61
|
+
- Document why type is unknown
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Explicit Return Types
|
|
66
|
+
|
|
67
|
+
### Function Return Types
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
// ✅ CORRECT - Explicit return type
|
|
71
|
+
function getUser(id: number): Promise<User> {
|
|
72
|
+
return apiClient.get(`/users/${id}`);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function calculateTotal(items: Item[]): number {
|
|
76
|
+
return items.reduce((sum, item) => sum + item.price, 0);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// ❌ AVOID - Implicit return type (less clear)
|
|
80
|
+
function getUser(id: number) {
|
|
81
|
+
return apiClient.get(`/users/${id}`);
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Component Return Types
|
|
86
|
+
|
|
87
|
+
```typescript
|
|
88
|
+
// React.FC already provides return type (ReactElement)
|
|
89
|
+
export const MyComponent: React.FC<Props> = ({ prop }) => {
|
|
90
|
+
return <div>{prop}</div>;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
// For custom hooks
|
|
94
|
+
function useMyData(id: number): { data: Data; isLoading: boolean } {
|
|
95
|
+
const [data, setData] = useState<Data | null>(null);
|
|
96
|
+
const [isLoading, setIsLoading] = useState(true);
|
|
97
|
+
|
|
98
|
+
return { data: data!, isLoading };
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Type Imports
|
|
105
|
+
|
|
106
|
+
### Use 'type' Keyword
|
|
107
|
+
|
|
108
|
+
```typescript
|
|
109
|
+
// ✅ CORRECT - Explicitly mark as type import
|
|
110
|
+
import type { User } from '~types/user';
|
|
111
|
+
import type { Post } from '~types/post';
|
|
112
|
+
import type { SxProps, Theme } from '@mui/material';
|
|
113
|
+
|
|
114
|
+
// ❌ AVOID - Mixed value and type imports
|
|
115
|
+
import { User } from '~types/user'; // Unclear if type or value
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**Benefits:**
|
|
119
|
+
- Clearly separates types from values
|
|
120
|
+
- Better tree-shaking
|
|
121
|
+
- Prevents circular dependencies
|
|
122
|
+
- TypeScript compiler optimization
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Component Prop Interfaces
|
|
127
|
+
|
|
128
|
+
### Interface Pattern
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
/**
|
|
132
|
+
* Props for MyComponent
|
|
133
|
+
*/
|
|
134
|
+
interface MyComponentProps {
|
|
135
|
+
/** The user ID to display */
|
|
136
|
+
userId: number;
|
|
137
|
+
|
|
138
|
+
/** Optional callback when action completes */
|
|
139
|
+
onComplete?: () => void;
|
|
140
|
+
|
|
141
|
+
/** Display mode for the component */
|
|
142
|
+
mode?: 'view' | 'edit';
|
|
143
|
+
|
|
144
|
+
/** Additional CSS classes */
|
|
145
|
+
className?: string;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export const MyComponent: React.FC<MyComponentProps> = ({
|
|
149
|
+
userId,
|
|
150
|
+
onComplete,
|
|
151
|
+
mode = 'view', // Default value
|
|
152
|
+
className,
|
|
153
|
+
}) => {
|
|
154
|
+
return <div>...</div>;
|
|
155
|
+
};
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**Key Points:**
|
|
159
|
+
- Separate interface for props
|
|
160
|
+
- JSDoc comments for each prop
|
|
161
|
+
- Optional props use `?`
|
|
162
|
+
- Provide defaults in destructuring
|
|
163
|
+
|
|
164
|
+
### Props with Children
|
|
165
|
+
|
|
166
|
+
```typescript
|
|
167
|
+
interface ContainerProps {
|
|
168
|
+
children: React.ReactNode;
|
|
169
|
+
title: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// React.FC automatically includes children type, but be explicit
|
|
173
|
+
export const Container: React.FC<ContainerProps> = ({ children, title }) => {
|
|
174
|
+
return (
|
|
175
|
+
<div>
|
|
176
|
+
<h2>{title}</h2>
|
|
177
|
+
{children}
|
|
178
|
+
</div>
|
|
179
|
+
);
|
|
180
|
+
};
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## Utility Types
|
|
186
|
+
|
|
187
|
+
### Partial<T>
|
|
188
|
+
|
|
189
|
+
```typescript
|
|
190
|
+
// Make all properties optional
|
|
191
|
+
type UserUpdate = Partial<User>;
|
|
192
|
+
|
|
193
|
+
function updateUser(id: number, updates: Partial<User>) {
|
|
194
|
+
// updates can have any subset of User properties
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Pick<T, K>
|
|
199
|
+
|
|
200
|
+
```typescript
|
|
201
|
+
// Select specific properties
|
|
202
|
+
type UserPreview = Pick<User, 'id' | 'name' | 'email'>;
|
|
203
|
+
|
|
204
|
+
const preview: UserPreview = {
|
|
205
|
+
id: 1,
|
|
206
|
+
name: 'John',
|
|
207
|
+
email: 'john@example.com',
|
|
208
|
+
// Other User properties not allowed
|
|
209
|
+
};
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Omit<T, K>
|
|
213
|
+
|
|
214
|
+
```typescript
|
|
215
|
+
// Exclude specific properties
|
|
216
|
+
type UserWithoutPassword = Omit<User, 'password' | 'passwordHash'>;
|
|
217
|
+
|
|
218
|
+
const publicUser: UserWithoutPassword = {
|
|
219
|
+
id: 1,
|
|
220
|
+
name: 'John',
|
|
221
|
+
email: 'john@example.com',
|
|
222
|
+
// password and passwordHash not allowed
|
|
223
|
+
};
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Required<T>
|
|
227
|
+
|
|
228
|
+
```typescript
|
|
229
|
+
// Make all properties required
|
|
230
|
+
type RequiredConfig = Required<Config>; // All optional props become required
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Record<K, V>
|
|
234
|
+
|
|
235
|
+
```typescript
|
|
236
|
+
// Type-safe object/map
|
|
237
|
+
const userMap: Record<string, User> = {
|
|
238
|
+
'user1': { id: 1, name: 'John' },
|
|
239
|
+
'user2': { id: 2, name: 'Jane' },
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
// For styles
|
|
243
|
+
import type { SxProps, Theme } from '@mui/material';
|
|
244
|
+
|
|
245
|
+
const styles: Record<string, SxProps<Theme>> = {
|
|
246
|
+
container: { p: 2 },
|
|
247
|
+
header: { mb: 1 },
|
|
248
|
+
};
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## Type Guards
|
|
254
|
+
|
|
255
|
+
### Basic Type Guards
|
|
256
|
+
|
|
257
|
+
```typescript
|
|
258
|
+
function isUser(data: unknown): data is User {
|
|
259
|
+
return (
|
|
260
|
+
typeof data === 'object' &&
|
|
261
|
+
data !== null &&
|
|
262
|
+
'id' in data &&
|
|
263
|
+
'name' in data
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// Usage
|
|
268
|
+
if (isUser(response)) {
|
|
269
|
+
console.log(response.name); // TypeScript knows it's User
|
|
270
|
+
}
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### Discriminated Unions
|
|
274
|
+
|
|
275
|
+
```typescript
|
|
276
|
+
type LoadingState =
|
|
277
|
+
| { status: 'idle' }
|
|
278
|
+
| { status: 'loading' }
|
|
279
|
+
| { status: 'success'; data: Data }
|
|
280
|
+
| { status: 'error'; error: Error };
|
|
281
|
+
|
|
282
|
+
function Component({ state }: { state: LoadingState }) {
|
|
283
|
+
// TypeScript narrows type based on status
|
|
284
|
+
if (state.status === 'success') {
|
|
285
|
+
return <Display data={state.data} />; // data available here
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
if (state.status === 'error') {
|
|
289
|
+
return <Error error={state.error} />; // error available here
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
return <Loading />;
|
|
293
|
+
}
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
## Generic Types
|
|
299
|
+
|
|
300
|
+
### Generic Functions
|
|
301
|
+
|
|
302
|
+
```typescript
|
|
303
|
+
function getById<T>(items: T[], id: number): T | undefined {
|
|
304
|
+
return items.find(item => (item as any).id === id);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// Usage with type inference
|
|
308
|
+
const users: User[] = [...];
|
|
309
|
+
const user = getById(users, 123); // Type: User | undefined
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
### Generic Components
|
|
313
|
+
|
|
314
|
+
```typescript
|
|
315
|
+
interface ListProps<T> {
|
|
316
|
+
items: T[];
|
|
317
|
+
renderItem: (item: T) => React.ReactNode;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export function List<T>({ items, renderItem }: ListProps<T>): React.ReactElement {
|
|
321
|
+
return (
|
|
322
|
+
<div>
|
|
323
|
+
{items.map((item, index) => (
|
|
324
|
+
<div key={index}>{renderItem(item)}</div>
|
|
325
|
+
))}
|
|
326
|
+
</div>
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
// Usage
|
|
331
|
+
<List<User>
|
|
332
|
+
items={users}
|
|
333
|
+
renderItem={(user) => <UserCard user={user} />}
|
|
334
|
+
/>
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
---
|
|
338
|
+
|
|
339
|
+
## Type Assertions (Use Sparingly)
|
|
340
|
+
|
|
341
|
+
### When to Use
|
|
342
|
+
|
|
343
|
+
```typescript
|
|
344
|
+
// ✅ OK - When you know more than TypeScript
|
|
345
|
+
const element = document.getElementById('my-element') as HTMLInputElement;
|
|
346
|
+
const value = element.value;
|
|
347
|
+
|
|
348
|
+
// ✅ OK - API response that you've validated
|
|
349
|
+
const response = await api.getData();
|
|
350
|
+
const user = response.data as User; // You know the shape
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
### When NOT to Use
|
|
354
|
+
|
|
355
|
+
```typescript
|
|
356
|
+
// ❌ AVOID - Circumventing type safety
|
|
357
|
+
const data = getData() as any; // WRONG - defeats TypeScript
|
|
358
|
+
|
|
359
|
+
// ❌ AVOID - Unsafe assertion
|
|
360
|
+
const value = unknownValue as string; // Might not actually be string
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## Null/Undefined Handling
|
|
366
|
+
|
|
367
|
+
### Optional Chaining
|
|
368
|
+
|
|
369
|
+
```typescript
|
|
370
|
+
// ✅ CORRECT
|
|
371
|
+
const name = user?.profile?.name;
|
|
372
|
+
|
|
373
|
+
// Equivalent to:
|
|
374
|
+
const name = user && user.profile && user.profile.name;
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### Nullish Coalescing
|
|
378
|
+
|
|
379
|
+
```typescript
|
|
380
|
+
// ✅ CORRECT
|
|
381
|
+
const displayName = user?.name ?? 'Anonymous';
|
|
382
|
+
|
|
383
|
+
// Only uses default if null or undefined
|
|
384
|
+
// (Different from || which triggers on '', 0, false)
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
### Non-Null Assertion (Use Carefully)
|
|
388
|
+
|
|
389
|
+
```typescript
|
|
390
|
+
// ✅ OK - When you're certain value exists
|
|
391
|
+
const data = queryClient.getQueryData<Data>(['data'])!;
|
|
392
|
+
|
|
393
|
+
// ⚠️ CAREFUL - Only use when you KNOW it's not null
|
|
394
|
+
// Better to check explicitly:
|
|
395
|
+
const data = queryClient.getQueryData<Data>(['data']);
|
|
396
|
+
if (data) {
|
|
397
|
+
// Use data
|
|
398
|
+
}
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
---
|
|
402
|
+
|
|
403
|
+
## Summary
|
|
404
|
+
|
|
405
|
+
**TypeScript Checklist:**
|
|
406
|
+
- ✅ Strict mode enabled
|
|
407
|
+
- ✅ No `any` type (use `unknown` if needed)
|
|
408
|
+
- ✅ Explicit return types on functions
|
|
409
|
+
- ✅ Use `import type` for type imports
|
|
410
|
+
- ✅ JSDoc comments on prop interfaces
|
|
411
|
+
- ✅ Utility types (Partial, Pick, Omit, Required, Record)
|
|
412
|
+
- ✅ Type guards for narrowing
|
|
413
|
+
- ✅ Optional chaining and nullish coalescing
|
|
414
|
+
- ❌ Avoid type assertions unless necessary
|
|
415
|
+
|
|
416
|
+
**See Also:**
|
|
417
|
+
- [component-patterns.md](component-patterns.md) - Component typing
|
|
418
|
+
- [data-fetching.md](data-fetching.md) - API typing
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: git-version-control-ops
|
|
3
|
+
description: "Operate Git histories, branches, diffs, merges, rebases and release flows with practical attention to safety, reviewability, recovery paths and team collaboration."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Git Version Control Ops
|
|
7
|
+
|
|
8
|
+
Use this skill when the task is mainly about Git rather than application code itself.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
- Identify branch state, remote state and uncommitted work before acting.
|
|
13
|
+
- Prefer reviewable, reversible moves over clever history surgery.
|
|
14
|
+
- Keep commit intent explicit and scoped.
|
|
15
|
+
- Explain impact before risky history operations.
|
|
16
|
+
- Validate branch state after push, merge or release moves.
|
|
17
|
+
|
|
18
|
+
## Coverage
|
|
19
|
+
|
|
20
|
+
- Diffs, commits, branches, tags, merges, rebases, cherry-picks and release prep.
|
|
21
|
+
- Recovery paths, conflict handling, remote sync and safe operator workflows.
|
|
22
|
+
- Collaboration hygiene for Git-based delivery.
|
|
23
|
+
|
|
24
|
+
## Reference Anchors
|
|
25
|
+
|
|
26
|
+
- Git docs: `https://git-scm.com/docs`
|
|
27
|
+
- Git book: `https://git-scm.com/book/en/v2`
|
|
28
|
+
|
|
29
|
+
## Guardrails
|
|
30
|
+
|
|
31
|
+
- Do not rewrite shared history casually.
|
|
32
|
+
- Do not hide destructive commands behind vague wording.
|
|
33
|
+
- Do not mix unrelated changes in one release commit.
|
|
34
|
+
- Do not claim sync safety without checking remote state.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: go-engineering
|
|
3
|
+
description: "Build and review Go services, CLIs and concurrent systems with focus on package design, interfaces, context handling, observability, testing and operational robustness."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Go Engineering
|
|
7
|
+
|
|
8
|
+
Use this skill when the task is primarily Go code, tooling or service design.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
- Inspect module structure, package boundaries and entrypoints before editing.
|
|
13
|
+
- Treat `context`, errors, interfaces and goroutine lifecycle as explicit design concerns.
|
|
14
|
+
- Keep packages small, concrete and easy to test.
|
|
15
|
+
- Favor predictable composition over deep abstraction trees.
|
|
16
|
+
- Validate with build, tests and representative runtime paths.
|
|
17
|
+
|
|
18
|
+
## Coverage
|
|
19
|
+
|
|
20
|
+
- Go APIs, CLIs, workers, packages, modules and concurrency patterns.
|
|
21
|
+
- Context propagation, cancellation, channels, HTTP, configuration and logging.
|
|
22
|
+
- Refactors, debugging, code review and deployment-grade hardening.
|
|
23
|
+
|
|
24
|
+
## Reference Anchors
|
|
25
|
+
|
|
26
|
+
- Go docs: `https://go.dev/doc/`
|
|
27
|
+
- Go language spec: `https://go.dev/ref/spec`
|
|
28
|
+
|
|
29
|
+
## Guardrails
|
|
30
|
+
|
|
31
|
+
- Do not leak goroutines or ignore cancellation.
|
|
32
|
+
- Do not use interfaces prematurely.
|
|
33
|
+
- Do not bury errors without context.
|
|
34
|
+
- Do not overcomplicate package layout for small services.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: java-engineering
|
|
3
|
+
description: "Design, implement and review Java applications, services and CLIs with attention to build tooling, JVM behavior, package boundaries, testing, dependency hygiene and production-grade maintainability."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Java Engineering
|
|
7
|
+
|
|
8
|
+
Use this skill when the task is centered on Java application code or JVM service design.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
- Identify the build system first: Maven, Gradle or plain Java tooling.
|
|
13
|
+
- Read package layout, dependency graph and runtime assumptions before changing code.
|
|
14
|
+
- Keep domain logic separated from framework glue and infrastructure code.
|
|
15
|
+
- Treat configuration, threading, serialization and resource lifecycle as first-class concerns.
|
|
16
|
+
- Validate with compile, test and representative runtime entrypoints.
|
|
17
|
+
|
|
18
|
+
## Coverage
|
|
19
|
+
|
|
20
|
+
- Java services, libraries, CLIs, packaging, dependency management and test structure.
|
|
21
|
+
- JVM runtime behavior, configuration, exceptions, concurrency and integration boundaries.
|
|
22
|
+
- Refactors, code review, API design and deployment readiness.
|
|
23
|
+
|
|
24
|
+
## Reference Anchors
|
|
25
|
+
|
|
26
|
+
- Java learning docs: `https://dev.java/learn/`
|
|
27
|
+
- OpenJDK docs: `https://openjdk.org/`
|
|
28
|
+
|
|
29
|
+
## Guardrails
|
|
30
|
+
|
|
31
|
+
- Do not hide checked/unchecked error boundaries.
|
|
32
|
+
- Do not couple business logic tightly to framework annotations or containers.
|
|
33
|
+
- Do not introduce build-tool drift without updating the whole workflow.
|
|
34
|
+
- Do not claim thread safety without concrete reasoning.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: javascript-engineering
|
|
3
|
+
description: "Implement and review JavaScript and Node.js applications with focus on modules, async flows, runtime behavior, APIs, tooling, compatibility and operational reliability across browser and server contexts."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# JavaScript Engineering
|
|
7
|
+
|
|
8
|
+
Use this skill when the task is mainly JavaScript or Node.js rather than type-heavy TypeScript.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
- Determine the runtime first: browser, Node.js, worker, edge or test harness.
|
|
13
|
+
- Verify module mode, package boundaries and build assumptions before changing imports.
|
|
14
|
+
- Keep async behavior explicit: promises, retries, streams, events and shutdown paths.
|
|
15
|
+
- Separate transport, domain logic and persistence so the runtime stays testable.
|
|
16
|
+
- Validate with direct execution paths and representative failure cases.
|
|
17
|
+
|
|
18
|
+
## Coverage
|
|
19
|
+
|
|
20
|
+
- JavaScript, Node.js, modules, packages, scripts, APIs, jobs and automation.
|
|
21
|
+
- Async control flow, JSON payloads, process lifecycle, file system and child processes.
|
|
22
|
+
- Runtime debugging, compatibility issues, migration and production hardening.
|
|
23
|
+
|
|
24
|
+
## Reference Anchors
|
|
25
|
+
|
|
26
|
+
- MDN JavaScript docs: `https://developer.mozilla.org/en-US/docs/Web/JavaScript`
|
|
27
|
+
- Node.js docs: `https://nodejs.org/en/docs`
|
|
28
|
+
|
|
29
|
+
## Guardrails
|
|
30
|
+
|
|
31
|
+
- Do not confuse browser and server APIs.
|
|
32
|
+
- Do not introduce silent promise failures or ignored rejections.
|
|
33
|
+
- Do not change module systems casually in mixed ESM/CJS projects.
|
|
34
|
+
- Do not hide runtime assumptions from the user.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: json-contract-design
|
|
3
|
+
description: "Define and review JSON payloads, schemas and machine-readable contracts with emphasis on compatibility, validation, naming consistency and integration safety across APIs and automation."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# JSON Contract Design
|
|
7
|
+
|
|
8
|
+
Use this skill when the task is about JSON structures, schemas or exchange contracts between systems.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
- Identify producers, consumers and compatibility expectations first.
|
|
13
|
+
- Define required versus optional fields explicitly.
|
|
14
|
+
- Keep naming, nullability, enums and nested structures consistent.
|
|
15
|
+
- Add validation boundaries close to ingress and egress points.
|
|
16
|
+
- Validate with realistic examples and edge cases.
|
|
17
|
+
|
|
18
|
+
## Coverage
|
|
19
|
+
|
|
20
|
+
- JSON payloads, schemas, API contracts, config files and event/message bodies.
|
|
21
|
+
- Compatibility review, migration planning, serialization and validation strategy.
|
|
22
|
+
- Human-readable examples for integration and debugging.
|
|
23
|
+
|
|
24
|
+
## Reference Anchors
|
|
25
|
+
|
|
26
|
+
- JSON RFC 8259: `https://www.rfc-editor.org/rfc/rfc8259`
|
|
27
|
+
- JSON Schema: `https://json-schema.org/`
|
|
28
|
+
|
|
29
|
+
## Guardrails
|
|
30
|
+
|
|
31
|
+
- Do not introduce ambiguous null versus missing semantics.
|
|
32
|
+
- Do not rename contract fields casually across active integrations.
|
|
33
|
+
- Do not rely on informal examples when a schema is needed.
|
|
34
|
+
- Do not hide breaking changes.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: multi-client-mcp-ops
|
|
3
|
+
description: "Configure and validate MCP readiness across Codex, Claude, Gemini and Antigravity with practical focus on client config, transport, global registration and operator troubleshooting."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Multi Client MCP Ops
|
|
7
|
+
|
|
8
|
+
Use this skill when the task is about making MCP servers work consistently across multiple AI clients.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
- Start from the target client and its real config file path.
|
|
13
|
+
- Verify transport, command, args, working directory and environment requirements.
|
|
14
|
+
- Keep registration reproducible and explain how the user can verify it.
|
|
15
|
+
- Separate local clone execution from global npm-installed execution.
|
|
16
|
+
- Validate readiness client by client instead of assuming parity.
|
|
17
|
+
|
|
18
|
+
## Coverage
|
|
19
|
+
|
|
20
|
+
- Codex, Claude, Gemini and Antigravity MCP registration and troubleshooting.
|
|
21
|
+
- Global versus project-local config, stdio commands, PATH and restart requirements.
|
|
22
|
+
- Operator-facing readiness checks and rollout hygiene.
|
|
23
|
+
|
|
24
|
+
## Reference Anchors
|
|
25
|
+
|
|
26
|
+
- OpenAI Codex MCP docs: `https://developers.openai.com/codex/mcp/`
|
|
27
|
+
- Model Context Protocol docs: `https://modelcontextprotocol.io/docs/develop/connect-local-servers`
|
|
28
|
+
- Gemini CLI MCP docs: `https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html`
|
|
29
|
+
- Antigravity MCP docs: `https://cloud.google.com/gemini/enterprise/docs/antigravity/mcp-servers`
|
|
30
|
+
|
|
31
|
+
## Guardrails
|
|
32
|
+
|
|
33
|
+
- Do not assume one client config format works unchanged in another.
|
|
34
|
+
- Do not claim readiness without checking the effective config path and command.
|
|
35
|
+
- Do not hide restart requirements after config changes.
|
|
36
|
+
- Do not mix package-global and repo-local command assumptions.
|