@fprad0/skill-master-mcp 0.0.9 → 0.0.10
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 +11 -0
- package/README.md +16 -2
- package/VERSION.md +3 -3
- package/bin/lib/menu-core.mjs +651 -16
- package/bin/skill-master-bootstrap-global.mjs +14 -1
- package/bin/skill-master-doctor.mjs +168 -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 +26 -3
- package/dist/index.js +30 -5
- package/dist/index.js.map +1 -1
- 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/manifests/channels/beta.json +7 -7
- package/manifests/channels/stable.json +8 -8
- package/network/unapproved-skill-candidates.json +34 -1
- package/package.json +2 -1
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# Codex CLI Patterns
|
|
2
|
+
|
|
3
|
+
Use this reference when designing the command surface for a new CLI Codex should run.
|
|
4
|
+
|
|
5
|
+
## Mental model
|
|
6
|
+
|
|
7
|
+
The CLI is Codex's command layer. It should turn a service, app, API, log source, or database into shell commands Codex can run repeatedly from any repo.
|
|
8
|
+
|
|
9
|
+
Good CLIs for Codex expose composable primitives. Avoid a single command that tries to "do the whole investigation" when smaller discover, read, resolve, download, inspect, draft, and upload commands would compose better.
|
|
10
|
+
|
|
11
|
+
## Help is interface
|
|
12
|
+
|
|
13
|
+
Write `--help` for a future Codex thread that only has the binary and a vague task. Each command should have a short description and flags with literal names from the product or API.
|
|
14
|
+
|
|
15
|
+
Good top-level help should answer:
|
|
16
|
+
|
|
17
|
+
- What containers can I discover?
|
|
18
|
+
- What exact objects can I read?
|
|
19
|
+
- What stable IDs can I resolve?
|
|
20
|
+
- What files can I download or upload?
|
|
21
|
+
- Which write actions exist?
|
|
22
|
+
- What is the raw escape hatch?
|
|
23
|
+
|
|
24
|
+
## Prefer this command shape
|
|
25
|
+
|
|
26
|
+
Use product nouns, then verbs:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
tool-name --json doctor
|
|
30
|
+
tool-name --json accounts list
|
|
31
|
+
tool-name --json projects list
|
|
32
|
+
tool-name --json channels resolve --name codex
|
|
33
|
+
tool-name --json messages search "exact phrase"
|
|
34
|
+
tool-name --json messages context <message-id> --before 3 --after 3
|
|
35
|
+
tool-name --json logs download <build-url> --failed --out ./logs
|
|
36
|
+
tool-name --json media upload --file ./image.png
|
|
37
|
+
tool-name --json drafts create --body-file draft.json
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
For APIs whose native noun is already strong, direct verbs can be fine:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
tool-name --json social-sets
|
|
44
|
+
tool-name --json drafts list --social-set <id>
|
|
45
|
+
tool-name --json request get /v2/me
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The important rule is consistency. Do not mix many styles unless the product vocabulary demands it.
|
|
49
|
+
|
|
50
|
+
## Useful shapes from mature CLIs
|
|
51
|
+
|
|
52
|
+
Prefer these patterns over clever agent-only abstractions:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Field-selected structured output: make common reads scriptable.
|
|
56
|
+
tool-name issues list --json number,title,url,state
|
|
57
|
+
tool-name issues list --json number,title --jq '.[] | select(.state == "open")'
|
|
58
|
+
|
|
59
|
+
# Human text by default, full API object when requested.
|
|
60
|
+
tool-name pods get <name>
|
|
61
|
+
tool-name pods get <name> -o json
|
|
62
|
+
|
|
63
|
+
# Product workflow commands, not just REST nouns.
|
|
64
|
+
tool-name logs tail
|
|
65
|
+
tool-name webhooks listen --forward-to localhost:4242/webhooks
|
|
66
|
+
tool-name webhooks trigger checkout.completed
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Only implement filtering or templating if the user will actually need it. Stable JSON plus narrow read commands are the baseline.
|
|
70
|
+
|
|
71
|
+
## Discovery, resolve, read, context
|
|
72
|
+
|
|
73
|
+
Design first-pass commands in this order:
|
|
74
|
+
|
|
75
|
+
1. **Discover** broad containers: workspaces, accounts, social sets, repos, projects, channels, queues.
|
|
76
|
+
2. **Resolve** human input into IDs: user names, channel names, permalinks, PR URLs, build URLs, customer slugs.
|
|
77
|
+
3. **Read** an exact object: issue, event, thread, draft, customer, job, run, media item.
|
|
78
|
+
4. **Context** around an anchor when useful: nearby messages, parent thread, surrounding logs, audit history.
|
|
79
|
+
|
|
80
|
+
Do not force Codex to repeatedly search when it already has a stable ID.
|
|
81
|
+
|
|
82
|
+
## Text, JSON, files, exit codes
|
|
83
|
+
|
|
84
|
+
Support human text by default if it helps. Support `--json` everywhere Codex will parse or pipe results.
|
|
85
|
+
|
|
86
|
+
For `--json`:
|
|
87
|
+
|
|
88
|
+
- Emit JSON to stdout only.
|
|
89
|
+
- Send progress and diagnostics to stderr.
|
|
90
|
+
- Keep success and error shapes documented.
|
|
91
|
+
- Redact tokens, cookies, customer secrets, private headers, and unrelated payloads.
|
|
92
|
+
|
|
93
|
+
For downloads and exports:
|
|
94
|
+
|
|
95
|
+
- Write files under a user-provided `--out` path when possible.
|
|
96
|
+
- In JSON output, return the file path, byte count if cheap, source URL or ID, and follow-up command.
|
|
97
|
+
|
|
98
|
+
For exit codes:
|
|
99
|
+
|
|
100
|
+
- Exit zero when the command succeeded, including an empty result.
|
|
101
|
+
- Exit nonzero for auth failure, invalid input, network failure, parse failure, API error, or incomplete upload/download.
|
|
102
|
+
- Make `doctor --json` usable even when auth is missing. It should report missing auth rather than crashing.
|
|
103
|
+
|
|
104
|
+
## Pagination and breadth
|
|
105
|
+
|
|
106
|
+
Start shallow by default. Add explicit knobs for breadth:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
tool-name --json messages search "topic" --limit 10
|
|
110
|
+
tool-name --json messages search "topic" --limit 50 --all-pages --max-pages 3
|
|
111
|
+
tool-name --json drafts list --limit 20 --offset 40
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Return `next_cursor`, `next_url`, `offset`, `page_count`, or whatever is real for the provider.
|
|
115
|
+
|
|
116
|
+
## Raw escape hatch
|
|
117
|
+
|
|
118
|
+
The raw command is a repair hatch, not the main interface.
|
|
119
|
+
|
|
120
|
+
Good raw commands still use configured auth, base URL, JSON parsing, redaction, status/error handling, and `--json`.
|
|
121
|
+
|
|
122
|
+
Make reads easy:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
tool-name --json request get /v2/me
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Treat raw writes as live writes. Do not hide POST/PUT/PATCH/DELETE behind a "debug" command.
|
|
129
|
+
|
|
130
|
+
## Companion skill pattern
|
|
131
|
+
|
|
132
|
+
The companion skill should be smaller than the CLI README. It should teach the path through the tool:
|
|
133
|
+
|
|
134
|
+
```md
|
|
135
|
+
Start with:
|
|
136
|
+
|
|
137
|
+
tool-name --json doctor
|
|
138
|
+
tool-name --json accounts list
|
|
139
|
+
|
|
140
|
+
For [common job]:
|
|
141
|
+
|
|
142
|
+
tool-name --json ...
|
|
143
|
+
tool-name --json ...
|
|
144
|
+
|
|
145
|
+
Rules:
|
|
146
|
+
|
|
147
|
+
- Prefer installed `tool-name` on PATH.
|
|
148
|
+
- Use --json when analyzing output.
|
|
149
|
+
- Create drafts by default.
|
|
150
|
+
- Do not publish/delete/retry/submit unless the user asked.
|
|
151
|
+
- Use `request get ...` only when high-level commands are missing.
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Include JSON shape notes only when Codex needs them to choose the next command.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: developer-workstation-ops
|
|
3
|
+
description: "Operate developer tooling across CLI, terminal, Git, GitHub, Windows, Linux, Codex, Claude, Gemini and Antigravity with path checks, config validation, cross-platform notes and safe diagnostics. Use when a task involves local environment readiness, shell automation or AI client integration."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Developer Workstation Ops
|
|
7
|
+
|
|
8
|
+
Use this skill when a task is about getting local developer tooling working reliably across machines and AI clients.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
- Verify executable paths before editing config files.
|
|
13
|
+
- Separate read-only diagnostics from mutating fixes.
|
|
14
|
+
- Treat shell, terminal and editor/client integration as separate layers.
|
|
15
|
+
- Prefer idempotent config merges over whole-file replacement.
|
|
16
|
+
- Keep Windows and Linux differences explicit.
|
|
17
|
+
- Check Git and GitHub auth before assuming network operations will work.
|
|
18
|
+
- For Codex, Claude, Gemini and Antigravity, validate both config and executable command.
|
|
19
|
+
- End with a smoke command the operator can rerun.
|
|
20
|
+
|
|
21
|
+
## Coverage
|
|
22
|
+
|
|
23
|
+
- CLI, terminal, shell scripts, PATH, Git, GitHub.
|
|
24
|
+
- Windows, Linux, cross-platform environment behavior.
|
|
25
|
+
- Codex, Claude, Gemini and Antigravity MCP/client readiness.
|
|
26
|
+
|
|
27
|
+
## Guardrails
|
|
28
|
+
|
|
29
|
+
- Do not delete unrelated config content.
|
|
30
|
+
- Do not hide restart requirements.
|
|
31
|
+
- Do not run destructive shell commands from convenience wrappers.
|
|
32
|
+
- Do not claim readiness without a real smoke command.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Use of these Figma skills and related files ("Materials") is governed by the Figma Developer Terms (available at https://www.figma.com/legal/developer-terms/). By accessing, downloading, or using these Materials — including through automated systems or AI agents — you agree to the Figma Developer Terms.
|
|
2
|
+
These Materials are currently offered as a Beta feature. Figma may modify, suspend, or discontinue them at any time without notice.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: figma
|
|
3
|
+
description: Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Figma MCP
|
|
7
|
+
|
|
8
|
+
Use the Figma MCP server for Figma-driven implementation. For setup and debugging details (env vars, config, verification), see `references/figma-mcp-config.md`.
|
|
9
|
+
|
|
10
|
+
## Figma MCP Integration Rules
|
|
11
|
+
These rules define how to translate Figma inputs into code for this project and must be followed for every Figma-driven change.
|
|
12
|
+
|
|
13
|
+
### Required flow (do not skip)
|
|
14
|
+
1. Run get_design_context first to fetch the structured representation for the exact node(s).
|
|
15
|
+
2. If the response is too large or truncated, run get_metadata to get the high-level node map and then re-fetch only the required node(s) with get_design_context.
|
|
16
|
+
3. Run get_screenshot for a visual reference of the node variant being implemented.
|
|
17
|
+
4. Only after you have both get_design_context and get_screenshot, download any assets needed and start implementation.
|
|
18
|
+
5. Translate the output (usually React + Tailwind) into this project's conventions, styles and framework. Reuse the project's color tokens, components, and typography wherever possible.
|
|
19
|
+
6. Validate against Figma for 1:1 look and behavior before marking complete.
|
|
20
|
+
|
|
21
|
+
### Implementation rules
|
|
22
|
+
- Treat the Figma MCP output (React + Tailwind) as a representation of design and behavior, not as final code style.
|
|
23
|
+
- Replace Tailwind utility classes with the project's preferred utilities/design-system tokens when applicable.
|
|
24
|
+
- Reuse existing components (e.g., buttons, inputs, typography, icon wrappers) instead of duplicating functionality.
|
|
25
|
+
- Use the project's color system, typography scale, and spacing tokens consistently.
|
|
26
|
+
- Respect existing routing, state management, and data-fetch patterns already adopted in the repo.
|
|
27
|
+
- Strive for 1:1 visual parity with the Figma design. When conflicts arise, prefer design-system tokens and adjust spacing or sizes minimally to match visuals.
|
|
28
|
+
- Validate the final UI against the Figma screenshot for both look and behavior.
|
|
29
|
+
|
|
30
|
+
### Asset handling
|
|
31
|
+
- The Figma MCP Server provides an assets endpoint which can serve image and SVG assets.
|
|
32
|
+
- IMPORTANT: If the Figma MCP Server returns a localhost source for an image or an SVG, use that image or SVG source directly.
|
|
33
|
+
- IMPORTANT: DO NOT import/add new icon packages, all the assets should be in the Figma payload.
|
|
34
|
+
- IMPORTANT: do NOT use or create placeholders if a localhost source is provided.
|
|
35
|
+
|
|
36
|
+
### Link-based prompting
|
|
37
|
+
- The server is link-based: copy the Figma frame/layer link and give that URL to the MCP client when asking for implementation help.
|
|
38
|
+
- The client cannot browse the URL but extracts the node ID from the link; always ensure the link points to the exact node/variant you want.
|
|
39
|
+
|
|
40
|
+
## References
|
|
41
|
+
- `references/figma-mcp-config.md` — setup, verification, troubleshooting, and link-based usage reminders.
|
|
42
|
+
- `references/figma-tools-and-prompts.md` — tool catalog and prompt patterns for selecting frameworks/components and fetching metadata.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Figma"
|
|
3
|
+
short_description: "Use Figma MCP for design-to-code work"
|
|
4
|
+
icon_small: "./assets/figma-small.svg"
|
|
5
|
+
icon_large: "./assets/figma.png"
|
|
6
|
+
default_prompt: "Use $figma to inspect the target design and translate it into implementable UI decisions."
|
|
7
|
+
|
|
8
|
+
dependencies:
|
|
9
|
+
tools:
|
|
10
|
+
- type: "mcp"
|
|
11
|
+
value: "figma"
|
|
12
|
+
description: "Figma MCP server"
|
|
13
|
+
transport: "streamable_http"
|
|
14
|
+
url: "https://mcp.figma.com/mcp"
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
2
|
+
<path fill="#000" fill-rule="evenodd" d="M4.994 5.986a2.014 2.014 0 1 0 0 4.028h2.069V5.986H4.994Zm5.063-.98h.055a2.014 2.014 0 1 0 0-4.026h-2.07v4.027h2.015Zm1.697.49A2.994 2.994 0 0 0 10.112 0H4.994a2.994 2.994 0 0 0-1.642 5.498A2.99 2.99 0 0 0 2 8a2.99 2.99 0 0 0 1.352 2.503A2.99 2.99 0 0 0 2 13.007C2 14.663 3.358 16 5.008 16c1.665 0 3.035-1.349 3.035-3.02v-2.765a2.984 2.984 0 0 0 2.014.778h.055a2.994 2.994 0 0 0 1.642-5.496Zm-1.642.49h-.055a2.014 2.014 0 1 0 0 4.028h.055a2.014 2.014 0 1 0 0-4.028Zm-7.132 7.02c0-1.111.902-2.013 2.014-2.013h2.069v1.987c0 1.123-.924 2.04-2.055 2.04a2.026 2.026 0 0 1-2.028-2.013Zm4.083-8H4.994a2.014 2.014 0 1 1 0-4.026h2.069v4.027Z" clip-rule="evenodd"/>
|
|
3
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
width="400"
|
|
3
|
+
height="400"
|
|
4
|
+
viewBox="0 0 400 400"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M97.5 302.5C97.5 274.195 120.445 251.25 148.75 251.25H200V302.5C200 330.805 177.055 353.75 148.75 353.75C120.445 353.75 97.5 330.805 97.5 302.5Z"
|
|
10
|
+
fill="#0ACF83"
|
|
11
|
+
/>
|
|
12
|
+
<path
|
|
13
|
+
d="M200 200C200 171.696 222.945 148.75 251.25 148.75C279.554 148.75 302.5 171.695 302.5 200C302.5 228.305 279.554 251.25 251.25 251.25C222.945 251.25 200 228.304 200 200Z"
|
|
14
|
+
fill="#1ABCFE"
|
|
15
|
+
/>
|
|
16
|
+
<path
|
|
17
|
+
d="M97.5 200C97.5 228.305 120.445 251.25 148.75 251.25H200V148.75H148.75C120.445 148.75 97.5 171.695 97.5 200Z"
|
|
18
|
+
fill="#A259FF"
|
|
19
|
+
/>
|
|
20
|
+
<path
|
|
21
|
+
d="M200 46.25V148.75H251.25C279.555 148.75 302.5 125.805 302.5 97.5C302.5 69.1954 279.555 46.25 251.25 46.25H200Z"
|
|
22
|
+
fill="#FF7262"
|
|
23
|
+
/>
|
|
24
|
+
<path
|
|
25
|
+
d="M97.5 97.5C97.5 125.805 120.445 148.75 148.75 148.75H200V46.25L148.75 46.25C120.445 46.25 97.5 69.1954 97.5 97.5Z"
|
|
26
|
+
fill="#F24E1E"
|
|
27
|
+
/>
|
|
28
|
+
</svg>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Figma MCP config reference
|
|
2
|
+
|
|
3
|
+
Use this snippet to register the Figma MCP server in `~/.codex/config.toml` as a streamable HTTP server with bearer auth pulled from your env.
|
|
4
|
+
|
|
5
|
+
```toml
|
|
6
|
+
[mcp_servers.figma]
|
|
7
|
+
url = "https://mcp.figma.com/mcp"
|
|
8
|
+
bearer_token_env_var = "FIGMA_OAUTH_TOKEN"
|
|
9
|
+
http_headers = { "X-Figma-Region" = "us-east-1" }
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Notes and options
|
|
13
|
+
- The bearer token must be available as `FIGMA_OAUTH_TOKEN` in the environment that launches Codex.
|
|
14
|
+
- Keep the region header aligned with your Figma region. If your org uses another region, update `X-Figma-Region` consistently.
|
|
15
|
+
- OAuth on streamable HTTP requires the RMCP client: set `[features].rmcp_client = true` (or `experimental_use_rmcp_client = true` on older builds) at the top level of `config.toml`.
|
|
16
|
+
- Optional per-server timeouts: `startup_timeout_sec` (default 10) and `tool_timeout_sec` (default 60) can be set inside `[mcp_servers.figma]` if needed.
|
|
17
|
+
|
|
18
|
+
## Env var setup (if missing)
|
|
19
|
+
- One-time set for current shell: `export FIGMA_OAUTH_TOKEN="<token>"`
|
|
20
|
+
- Persist for future sessions: add the export line to your shell profile (e.g., `~/.zshrc` or `~/.bashrc`), then restart the shell or your IDE.
|
|
21
|
+
- Verify before launching Codex: `echo $FIGMA_OAUTH_TOKEN` should print a non-empty token.
|
|
22
|
+
|
|
23
|
+
## Setup + verification checklist
|
|
24
|
+
- Add the snippet above to `~/.codex/config.toml` under `[mcp_servers.figma]`, and enable `[features].rmcp_client = true` (or `experimental_use_rmcp_client = true` on older releases).
|
|
25
|
+
- Restart Codex (CLI/IDE) after updating config and env vars.
|
|
26
|
+
- Ask Codex to list Figma tools or run a simple call to confirm the server is reachable.
|
|
27
|
+
|
|
28
|
+
## Troubleshooting
|
|
29
|
+
- Token not picked up: Export `FIGMA_OAUTH_TOKEN` in the same shell that launches Codex, or add it to your shell profile and restart.
|
|
30
|
+
- OAuth errors: Verify `rmcp_client` is enabled and the bearer token is valid. Tokens copied from Figma should not include surrounding quotes.
|
|
31
|
+
- Network/headers: Keep the `X-Figma-Region` header; if your org uses another region, update the header consistently across config and requests.
|
|
32
|
+
|
|
33
|
+
## Usage reminders
|
|
34
|
+
- The server is link-based: copy the Figma frame or layer link, then ask the MCP client to implement that URL. The client will extract the node ID from the link (it does not browse the page).
|
|
35
|
+
- If output feels generic, restate the project-specific rules from the main skill and ensure you follow the required flow (get_design_context → get_metadata if needed → get_screenshot).
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Figma MCP tools and prompt patterns
|
|
2
|
+
|
|
3
|
+
Quick reference for the Figma MCP toolset, when to use each tool, and prompt examples to steer output toward your stack.
|
|
4
|
+
|
|
5
|
+
## Core tools
|
|
6
|
+
- `get_design_context` (Figma Design, Figma Make): Primary tool. Returns structured design data and default React + Tailwind code. Selection-based prompting works on desktop; the remote server uses a frame/layer link to extract the node ID.
|
|
7
|
+
- `get_variable_defs` (Figma Design): Lists variables/styles (colors, spacing, typography) used in the selection. Useful to align with tokens.
|
|
8
|
+
- `get_metadata` (Figma Design): Sparse XML outline of layer IDs/names/types/positions/sizes. Use before re-calling `get_design_context` on large nodes to avoid truncation.
|
|
9
|
+
- `get_screenshot` (Figma Design, FigJam): Screenshot of the selection for visual fidelity checks.
|
|
10
|
+
- `get_figjam` (FigJam): XML + screenshots for FigJam diagrams (architecture, flows).
|
|
11
|
+
- `create_design_system_rules` (no file context): Generates a rule file with design-to-code guidance for your stack. Save it where the agent can read it.
|
|
12
|
+
- `get_code_connect_map` (Figma Design): Returns mapping of Figma node IDs to code components (`codeConnectSrc`, `codeConnectName`). Use to reuse existing components.
|
|
13
|
+
- `add_code_connect_map` (Figma Design): Adds/updates a mapping between a Figma node and a code component to improve reuse.
|
|
14
|
+
- `get_strategy_for_mapping` (alpha, local only): Figma-prompted tool to decide mapping strategy for connecting a node to a code component.
|
|
15
|
+
- `send_get_strategy_response` (alpha, local only): Sends the response after `get_strategy_for_mapping`.
|
|
16
|
+
- `whoami` (remote only): Returns the authenticated Figma user identity (email, plans, seat types).
|
|
17
|
+
|
|
18
|
+
## Prompt patterns (design context)
|
|
19
|
+
- Change framework: “generate my Figma selection in Vue” or “in plain HTML + CSS” or “for iOS”.
|
|
20
|
+
- Use my components: “generate my Figma selection using components from `src/components/ui`”.
|
|
21
|
+
- Combine: “generate my Figma selection using components from `src/ui` and style with Tailwind”.
|
|
22
|
+
- Note: On the remote server, selection-based prompting requires a frame/layer link; the server extracts the node ID from the URL.
|
|
23
|
+
|
|
24
|
+
## Prompt patterns (variables/styles)
|
|
25
|
+
- “get the variables used in my Figma selection”
|
|
26
|
+
- “what color and spacing variables are used in my Figma selection?”
|
|
27
|
+
- “list the variable names and their values used in my Figma selection”
|
|
28
|
+
|
|
29
|
+
## Prompt patterns (code connect)
|
|
30
|
+
- “show the code connect map for this selection”
|
|
31
|
+
- “map this node to `src/components/ui/Button.tsx` with name `Button`”
|
|
32
|
+
|
|
33
|
+
## Best-practice flow reminder
|
|
34
|
+
Use `get_design_context` → (optionally `get_metadata` for large nodes) → `get_screenshot`, and keep project rules from `SKILL.md` in mind when applying the generated output.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Use of these Figma skills and related files ("Materials") is governed by the Figma Developer Terms (available at https://www.figma.com/legal/developer-terms/). By accessing, downloading, or using these Materials — including through automated systems or AI agents — you agree to the Figma Developer Terms.
|
|
2
|
+
These Materials are currently offered as a Beta feature. Figma may modify, suspend, or discontinue them at any time without notice.
|