@bgicli/bgicli 2.2.8 → 2.2.9

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.
Files changed (113) hide show
  1. package/data/skills/anthropic-algorithmic-art/SKILL.md +405 -0
  2. package/data/skills/anthropic-canvas-design/SKILL.md +130 -0
  3. package/data/skills/anthropic-claude-api/SKILL.md +243 -0
  4. package/data/skills/anthropic-doc-coauthoring/SKILL.md +375 -0
  5. package/data/skills/anthropic-docx/SKILL.md +590 -0
  6. package/data/skills/anthropic-frontend-design/SKILL.md +42 -0
  7. package/data/skills/anthropic-internal-comms/SKILL.md +32 -0
  8. package/data/skills/anthropic-mcp-builder/SKILL.md +236 -0
  9. package/data/skills/anthropic-pdf/SKILL.md +314 -0
  10. package/data/skills/anthropic-pptx/SKILL.md +232 -0
  11. package/data/skills/anthropic-skill-creator/SKILL.md +485 -0
  12. package/data/skills/anthropic-webapp-testing/SKILL.md +96 -0
  13. package/data/skills/anthropic-xlsx/SKILL.md +292 -0
  14. package/data/skills/arxiv-database/SKILL.md +362 -0
  15. package/data/skills/astropy/SKILL.md +329 -0
  16. package/data/skills/ctx-advanced-evaluation/SKILL.md +402 -0
  17. package/data/skills/ctx-bdi-mental-states/SKILL.md +311 -0
  18. package/data/skills/ctx-context-compression/SKILL.md +272 -0
  19. package/data/skills/ctx-context-degradation/SKILL.md +206 -0
  20. package/data/skills/ctx-context-fundamentals/SKILL.md +201 -0
  21. package/data/skills/ctx-context-optimization/SKILL.md +195 -0
  22. package/data/skills/ctx-evaluation/SKILL.md +251 -0
  23. package/data/skills/ctx-filesystem-context/SKILL.md +287 -0
  24. package/data/skills/ctx-hosted-agents/SKILL.md +260 -0
  25. package/data/skills/ctx-memory-systems/SKILL.md +225 -0
  26. package/data/skills/ctx-multi-agent-patterns/SKILL.md +257 -0
  27. package/data/skills/ctx-project-development/SKILL.md +291 -0
  28. package/data/skills/ctx-tool-design/SKILL.md +271 -0
  29. package/data/skills/dhdna-profiler/SKILL.md +162 -0
  30. package/data/skills/generate-image/SKILL.md +183 -0
  31. package/data/skills/geomaster/SKILL.md +365 -0
  32. package/data/skills/get-available-resources/SKILL.md +275 -0
  33. package/data/skills/hamelsmu-build-review-interface/SKILL.md +96 -0
  34. package/data/skills/hamelsmu-error-analysis/SKILL.md +164 -0
  35. package/data/skills/hamelsmu-eval-audit/SKILL.md +183 -0
  36. package/data/skills/hamelsmu-evaluate-rag/SKILL.md +177 -0
  37. package/data/skills/hamelsmu-generate-synthetic-data/SKILL.md +131 -0
  38. package/data/skills/hamelsmu-validate-evaluator/SKILL.md +212 -0
  39. package/data/skills/hamelsmu-write-judge-prompt/SKILL.md +144 -0
  40. package/data/skills/hf-cli/SKILL.md +174 -0
  41. package/data/skills/hf-mcp/SKILL.md +178 -0
  42. package/data/skills/hugging-face-dataset-viewer/SKILL.md +121 -0
  43. package/data/skills/hugging-face-datasets/SKILL.md +542 -0
  44. package/data/skills/hugging-face-evaluation/SKILL.md +651 -0
  45. package/data/skills/hugging-face-jobs/SKILL.md +1042 -0
  46. package/data/skills/hugging-face-model-trainer/SKILL.md +717 -0
  47. package/data/skills/hugging-face-paper-pages/SKILL.md +239 -0
  48. package/data/skills/hugging-face-paper-publisher/SKILL.md +624 -0
  49. package/data/skills/hugging-face-tool-builder/SKILL.md +110 -0
  50. package/data/skills/hugging-face-trackio/SKILL.md +115 -0
  51. package/data/skills/hugging-face-vision-trainer/SKILL.md +593 -0
  52. package/data/skills/huggingface-gradio/SKILL.md +245 -0
  53. package/data/skills/matlab/SKILL.md +376 -0
  54. package/data/skills/modal/SKILL.md +381 -0
  55. package/data/skills/openai-cloudflare-deploy/SKILL.md +224 -0
  56. package/data/skills/openai-develop-web-game/SKILL.md +149 -0
  57. package/data/skills/openai-doc/SKILL.md +80 -0
  58. package/data/skills/openai-figma/SKILL.md +42 -0
  59. package/data/skills/openai-figma-implement-design/SKILL.md +264 -0
  60. package/data/skills/openai-gh-address-comments/SKILL.md +25 -0
  61. package/data/skills/openai-gh-fix-ci/SKILL.md +69 -0
  62. package/data/skills/openai-imagegen/SKILL.md +174 -0
  63. package/data/skills/openai-jupyter-notebook/SKILL.md +107 -0
  64. package/data/skills/openai-linear/SKILL.md +87 -0
  65. package/data/skills/openai-netlify-deploy/SKILL.md +247 -0
  66. package/data/skills/openai-notion-knowledge-capture/SKILL.md +56 -0
  67. package/data/skills/openai-notion-meeting-intelligence/SKILL.md +60 -0
  68. package/data/skills/openai-notion-research-documentation/SKILL.md +59 -0
  69. package/data/skills/openai-notion-spec-to-implementation/SKILL.md +58 -0
  70. package/data/skills/openai-openai-docs/SKILL.md +69 -0
  71. package/data/skills/openai-pdf/SKILL.md +67 -0
  72. package/data/skills/openai-playwright/SKILL.md +147 -0
  73. package/data/skills/openai-render-deploy/SKILL.md +479 -0
  74. package/data/skills/openai-screenshot/SKILL.md +267 -0
  75. package/data/skills/openai-security-best-practices/SKILL.md +86 -0
  76. package/data/skills/openai-security-ownership-map/SKILL.md +206 -0
  77. package/data/skills/openai-security-threat-model/SKILL.md +81 -0
  78. package/data/skills/openai-sentry/SKILL.md +123 -0
  79. package/data/skills/openai-sora/SKILL.md +178 -0
  80. package/data/skills/openai-speech/SKILL.md +144 -0
  81. package/data/skills/openai-spreadsheet/SKILL.md +145 -0
  82. package/data/skills/openai-transcribe/SKILL.md +81 -0
  83. package/data/skills/openai-vercel-deploy/SKILL.md +77 -0
  84. package/data/skills/openai-yeet/SKILL.md +28 -0
  85. package/data/skills/pennylane/SKILL.md +224 -0
  86. package/data/skills/polars-bio/SKILL.md +374 -0
  87. package/data/skills/primekg/SKILL.md +97 -0
  88. package/data/skills/pymatgen/SKILL.md +689 -0
  89. package/data/skills/qiskit/SKILL.md +273 -0
  90. package/data/skills/qutip/SKILL.md +316 -0
  91. package/data/skills/recursive-decomposition/SKILL.md +185 -0
  92. package/data/skills/rowan/SKILL.md +427 -0
  93. package/data/skills/scholar-evaluation/SKILL.md +298 -0
  94. package/data/skills/sentry-create-alert/SKILL.md +210 -0
  95. package/data/skills/sentry-fix-issues/SKILL.md +126 -0
  96. package/data/skills/sentry-pr-code-review/SKILL.md +105 -0
  97. package/data/skills/sentry-python-sdk/SKILL.md +317 -0
  98. package/data/skills/sentry-setup-ai-monitoring/SKILL.md +217 -0
  99. package/data/skills/stable-baselines3/SKILL.md +297 -0
  100. package/data/skills/sympy/SKILL.md +498 -0
  101. package/data/skills/trailofbits-ask-questions-if-underspecified/SKILL.md +85 -0
  102. package/data/skills/trailofbits-audit-context-building/SKILL.md +302 -0
  103. package/data/skills/trailofbits-differential-review/SKILL.md +220 -0
  104. package/data/skills/trailofbits-insecure-defaults/SKILL.md +117 -0
  105. package/data/skills/trailofbits-modern-python/SKILL.md +333 -0
  106. package/data/skills/trailofbits-property-based-testing/SKILL.md +123 -0
  107. package/data/skills/trailofbits-semgrep-rule-creator/SKILL.md +172 -0
  108. package/data/skills/trailofbits-sharp-edges/SKILL.md +292 -0
  109. package/data/skills/trailofbits-variant-analysis/SKILL.md +142 -0
  110. package/data/skills/transformers.js/SKILL.md +637 -0
  111. package/data/skills/writing/SKILL.md +419 -0
  112. package/dist/bgi.js +2 -2
  113. package/package.json +1 -1
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: notion-meeting-intelligence
3
+ description: Prepare meeting materials with Notion context and Codex research; use when gathering context, drafting agendas/pre-reads, and tailoring materials to attendees.
4
+ metadata:
5
+ short-description: Prep meetings with Notion context and tailored agendas
6
+ ---
7
+
8
+ # Meeting Intelligence
9
+
10
+ Prep meetings by pulling Notion context, tailoring agendas/pre-reads, and enriching with Codex research.
11
+
12
+ ## Quick start
13
+ 1) Confirm meeting goal, attendees, date/time, and decisions needed.
14
+ 2) Gather context: search with `Notion:notion-search`, then fetch with `Notion:notion-fetch` (prior notes, specs, OKRs, decisions).
15
+ 3) Pick the right template via `reference/template-selection-guide.md` (status, decision, planning, retro, 1:1, brainstorming).
16
+ 4) Draft agenda/pre-read in Notion with `Notion:notion-create-pages`, embedding source links and owner/timeboxes.
17
+ 5) Enrich with Codex research (industry insights, benchmarks, risks) and update the page with `Notion:notion-update-page` as plans change.
18
+
19
+ ## Workflow
20
+ ### 0) If any MCP call fails because Notion MCP is not connected, pause and set it up:
21
+ 1. Add the Notion MCP:
22
+ - `codex mcp add notion --url https://mcp.notion.com/mcp`
23
+ 2. Enable remote MCP client:
24
+ - Set `[features].rmcp_client = true` in `config.toml` **or** run `codex --enable rmcp_client`
25
+ 3. Log in with OAuth:
26
+ - `codex mcp login notion`
27
+
28
+ After successful login, the user will have to restart codex. You should finish your answer and tell them so when they try again they can continue with Step 1.
29
+
30
+ ### 1) Gather inputs
31
+ - Ask for objective, desired outcomes/decisions, attendees, duration, date/time, and prior materials.
32
+ - Search Notion for relevant docs, past notes, specs, and action items (`Notion:notion-search`), then fetch key pages (`Notion:notion-fetch`).
33
+ - Capture blockers/risks and open questions up front.
34
+
35
+ ### 2) Choose format
36
+ - Status/update → status template.
37
+ - Decision/approval → decision template.
38
+ - Planning (sprint/project) → planning template.
39
+ - Retro/feedback → retrospective template.
40
+ - 1:1 → one-on-one template.
41
+ - Ideation → brainstorming template.
42
+ - Use `reference/template-selection-guide.md` to confirm.
43
+
44
+ ### 3) Build the agenda/pre-read
45
+ - Start from the chosen template in `reference/` and adapt sections (context, goals, agenda, owner/time per item, decisions, risks, prep asks).
46
+ - Include links to pulled Notion pages and any required pre-reading.
47
+ - Assign owners for each agenda item; call out timeboxes and expected outputs.
48
+
49
+ ### 4) Enrich with research
50
+ - Add concise Codex research where helpful: market/industry facts, benchmarks, risks, best practices.
51
+ - Keep claims cited with source links; separate fact from opinion.
52
+
53
+ ### 5) Finalize and share
54
+ - Add next steps and owners for follow-ups.
55
+ - If tasks arise, create/link tasks in the relevant Notion database.
56
+ - Update the page via `Notion:notion-update-page` when details change; keep a brief changelog if multiple edits.
57
+
58
+ ## References and examples
59
+ - `reference/` — template picker and meeting templates (e.g., `template-selection-guide.md`, `status-update-template.md`, `decision-meeting-template.md`, `sprint-planning-template.md`, `one-on-one-template.md`, `retrospective-template.md`, `brainstorming-template.md`).
60
+ - `examples/` — end-to-end meeting preps (e.g., `executive-review.md`, `project-decision.md`, `sprint-planning.md`, `customer-meeting.md`).
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: notion-research-documentation
3
+ description: Research across Notion and synthesize into structured documentation; use when gathering info from multiple Notion sources to produce briefs, comparisons, or reports with citations.
4
+ metadata:
5
+ short-description: Research Notion content and produce briefs/reports
6
+ ---
7
+
8
+ # Research & Documentation
9
+
10
+ Pull relevant Notion pages, synthesize findings, and publish clear briefs or reports (with citations and links to sources).
11
+
12
+ ## Quick start
13
+ 1) Find sources with `Notion:notion-search` using targeted queries; confirm scope with the user.
14
+ 2) Fetch pages via `Notion:notion-fetch`; note key sections and capture citations (`reference/citations.md`).
15
+ 3) Choose output format (brief, summary, comparison, comprehensive report) using `reference/format-selection-guide.md`.
16
+ 4) Draft in Notion with `Notion:notion-create-pages` using the matching template (quick, summary, comparison, comprehensive).
17
+ 5) Link sources and add a references/citations section; update as new info arrives with `Notion:notion-update-page`.
18
+
19
+ ## Workflow
20
+ ### 0) If any MCP call fails because Notion MCP is not connected, pause and set it up:
21
+ 1. Add the Notion MCP:
22
+ - `codex mcp add notion --url https://mcp.notion.com/mcp`
23
+ 2. Enable remote MCP client:
24
+ - Set `[features].rmcp_client = true` in `config.toml` **or** run `codex --enable rmcp_client`
25
+ 3. Log in with OAuth:
26
+ - `codex mcp login notion`
27
+
28
+ After successful login, the user will have to restart codex. You should finish your answer and tell them so when they try again they can continue with Step 1.
29
+
30
+ ### 1) Gather sources
31
+ - Search first (`Notion:notion-search`); refine queries, and ask the user to confirm if multiple results appear.
32
+ - Fetch relevant pages (`Notion:notion-fetch`), skim for facts, metrics, claims, constraints, and dates.
33
+ - Track each source URL/ID for later citation; prefer direct quotes for critical facts.
34
+
35
+ ### 2) Select the format
36
+ - Quick readout → quick brief.
37
+ - Single-topic dive → research summary.
38
+ - Option tradeoffs → comparison.
39
+ - Deep dive / exec-ready → comprehensive report.
40
+ - See `reference/format-selection-guide.md` for when to pick each.
41
+
42
+ ### 3) Synthesize
43
+ - Outline before writing; group findings by themes/questions.
44
+ - Note evidence with source IDs; flag gaps or contradictions.
45
+ - Keep user goal in view (decision, summary, plan, recommendation).
46
+
47
+ ### 4) Create the doc
48
+ - Pick the matching template in `reference/` (brief, summary, comparison, comprehensive) and adapt it.
49
+ - Create the page with `Notion:notion-create-pages`; include title, summary, key findings, supporting evidence, and recommendations/next steps when relevant.
50
+ - Add citations inline and a references section; link back to source pages.
51
+
52
+ ### 5) Finalize & handoff
53
+ - Add highlights, risks, and open questions.
54
+ - If the user needs follow-ups, create tasks or a checklist in the page; link any task database entries if applicable.
55
+ - Share a short changelog or status using `Notion:notion-update-page` when updating.
56
+
57
+ ## References and examples
58
+ - `reference/` — search tactics, format selection, templates, and citation rules (e.g., `advanced-search.md`, `format-selection-guide.md`, `research-summary-template.md`, `comparison-template.md`, `citations.md`).
59
+ - `examples/` — end-to-end walkthroughs (e.g., `competitor-analysis.md`, `technical-investigation.md`, `market-research.md`, `trip-planning.md`).
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: notion-spec-to-implementation
3
+ description: Turn Notion specs into implementation plans, tasks, and progress tracking; use when implementing PRDs/feature specs and creating Notion plans + tasks from them.
4
+ metadata:
5
+ short-description: Turn Notion specs into implementation plans, tasks, and progress tracking
6
+ ---
7
+
8
+ # Spec to Implementation
9
+
10
+ Convert a Notion spec into linked implementation plans, tasks, and ongoing status updates.
11
+
12
+ ## Quick start
13
+ 1) Locate the spec with `Notion:notion-search`, then fetch it with `Notion:notion-fetch`.
14
+ 2) Parse requirements and ambiguities using `reference/spec-parsing.md`.
15
+ 3) Create a plan page with `Notion:notion-create-pages` (pick a template: quick vs. full).
16
+ 4) Find the task database, confirm schema, then create tasks with `Notion:notion-create-pages`.
17
+ 5) Link spec ↔ plan ↔ tasks; keep status current with `Notion:notion-update-page`.
18
+
19
+ ## Workflow
20
+
21
+ ### 0) If any MCP call fails because Notion MCP is not connected, pause and set it up:
22
+ 1. Add the Notion MCP:
23
+ - `codex mcp add notion --url https://mcp.notion.com/mcp`
24
+ 2. Enable remote MCP client:
25
+ - Set `[features].rmcp_client = true` in `config.toml` **or** run `codex --enable rmcp_client`
26
+ 3. Log in with OAuth:
27
+ - `codex mcp login notion`
28
+
29
+ After successful login, the user will have to restart codex. You should finish your answer and tell them so when they try again they can continue with Step 1.
30
+
31
+ ### 1) Locate and read the spec
32
+ - Search first (`Notion:notion-search`); if multiple hits, ask the user which to use.
33
+ - Fetch the page (`Notion:notion-fetch`) and scan for requirements, acceptance criteria, constraints, and priorities. See `reference/spec-parsing.md` for extraction patterns.
34
+ - Capture gaps/assumptions in a clarifications block before proceeding.
35
+
36
+ ### 2) Choose plan depth
37
+ - Simple change → use `reference/quick-implementation-plan.md`.
38
+ - Multi-phase feature/migration → use `reference/standard-implementation-plan.md`.
39
+ - Create the plan via `Notion:notion-create-pages`, include: overview, linked spec, requirements summary, phases, dependencies/risks, and success criteria. Link back to the spec.
40
+
41
+ ### 3) Create tasks
42
+ - Find the task database (`Notion:notion-search` → `Notion:notion-fetch` to confirm the data source and required properties). Patterns in `reference/task-creation.md`.
43
+ - Size tasks to 1–2 days. Use `reference/task-creation-template.md` for content (context, objective, acceptance criteria, dependencies, resources).
44
+ - Set properties: title/action verb, status, priority, relations to spec + plan, due date/story points/assignee if provided.
45
+ - Create pages with `Notion:notion-create-pages` using the database’s `data_source_id`.
46
+
47
+ ### 4) Link artifacts
48
+ - Plan links to spec; tasks link to both plan and spec.
49
+ - Optionally update the spec with a short “Implementation” section pointing to the plan and tasks using `Notion:notion-update-page`.
50
+
51
+ ### 5) Track progress
52
+ - Use the cadence in `reference/progress-tracking.md`.
53
+ - Post updates with `reference/progress-update-template.md`; close phases with `reference/milestone-summary-template.md`.
54
+ - Keep checklists and status fields in plan/tasks in sync; note blockers and decisions.
55
+
56
+ ## References and examples
57
+ - `reference/` — parsing patterns, plan/task templates, progress cadence (e.g., `spec-parsing.md`, `standard-implementation-plan.md`, `task-creation.md`, `progress-tracking.md`).
58
+ - `examples/` — end-to-end walkthroughs (e.g., `ui-component.md`, `api-feature.md`, `database-migration.md`).
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: "openai-docs"
3
+ description: "Use when the user asks how to build with OpenAI products or APIs and needs up-to-date official documentation with citations, help choosing the latest model for a use case, or explicit GPT-5.4 upgrade and prompt-upgrade guidance; prioritize OpenAI docs MCP tools, use bundled references only as helper context, and restrict any fallback browsing to official OpenAI domains."
4
+ ---
5
+
6
+
7
+ # OpenAI Docs
8
+
9
+ Provide authoritative, current guidance from OpenAI developer docs using the developers.openai.com MCP server. Always prioritize the developer docs MCP tools over web.run for OpenAI-related questions. This skill may also load targeted files from `references/` for model-selection and GPT-5.4-specific requests, but current OpenAI docs remain authoritative. Only if the MCP server is installed and returns no meaningful results should you fall back to web search.
10
+
11
+ ## Quick start
12
+
13
+ - Use `mcp__openaiDeveloperDocs__search_openai_docs` to find the most relevant doc pages.
14
+ - Use `mcp__openaiDeveloperDocs__fetch_openai_doc` to pull exact sections and quote/paraphrase accurately.
15
+ - Use `mcp__openaiDeveloperDocs__list_openai_docs` only when you need to browse or discover pages without a clear query.
16
+ - Load only the relevant file from `references/` when the question is about model selection or a GPT-5.4 upgrade.
17
+
18
+ ## OpenAI product snapshots
19
+
20
+ 1. Apps SDK: Build ChatGPT apps by providing a web component UI and an MCP server that exposes your app's tools to ChatGPT.
21
+ 2. Responses API: A unified endpoint designed for stateful, multimodal, tool-using interactions in agentic workflows.
22
+ 3. Chat Completions API: Generate a model response from a list of messages comprising a conversation.
23
+ 4. Codex: OpenAI's coding agent for software development that can write, understand, review, and debug code.
24
+ 5. gpt-oss: Open-weight OpenAI reasoning models (gpt-oss-120b and gpt-oss-20b) released under the Apache 2.0 license.
25
+ 6. Realtime API: Build low-latency, multimodal experiences including natural speech-to-speech conversations.
26
+ 7. Agents SDK: A toolkit for building agentic apps where a model can use tools and context, hand off to other agents, stream partial results, and keep a full trace.
27
+
28
+ ## If MCP server is missing
29
+
30
+ If MCP tools fail or no OpenAI docs resources are available:
31
+
32
+ 1. Run the install command yourself: `codex mcp add openaiDeveloperDocs --url https://developers.openai.com/mcp`
33
+ 2. If it fails due to permissions/sandboxing, immediately retry the same command with escalated permissions and include a 1-sentence justification for approval. Do not ask the user to run it yet.
34
+ 3. Only if the escalated attempt fails, ask the user to run the install command.
35
+ 4. Ask the user to restart Codex.
36
+ 5. Re-run the doc search/fetch after restart.
37
+
38
+ ## Workflow
39
+
40
+ 1. Clarify the product scope and whether the request is general docs lookup, model selection, a GPT-5.4 upgrade, or a GPT-5.4 prompt upgrade.
41
+ 2. If it is a model-selection request, load `references/latest-model.md`.
42
+ 3. If it is an explicit GPT-5.4 upgrade request, load `references/upgrading-to-gpt-5p4.md`.
43
+ 4. If the upgrade may require prompt changes, or the workflow is research-heavy, tool-heavy, coding-oriented, multi-agent, or long-running, also load `references/gpt-5p4-prompting-guide.md`.
44
+ 5. Search docs with a precise query.
45
+ 6. Fetch the best page and the exact section needed (use `anchor` when possible).
46
+ 7. For GPT-5.4 upgrade reviews, always make the per-usage-site output explicit: target model, starting reasoning recommendation, `phase` assessment when relevant, prompt blocks, and compatibility status.
47
+ 8. Answer with concise guidance and cite the doc source, using the reference files only as helper context.
48
+
49
+ ## Reference map
50
+
51
+ Read only what you need:
52
+
53
+ - `references/latest-model.md` -> model-selection and "best/latest/current model" questions; verify every recommendation against current OpenAI docs before answering.
54
+ - `references/upgrading-to-gpt-5p4.md` -> only for explicit GPT-5.4 upgrade and upgrade-planning requests; verify the checklist and compatibility guidance against current OpenAI docs before answering.
55
+ - `references/gpt-5p4-prompting-guide.md` -> prompt rewrites and prompt-behavior upgrades for GPT-5.4; verify prompting guidance against current OpenAI docs before answering.
56
+
57
+ ## Quality rules
58
+
59
+ - Treat OpenAI docs as the source of truth; avoid speculation.
60
+ - Keep quotes short and within policy limits; prefer paraphrase with citations.
61
+ - If multiple pages differ, call out the difference and cite both.
62
+ - Reference files are convenience guides only; for volatile guidance such as recommended models, upgrade instructions, or prompting advice, current OpenAI docs always win.
63
+ - If docs do not cover the user’s need, say so and offer next steps.
64
+
65
+ ## Tooling notes
66
+
67
+ - Always use MCP doc tools before any web search for OpenAI-related questions.
68
+ - If the MCP server is installed but returns no meaningful results, then use web search as a fallback.
69
+ - When falling back to web search, restrict to official OpenAI domains (developers.openai.com, platform.openai.com) and cite sources.
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: "pdf"
3
+ description: "Use when tasks involve reading, creating, or reviewing PDF files where rendering and layout matter; prefer visual checks by rendering pages (Poppler) and use Python tools such as `reportlab`, `pdfplumber`, and `pypdf` for generation and extraction."
4
+ ---
5
+
6
+
7
+ # PDF Skill
8
+
9
+ ## When to use
10
+ - Read or review PDF content where layout and visuals matter.
11
+ - Create PDFs programmatically with reliable formatting.
12
+ - Validate final rendering before delivery.
13
+
14
+ ## Workflow
15
+ 1. Prefer visual review: render PDF pages to PNGs and inspect them.
16
+ - Use `pdftoppm` if available.
17
+ - If unavailable, install Poppler or ask the user to review the output locally.
18
+ 2. Use `reportlab` to generate PDFs when creating new documents.
19
+ 3. Use `pdfplumber` (or `pypdf`) for text extraction and quick checks; do not rely on it for layout fidelity.
20
+ 4. After each meaningful update, re-render pages and verify alignment, spacing, and legibility.
21
+
22
+ ## Temp and output conventions
23
+ - Use `tmp/pdfs/` for intermediate files; delete when done.
24
+ - Write final artifacts under `output/pdf/` when working in this repo.
25
+ - Keep filenames stable and descriptive.
26
+
27
+ ## Dependencies (install if missing)
28
+ Prefer `uv` for dependency management.
29
+
30
+ Python packages:
31
+ ```
32
+ uv pip install reportlab pdfplumber pypdf
33
+ ```
34
+ If `uv` is unavailable:
35
+ ```
36
+ python3 -m pip install reportlab pdfplumber pypdf
37
+ ```
38
+ System tools (for rendering):
39
+ ```
40
+ # macOS (Homebrew)
41
+ brew install poppler
42
+
43
+ # Ubuntu/Debian
44
+ sudo apt-get install -y poppler-utils
45
+ ```
46
+
47
+ If installation isn't possible in this environment, tell the user which dependency is missing and how to install it locally.
48
+
49
+ ## Environment
50
+ No required environment variables.
51
+
52
+ ## Rendering command
53
+ ```
54
+ pdftoppm -png $INPUT_PDF $OUTPUT_PREFIX
55
+ ```
56
+
57
+ ## Quality expectations
58
+ - Maintain polished visual design: consistent typography, spacing, margins, and section hierarchy.
59
+ - Avoid rendering issues: clipped text, overlapping elements, broken tables, black squares, or unreadable glyphs.
60
+ - Charts, tables, and images must be sharp, aligned, and clearly labeled.
61
+ - Use ASCII hyphens only. Avoid U+2011 (non-breaking hyphen) and other Unicode dashes.
62
+ - Citations and references must be human-readable; never leave tool tokens or placeholder strings.
63
+
64
+ ## Final checks
65
+ - Do not deliver until the latest PNG inspection shows zero visual or formatting defects.
66
+ - Confirm headers/footers, page numbering, and section transitions look polished.
67
+ - Keep intermediate files organized or remove them after final approval.
@@ -0,0 +1,147 @@
1
+ ---
2
+ name: "playwright"
3
+ description: "Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via `playwright-cli` or the bundled wrapper script."
4
+ ---
5
+
6
+
7
+ # Playwright CLI Skill
8
+
9
+ Drive a real browser from the terminal using `playwright-cli`. Prefer the bundled wrapper script so the CLI works even when it is not globally installed.
10
+ Treat this skill as CLI-first automation. Do not pivot to `@playwright/test` unless the user explicitly asks for test files.
11
+
12
+ ## Prerequisite check (required)
13
+
14
+ Before proposing commands, check whether `npx` is available (the wrapper depends on it):
15
+
16
+ ```bash
17
+ command -v npx >/dev/null 2>&1
18
+ ```
19
+
20
+ If it is not available, pause and ask the user to install Node.js/npm (which provides `npx`). Provide these steps verbatim:
21
+
22
+ ```bash
23
+ # Verify Node/npm are installed
24
+ node --version
25
+ npm --version
26
+
27
+ # If missing, install Node.js/npm, then:
28
+ npm install -g @playwright/cli@latest
29
+ playwright-cli --help
30
+ ```
31
+
32
+ Once `npx` is present, proceed with the wrapper script. A global install of `playwright-cli` is optional.
33
+
34
+ ## Skill path (set once)
35
+
36
+ ```bash
37
+ export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
38
+ export PWCLI="$CODEX_HOME/skills/playwright/scripts/playwright_cli.sh"
39
+ ```
40
+
41
+ User-scoped skills install under `$CODEX_HOME/skills` (default: `~/.codex/skills`).
42
+
43
+ ## Quick start
44
+
45
+ Use the wrapper script:
46
+
47
+ ```bash
48
+ "$PWCLI" open https://playwright.dev --headed
49
+ "$PWCLI" snapshot
50
+ "$PWCLI" click e15
51
+ "$PWCLI" type "Playwright"
52
+ "$PWCLI" press Enter
53
+ "$PWCLI" screenshot
54
+ ```
55
+
56
+ If the user prefers a global install, this is also valid:
57
+
58
+ ```bash
59
+ npm install -g @playwright/cli@latest
60
+ playwright-cli --help
61
+ ```
62
+
63
+ ## Core workflow
64
+
65
+ 1. Open the page.
66
+ 2. Snapshot to get stable element refs.
67
+ 3. Interact using refs from the latest snapshot.
68
+ 4. Re-snapshot after navigation or significant DOM changes.
69
+ 5. Capture artifacts (screenshot, pdf, traces) when useful.
70
+
71
+ Minimal loop:
72
+
73
+ ```bash
74
+ "$PWCLI" open https://example.com
75
+ "$PWCLI" snapshot
76
+ "$PWCLI" click e3
77
+ "$PWCLI" snapshot
78
+ ```
79
+
80
+ ## When to snapshot again
81
+
82
+ Snapshot again after:
83
+
84
+ - navigation
85
+ - clicking elements that change the UI substantially
86
+ - opening/closing modals or menus
87
+ - tab switches
88
+
89
+ Refs can go stale. When a command fails due to a missing ref, snapshot again.
90
+
91
+ ## Recommended patterns
92
+
93
+ ### Form fill and submit
94
+
95
+ ```bash
96
+ "$PWCLI" open https://example.com/form
97
+ "$PWCLI" snapshot
98
+ "$PWCLI" fill e1 "user@example.com"
99
+ "$PWCLI" fill e2 "password123"
100
+ "$PWCLI" click e3
101
+ "$PWCLI" snapshot
102
+ ```
103
+
104
+ ### Debug a UI flow with traces
105
+
106
+ ```bash
107
+ "$PWCLI" open https://example.com --headed
108
+ "$PWCLI" tracing-start
109
+ # ...interactions...
110
+ "$PWCLI" tracing-stop
111
+ ```
112
+
113
+ ### Multi-tab work
114
+
115
+ ```bash
116
+ "$PWCLI" tab-new https://example.com
117
+ "$PWCLI" tab-list
118
+ "$PWCLI" tab-select 0
119
+ "$PWCLI" snapshot
120
+ ```
121
+
122
+ ## Wrapper script
123
+
124
+ The wrapper script uses `npx --package @playwright/cli playwright-cli` so the CLI can run without a global install:
125
+
126
+ ```bash
127
+ "$PWCLI" --help
128
+ ```
129
+
130
+ Prefer the wrapper unless the repository already standardizes on a global install.
131
+
132
+ ## References
133
+
134
+ Open only what you need:
135
+
136
+ - CLI command reference: `references/cli.md`
137
+ - Practical workflows and troubleshooting: `references/workflows.md`
138
+
139
+ ## Guardrails
140
+
141
+ - Always snapshot before referencing element ids like `e12`.
142
+ - Re-snapshot when refs seem stale.
143
+ - Prefer explicit commands over `eval` and `run-code` unless needed.
144
+ - When you do not have a fresh snapshot, use placeholder refs like `eX` and say why; do not bypass refs with `run-code`.
145
+ - Use `--headed` when a visual check will help.
146
+ - When capturing artifacts in this repo, use `output/playwright/` and avoid introducing new top-level artifact folders.
147
+ - Default to CLI commands and workflows, not Playwright test specs.