natureco-cli 5.18.3 → 5.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/package.json +1 -1
- package/skills/a-b-testing/SKILL.md +34 -0
- package/skills/accessibility-audit/SKILL.md +34 -0
- package/skills/agent-memory/SKILL.md +34 -0
- package/skills/agent-orchestration/SKILL.md +34 -0
- package/skills/airunway-aks-setup/SKILL.md +73 -0
- package/skills/algorithmic-art/SKILL.md +405 -0
- package/skills/analytics-setup/SKILL.md +34 -0
- package/skills/api-design/SKILL.md +34 -0
- package/skills/api-versioning/SKILL.md +34 -0
- package/skills/appinsights-instrumentation/SKILL.md +76 -0
- package/skills/audio-transcription/SKILL.md +34 -0
- package/skills/authentication-patterns/SKILL.md +34 -0
- package/skills/authorization-rbac/SKILL.md +34 -0
- package/skills/azure-ai/SKILL.md +71 -0
- package/skills/azure-aigateway/SKILL.md +129 -0
- package/skills/azure-cloud-migrate/SKILL.md +52 -0
- package/skills/azure-compliance/SKILL.md +108 -0
- package/skills/azure-compute/SKILL.md +46 -0
- package/skills/azure-cost/SKILL.md +45 -0
- package/skills/azure-deploy/SKILL.md +97 -0
- package/skills/azure-diagnostics/SKILL.md +151 -0
- package/skills/azure-enterprise-infra-planner/SKILL.md +54 -0
- package/skills/azure-hosted-copilot-sdk/SKILL.md +89 -0
- package/skills/azure-kubernetes/SKILL.md +153 -0
- package/skills/azure-kusto/SKILL.md +231 -0
- package/skills/azure-messaging/SKILL.md +57 -0
- package/skills/azure-prepare/SKILL.md +165 -0
- package/skills/azure-quotas/SKILL.md +276 -0
- package/skills/azure-rbac/SKILL.md +17 -0
- package/skills/azure-reliability/SKILL.md +387 -0
- package/skills/azure-resource-lookup/SKILL.md +108 -0
- package/skills/azure-resource-visualizer/SKILL.md +183 -0
- package/skills/azure-storage/SKILL.md +100 -0
- package/skills/azure-upgrade/SKILL.md +91 -0
- package/skills/azure-validate/SKILL.md +72 -0
- package/skills/backup-strategy/SKILL.md +34 -0
- package/skills/bash-scripting/SKILL.md +34 -0
- package/skills/batch-api-calls/SKILL.md +34 -0
- package/skills/batch-processing/SKILL.md +34 -0
- package/skills/brainstorming/SKILL.md +159 -0
- package/skills/brand-guidelines/SKILL.md +73 -0
- package/skills/brandkit/SKILL.md +798 -0
- package/skills/brutalist-skill/SKILL.md +92 -0
- package/skills/bulk-file-operations/SKILL.md +34 -0
- package/skills/cache-responses/SKILL.md +34 -0
- package/skills/caching-strategy/SKILL.md +34 -0
- package/skills/calendar-optimization/SKILL.md +34 -0
- package/skills/canvas-design/SKILL.md +130 -0
- package/skills/cavecrew/SKILL.md +82 -0
- package/skills/caveman-commit/SKILL.md +65 -0
- package/skills/caveman-help/SKILL.md +63 -0
- package/skills/caveman-review/SKILL.md +55 -0
- package/skills/caveman-stats/SKILL.md +10 -0
- package/skills/changelog-generation/SKILL.md +34 -0
- package/skills/chat-bot-design/SKILL.md +34 -0
- package/skills/chunking-strategy/SKILL.md +34 -0
- package/skills/ci-cd-pipeline/SKILL.md +34 -0
- package/skills/classification-pipeline/SKILL.md +34 -0
- package/skills/claude-api/SKILL.md +356 -0
- package/skills/clipboard-master/SKILL.md +34 -0
- package/skills/code-explanation/SKILL.md +34 -0
- package/skills/code-generation/SKILL.md +34 -0
- package/skills/code-migration/SKILL.md +34 -0
- package/skills/code-review-checklist/SKILL.md +34 -0
- package/skills/composition-patterns/SKILL.md +89 -0
- package/skills/contact-management/SKILL.md +34 -0
- package/skills/content-generation/SKILL.md +34 -0
- package/skills/context-pruning/SKILL.md +34 -0
- package/skills/context-window-management/SKILL.md +34 -0
- package/skills/continuous-improvement/SKILL.md +34 -0
- package/skills/cron-scheduling/SKILL.md +34 -0
- package/skills/cross-platform-compat/SKILL.md +34 -0
- package/skills/csv-processing/SKILL.md +34 -0
- package/skills/daily-journal/SKILL.md +34 -0
- package/skills/data-analysis/SKILL.md +34 -0
- package/skills/data-backup/SKILL.md +34 -0
- package/skills/data-cleaning/SKILL.md +34 -0
- package/skills/data-extraction/SKILL.md +34 -0
- package/skills/data-validation/SKILL.md +34 -0
- package/skills/database-migrations/SKILL.md +34 -0
- package/skills/database-schema-design/SKILL.md +34 -0
- package/skills/decision-mapping/SKILL.md +84 -0
- package/skills/decision-matrix/SKILL.md +34 -0
- package/skills/dependency-management/SKILL.md +34 -0
- package/skills/deploy-to-vercel/SKILL.md +296 -0
- package/skills/design-an-interface/SKILL.md +94 -0
- package/skills/design-doc-mermaid/SKILL.md +498 -0
- package/skills/dev-environment-setup/SKILL.md +34 -0
- package/skills/develop-userscripts/SKILL.md +84 -0
- package/skills/distraction-blocker/SKILL.md +34 -0
- package/skills/doc-coauthoring/SKILL.md +375 -0
- package/skills/docker-optimization/SKILL.md +34 -0
- package/skills/document-template/SKILL.md +34 -0
- package/skills/documentation/SKILL.md +109 -0
- package/skills/documentation-gen/SKILL.md +34 -0
- package/skills/docx/SKILL.md +590 -0
- package/skills/edit-article/SKILL.md +15 -0
- package/skills/efficient-formatting/SKILL.md +34 -0
- package/skills/email-management/SKILL.md +34 -0
- package/skills/email-service/SKILL.md +34 -0
- package/skills/embedding-generation/SKILL.md +34 -0
- package/skills/entity-extraction/SKILL.md +34 -0
- package/skills/entra-agent-id/SKILL.md +356 -0
- package/skills/entra-app-registration/SKILL.md +191 -0
- package/skills/environment-config/SKILL.md +34 -0
- package/skills/error-handling/SKILL.md +34 -0
- package/skills/estimation-techniques/SKILL.md +34 -0
- package/skills/event-driven-architecture/SKILL.md +34 -0
- package/skills/excel-automation/SKILL.md +34 -0
- package/skills/execution-monitoring/SKILL.md +34 -0
- package/skills/expense-tracking/SKILL.md +34 -0
- package/skills/faceless-explainer/SKILL.md +202 -0
- package/skills/fastify/SKILL.md +75 -0
- package/skills/feature-engineering/SKILL.md +34 -0
- package/skills/feature-flags/SKILL.md +34 -0
- package/skills/file-conversion/SKILL.md +34 -0
- package/skills/file-upload-handling/SKILL.md +34 -0
- package/skills/fine-tuning-prep/SKILL.md +34 -0
- package/skills/focus-mode/SKILL.md +34 -0
- package/skills/form-validation/SKILL.md +34 -0
- package/skills/function-calling/SKILL.md +34 -0
- package/skills/general-video/SKILL.md +143 -0
- package/skills/git-guardrails-claude-code/SKILL.md +95 -0
- package/skills/git-workflow/SKILL.md +34 -0
- package/skills/github-actions-docs/SKILL.md +98 -0
- package/skills/goal-setting/SKILL.md +34 -0
- package/skills/gpt-tasteskill/SKILL.md +74 -0
- package/skills/graphql-design/SKILL.md +34 -0
- package/skills/grill-me/SKILL.md +7 -0
- package/skills/grilling/SKILL.md +10 -0
- package/skills/habit-tracker/SKILL.md +34 -0
- package/skills/hallucination-detection/SKILL.md +34 -0
- package/skills/handoff/SKILL.md +16 -0
- package/skills/hyperframes/SKILL.md +152 -0
- package/skills/hyperframes-animation/SKILL.md +82 -0
- package/skills/hyperframes-cli/SKILL.md +109 -0
- package/skills/hyperframes-core/SKILL.md +78 -0
- package/skills/hyperframes-creative/SKILL.md +68 -0
- package/skills/hyperframes-media/SKILL.md +97 -0
- package/skills/image-processing/SKILL.md +34 -0
- package/skills/image-to-code-skill/SKILL.md +1228 -0
- package/skills/imagegen-frontend-mobile/SKILL.md +1465 -0
- package/skills/imagegen-frontend-web/SKILL.md +987 -0
- package/skills/implement/SKILL.md +15 -0
- package/skills/init/SKILL.md +91 -0
- package/skills/internal-comms/SKILL.md +32 -0
- package/skills/json-transformation/SKILL.md +34 -0
- package/skills/keyboard-shortcuts/SKILL.md +34 -0
- package/skills/knowledge-base/SKILL.md +34 -0
- package/skills/knowledge-graph/SKILL.md +34 -0
- package/skills/kubernetes-deployment/SKILL.md +34 -0
- package/skills/language-translation/SKILL.md +34 -0
- package/skills/lark-approval/SKILL.md +56 -0
- package/skills/lark-base/SKILL.md +157 -0
- package/skills/lark-doc/SKILL.md +81 -0
- package/skills/lark-shared/SKILL.md +168 -0
- package/skills/lark-workflow-meeting-summary/SKILL.md +122 -0
- package/skills/linting-neostandard-eslint9/SKILL.md +64 -0
- package/skills/llm-chaining/SKILL.md +34 -0
- package/skills/localization-i18n/SKILL.md +34 -0
- package/skills/logging-best-practices/SKILL.md +34 -0
- package/skills/loop-me/SKILL.md +32 -0
- package/skills/machine-learning-pipeline/SKILL.md +34 -0
- package/skills/meeting-notes/SKILL.md +34 -0
- package/skills/meeting-scheduler/SKILL.md +34 -0
- package/skills/message-queues/SKILL.md +34 -0
- package/skills/message-summarization/SKILL.md +34 -0
- package/skills/microservices-architecture/SKILL.md +34 -0
- package/skills/microsoft-foundry/SKILL.md +262 -0
- package/skills/migrate-to-shoehorn/SKILL.md +118 -0
- package/skills/milestone-tracking/SKILL.md +34 -0
- package/skills/minimalist-skill/SKILL.md +85 -0
- package/skills/model-deployment/SKILL.md +34 -0
- package/skills/model-evaluation/SKILL.md +34 -0
- package/skills/monitoring-setup/SKILL.md +34 -0
- package/skills/monorepo-setup/SKILL.md +34 -0
- package/skills/motion-graphics/SKILL.md +170 -0
- package/skills/multi-agent-systems/SKILL.md +34 -0
- package/skills/music-to-video/SKILL.md +197 -0
- package/skills/network-troubleshooting/SKILL.md +34 -0
- package/skills/node/SKILL.md +94 -0
- package/skills/nodejs-core/SKILL.md +156 -0
- package/skills/note-organization/SKILL.md +34 -0
- package/skills/oauth/SKILL.md +186 -0
- package/skills/obsidian-vault/SKILL.md +59 -0
- package/skills/octocat/SKILL.md +93 -0
- package/skills/openclaw-secure-linux-cloud/SKILL.md +157 -0
- package/skills/opensource-guide-coach/SKILL.md +218 -0
- package/skills/output-skill/SKILL.md +49 -0
- package/skills/package-publishing/SKILL.md +34 -0
- package/skills/password-generator/SKILL.md +34 -0
- package/skills/pdf/SKILL.md +314 -0
- package/skills/pdf-processing/SKILL.md +34 -0
- package/skills/performance-optimization/SKILL.md +34 -0
- package/skills/pomodoro-timer/SKILL.md +34 -0
- package/skills/powershell-automation/SKILL.md +34 -0
- package/skills/pptx/SKILL.md +232 -0
- package/skills/pr-to-video/SKILL.md +235 -0
- package/skills/priority-filtering/SKILL.md +34 -0
- package/skills/product-launch-video/SKILL.md +205 -0
- package/skills/project-tracking/SKILL.md +34 -0
- package/skills/prompt-compression/SKILL.md +34 -0
- package/skills/prompt-engineering/SKILL.md +34 -0
- package/skills/push-notifications/SKILL.md +34 -0
- package/skills/python-appservice-deploy/SKILL.md +36 -0
- package/skills/qa/SKILL.md +130 -0
- package/skills/rag-implementation/SKILL.md +34 -0
- package/skills/rate-limiting/SKILL.md +34 -0
- package/skills/react-best-practices/SKILL.md +149 -0
- package/skills/react-native-skills/SKILL.md +121 -0
- package/skills/react-view-transitions/SKILL.md +320 -0
- package/skills/readme-i18n/SKILL.md +176 -0
- package/skills/real-time-communication/SKILL.md +34 -0
- package/skills/redesign-skill/SKILL.md +178 -0
- package/skills/refactoring-strategy/SKILL.md +34 -0
- package/skills/regex-mastery/SKILL.md +34 -0
- package/skills/remotion/SKILL.md +364 -0
- package/skills/report-generation/SKILL.md +34 -0
- package/skills/request-refactor-plan/SKILL.md +68 -0
- package/skills/research-compiler/SKILL.md +34 -0
- package/skills/resolving-merge-conflicts/SKILL.md +14 -0
- package/skills/responsive-design/SKILL.md +34 -0
- package/skills/rest-api-patterns/SKILL.md +34 -0
- package/skills/retrospectives/SKILL.md +34 -0
- package/skills/risk-assessment/SKILL.md +34 -0
- package/skills/roadmap-creation/SKILL.md +34 -0
- package/skills/running-claude-code-via-litellm-copilot/SKILL.md +263 -0
- package/skills/scaffold-exercises/SKILL.md +106 -0
- package/skills/search-implementation/SKILL.md +34 -0
- package/skills/secrets-management/SKILL.md +34 -0
- package/skills/secure-linux-web-hosting/SKILL.md +162 -0
- package/skills/security-audit/SKILL.md +34 -0
- package/skills/selective-memory/SKILL.md +34 -0
- package/skills/semantic-search/SKILL.md +34 -0
- package/skills/semantic-versioning/SKILL.md +34 -0
- package/skills/sentiment-analysis/SKILL.md +34 -0
- package/skills/seo-optimization/SKILL.md +34 -0
- package/skills/setup-pre-commit/SKILL.md +91 -0
- package/skills/shadcn/SKILL.md +267 -0
- package/skills/simple/SKILL.md +52 -0
- package/skills/skill-creator/SKILL.md +485 -0
- package/skills/skill-optimizer/SKILL.md +47 -0
- package/skills/skills-cli/SKILL.md +281 -0
- package/skills/slack-gif-creator/SKILL.md +254 -0
- package/skills/snipgrapher/SKILL.md +58 -0
- package/skills/snippet-manager/SKILL.md +34 -0
- package/skills/soft-skill/SKILL.md +98 -0
- package/skills/sprint-planning/SKILL.md +34 -0
- package/skills/sql-query-optimization/SKILL.md +34 -0
- package/skills/stakeholder-communication/SKILL.md +34 -0
- package/skills/state-management/SKILL.md +34 -0
- package/skills/statistical-analysis/SKILL.md +34 -0
- package/skills/stitch-skill/SKILL.md +184 -0
- package/skills/streaming-responses/SKILL.md +34 -0
- package/skills/structured-output/SKILL.md +34 -0
- package/skills/summarization-techniques/SKILL.md +34 -0
- package/skills/supabase/SKILL.md +135 -0
- package/skills/supabase-postgres-best-practices/SKILL.md +64 -0
- package/skills/system-diagnostics/SKILL.md +34 -0
- package/skills/systematic-debugging/SKILL.md +296 -0
- package/skills/talking-head-recut/SKILL.md +1191 -0
- package/skills/task-decomposition/SKILL.md +34 -0
- package/skills/task-prioritization/SKILL.md +34 -0
- package/skills/taste-skill/SKILL.md +1206 -0
- package/skills/taste-skill-v1/SKILL.md +226 -0
- package/skills/tdd/SKILL.md +108 -0
- package/skills/teach/SKILL.md +140 -0
- package/skills/template-library/SKILL.md +34 -0
- package/skills/test-driven-development/SKILL.md +371 -0
- package/skills/test-generation/SKILL.md +34 -0
- package/skills/testing-strategy/SKILL.md +34 -0
- package/skills/text-expansion/SKILL.md +34 -0
- package/skills/theme-factory/SKILL.md +59 -0
- package/skills/time-blocking/SKILL.md +34 -0
- package/skills/to-prd/SKILL.md +75 -0
- package/skills/token-budgeting/SKILL.md +34 -0
- package/skills/token-optimization/SKILL.md +34 -0
- package/skills/tool-calling-patterns/SKILL.md +34 -0
- package/skills/typescript-magician/SKILL.md +117 -0
- package/skills/tzst/SKILL.md +68 -0
- package/skills/ubiquitous-language/SKILL.md +93 -0
- package/skills/use-my-browser/SKILL.md +110 -0
- package/skills/using-superpowers/SKILL.md +121 -0
- package/skills/vector-database-setup/SKILL.md +34 -0
- package/skills/vercel-cli-with-tokens/SKILL.md +353 -0
- package/skills/vercel-optimize/SKILL.md +322 -0
- package/skills/video-editing/SKILL.md +34 -0
- package/skills/viral-instagram-reels/SKILL.md +180 -0
- package/skills/viral-short-form/SKILL.md +147 -0
- package/skills/viral-short-form-ideas/SKILL.md +184 -0
- package/skills/viral-tiktok-content/SKILL.md +180 -0
- package/skills/visualization-creation/SKILL.md +34 -0
- package/skills/web-artifacts-builder/SKILL.md +74 -0
- package/skills/web-design-guidelines/SKILL.md +39 -0
- package/skills/web-scraping/SKILL.md +34 -0
- package/skills/webapp-testing/SKILL.md +96 -0
- package/skills/webhook-handling/SKILL.md +34 -0
- package/skills/website-to-video/SKILL.md +145 -0
- package/skills/weekly-review/SKILL.md +34 -0
- package/skills/workflow-automation/SKILL.md +34 -0
- package/skills/writing-beats/SKILL.md +67 -0
- package/skills/writing-fragments/SKILL.md +79 -0
- package/skills/writing-great-skills/SKILL.md +82 -0
- package/skills/writing-guidelines/SKILL.md +39 -0
- package/skills/writing-plans/SKILL.md +174 -0
- package/skills/writing-shape/SKILL.md +79 -0
- package/skills/xdrop/SKILL.md +78 -0
- package/skills/xget/SKILL.md +87 -0
- package/skills/xlsx/SKILL.md +292 -0
- package/src/commands/code_v5.js +377 -73
- package/src/commands/repl.js +505 -86
- package/src/providers/model/anthropic.js +84 -0
- package/src/providers/model/gemini.js +49 -0
- package/src/providers/model/minimax.js +48 -0
- package/src/providers/model/ollama.js +42 -0
- package/src/providers/model/openai.js +49 -0
- package/src/providers/search/duckduckgo.js +45 -0
- package/src/providers/search/exa.js +52 -0
- package/src/providers/search/searxng.js +51 -0
- package/src/providers/search/tavily.js +47 -0
- package/src/tools/model_provider.js +71 -0
- package/src/tools/parallel_search.js +40 -49
- package/src/tools/search_provider.js +79 -0
- package/src/tools/skills_download.js +217 -0
- package/src/tools/web_search.js +42 -62
- package/src/tools/workflow.js +21 -9
- package/src/utils/cron.js +82 -126
- package/src/utils/effort-levels.js +42 -0
- package/src/utils/fallback-chain.js +72 -0
- package/src/utils/file-history.js +78 -0
- package/src/utils/model-provider.js +113 -0
- package/src/utils/permissions.js +147 -0
- package/src/utils/plan-mode.js +164 -0
- package/src/utils/provider-detect.js +7 -32
- package/src/utils/sandbox.js +60 -0
- package/src/utils/search-provider.js +62 -0
- package/src/utils/session-search.js +66 -0
- package/src/utils/structured-output.js +20 -0
- package/src/utils/system-prompt.js +28 -2
- package/src/utils/tasks.js +132 -0
- package/src/utils/tool-hooks.js +154 -0
- package/src/utils/tools.js +18 -2
- package/src/utils/ultra-review.js +59 -0
- package/src/utils/worktree.js +192 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: request-refactor-plan
|
|
3
|
+
description: Create a detailed refactor plan with tiny commits via user interview, then file it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
This skill will be invoked when the user wants to create a refactor request. You should go through the steps below. You may skip steps if you don't consider them necessary.
|
|
7
|
+
|
|
8
|
+
1. Ask the user for a long, detailed description of the problem they want to solve and any potential ideas for solutions.
|
|
9
|
+
|
|
10
|
+
2. Explore the repo to verify their assertions and understand the current state of the codebase.
|
|
11
|
+
|
|
12
|
+
3. Ask whether they have considered other options, and present other options to them.
|
|
13
|
+
|
|
14
|
+
4. Interview the user about the implementation. Be extremely detailed and thorough.
|
|
15
|
+
|
|
16
|
+
5. Hammer out the exact scope of the implementation. Work out what you plan to change and what you plan not to change.
|
|
17
|
+
|
|
18
|
+
6. Look in the codebase to check for test coverage of this area of the codebase. If there is insufficient test coverage, ask the user what their plans for testing are.
|
|
19
|
+
|
|
20
|
+
7. Break the implementation into a plan of tiny commits. Remember Martin Fowler's advice to "make each refactoring step as small as possible, so that you can always see the program working."
|
|
21
|
+
|
|
22
|
+
8. Create a GitHub issue with the refactor plan. Use the following template for the issue description:
|
|
23
|
+
|
|
24
|
+
<refactor-plan-template>
|
|
25
|
+
|
|
26
|
+
## Problem Statement
|
|
27
|
+
|
|
28
|
+
The problem that the developer is facing, from the developer's perspective.
|
|
29
|
+
|
|
30
|
+
## Solution
|
|
31
|
+
|
|
32
|
+
The solution to the problem, from the developer's perspective.
|
|
33
|
+
|
|
34
|
+
## Commits
|
|
35
|
+
|
|
36
|
+
A LONG, detailed implementation plan. Write the plan in plain English, breaking down the implementation into the tiniest commits possible. Each commit should leave the codebase in a working state.
|
|
37
|
+
|
|
38
|
+
## Decision Document
|
|
39
|
+
|
|
40
|
+
A list of implementation decisions that were made. This can include:
|
|
41
|
+
|
|
42
|
+
- The modules that will be built/modified
|
|
43
|
+
- The interfaces of those modules that will be modified
|
|
44
|
+
- Technical clarifications from the developer
|
|
45
|
+
- Architectural decisions
|
|
46
|
+
- Schema changes
|
|
47
|
+
- API contracts
|
|
48
|
+
- Specific interactions
|
|
49
|
+
|
|
50
|
+
Do NOT include specific file paths or code snippets. They may end up being outdated very quickly.
|
|
51
|
+
|
|
52
|
+
## Testing Decisions
|
|
53
|
+
|
|
54
|
+
A list of testing decisions that were made. Include:
|
|
55
|
+
|
|
56
|
+
- A description of what makes a good test (only test external behavior, not implementation details)
|
|
57
|
+
- Which modules will be tested
|
|
58
|
+
- Prior art for the tests (i.e. similar types of tests in the codebase)
|
|
59
|
+
|
|
60
|
+
## Out of Scope
|
|
61
|
+
|
|
62
|
+
A description of the things that are out of scope for this refactor.
|
|
63
|
+
|
|
64
|
+
## Further Notes (optional)
|
|
65
|
+
|
|
66
|
+
Any further notes about the refactor.
|
|
67
|
+
|
|
68
|
+
</refactor-plan-template>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: research-compiler
|
|
3
|
+
description: Compile research from multiple sources with annotations and synthesis
|
|
4
|
+
category: Productivity
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Research Compiler
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Compile research from multiple sources with annotations and synthesis. This skill helps you apply structured, repeatable methods for consistent results.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
- When you need to apply research compiler best practices
|
|
14
|
+
- When establishing processes or standards for your workflow
|
|
15
|
+
- When training team members on research compiler
|
|
16
|
+
- When automating or optimizing research compiler tasks
|
|
17
|
+
|
|
18
|
+
## Instructions
|
|
19
|
+
1. **Assess**: Evaluate the current state, requirements, and constraints
|
|
20
|
+
2. **Plan**: Define the approach, steps, and success criteria
|
|
21
|
+
3. **Execute**: Follow the established patterns and best practices
|
|
22
|
+
4. **Verify**: Check results against expected outcomes and quality standards
|
|
23
|
+
5. **Iterate**: Refine based on feedback and lessons learned
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
```
|
|
27
|
+
User: Help me apply research compiler for my current project
|
|
28
|
+
Assistant: I'll help you apply research compiler step by step...
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Related Skills
|
|
32
|
+
- Use with `workflow` tool for orchestrated execution
|
|
33
|
+
- Combine with `task` tool for delegated processing
|
|
34
|
+
- Reference `system-prompt` for system-level integration
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: resolving-merge-conflicts
|
|
3
|
+
description: "Use when you need to resolve an in-progress git merge/rebase conflict."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
1. **See the current state** of the merge/rebase. Check git history, and the conflicting files.
|
|
7
|
+
|
|
8
|
+
2. **Find the primary sources** for each conflict. Understand deeply why each change was made, and what the original intent was. Read the commit messages, check the PRs, check original issues/tickets.
|
|
9
|
+
|
|
10
|
+
3. **Resolve each hunk.** Preserve both intents where possible. Where incompatible, pick the one matching the merge's stated goal and note the trade-off. Do **not** invent new behaviour. Always resolve; never `--abort`.
|
|
11
|
+
|
|
12
|
+
4. Discover the project's **automated checks** and run them — typically typecheck, then tests, then format. Fix anything the merge broke.
|
|
13
|
+
|
|
14
|
+
5. **Finish the merge/rebase.** Stage everything and commit. If rebasing, continue the rebase process until all commits are rebased.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: responsive-design
|
|
3
|
+
description: Build responsive UIs with mobile-first CSS, breakpoints, and adaptive layouts
|
|
4
|
+
category: Software Development
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Responsive Design
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Build responsive UIs with mobile-first CSS, breakpoints, and adaptive layouts. This skill helps you apply structured, repeatable methods for consistent results.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
- When you need to apply responsive design best practices
|
|
14
|
+
- When establishing processes or standards for your workflow
|
|
15
|
+
- When training team members on responsive design
|
|
16
|
+
- When automating or optimizing responsive design tasks
|
|
17
|
+
|
|
18
|
+
## Instructions
|
|
19
|
+
1. **Assess**: Evaluate the current state, requirements, and constraints
|
|
20
|
+
2. **Plan**: Define the approach, steps, and success criteria
|
|
21
|
+
3. **Execute**: Follow the established patterns and best practices
|
|
22
|
+
4. **Verify**: Check results against expected outcomes and quality standards
|
|
23
|
+
5. **Iterate**: Refine based on feedback and lessons learned
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
```
|
|
27
|
+
User: Help me apply responsive design for my current project
|
|
28
|
+
Assistant: I'll help you apply responsive design step by step...
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Related Skills
|
|
32
|
+
- Use with `workflow` tool for orchestrated execution
|
|
33
|
+
- Combine with `task` tool for delegated processing
|
|
34
|
+
- Reference `system-prompt` for system-level integration
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rest-api-patterns
|
|
3
|
+
description: Implement REST API patterns including pagination, filtering, HATEOAS, and idempotency
|
|
4
|
+
category: Software Development
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Rest Api Patterns
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Implement REST API patterns including pagination, filtering, HATEOAS, and idempotency. This skill helps you apply structured, repeatable methods for consistent results.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
- When you need to apply rest api patterns best practices
|
|
14
|
+
- When establishing processes or standards for your workflow
|
|
15
|
+
- When training team members on rest api patterns
|
|
16
|
+
- When automating or optimizing rest api patterns tasks
|
|
17
|
+
|
|
18
|
+
## Instructions
|
|
19
|
+
1. **Assess**: Evaluate the current state, requirements, and constraints
|
|
20
|
+
2. **Plan**: Define the approach, steps, and success criteria
|
|
21
|
+
3. **Execute**: Follow the established patterns and best practices
|
|
22
|
+
4. **Verify**: Check results against expected outcomes and quality standards
|
|
23
|
+
5. **Iterate**: Refine based on feedback and lessons learned
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
```
|
|
27
|
+
User: Help me apply rest api patterns for my current project
|
|
28
|
+
Assistant: I'll help you apply rest api patterns step by step...
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Related Skills
|
|
32
|
+
- Use with `workflow` tool for orchestrated execution
|
|
33
|
+
- Combine with `task` tool for delegated processing
|
|
34
|
+
- Reference `system-prompt` for system-level integration
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: retrospectives
|
|
3
|
+
description: Run retrospectives with start-stop-continue, sailboat, and 4L frameworks
|
|
4
|
+
category: Planning & Execution
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Retrospectives
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Run retrospectives with start-stop-continue, sailboat, and 4L frameworks. This skill helps you apply structured, repeatable methods for consistent results.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
- When you need to apply retrospectives best practices
|
|
14
|
+
- When establishing processes or standards for your workflow
|
|
15
|
+
- When training team members on retrospectives
|
|
16
|
+
- When automating or optimizing retrospectives tasks
|
|
17
|
+
|
|
18
|
+
## Instructions
|
|
19
|
+
1. **Assess**: Evaluate the current state, requirements, and constraints
|
|
20
|
+
2. **Plan**: Define the approach, steps, and success criteria
|
|
21
|
+
3. **Execute**: Follow the established patterns and best practices
|
|
22
|
+
4. **Verify**: Check results against expected outcomes and quality standards
|
|
23
|
+
5. **Iterate**: Refine based on feedback and lessons learned
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
```
|
|
27
|
+
User: Help me apply retrospectives for my current project
|
|
28
|
+
Assistant: I'll help you apply retrospectives step by step...
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Related Skills
|
|
32
|
+
- Use with `workflow` tool for orchestrated execution
|
|
33
|
+
- Combine with `task` tool for delegated processing
|
|
34
|
+
- Reference `system-prompt` for system-level integration
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: risk-assessment
|
|
3
|
+
description: Assess project risks with probability-impact matrices, mitigation plans, and monitoring
|
|
4
|
+
category: Planning & Execution
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Risk Assessment
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Assess project risks with probability-impact matrices, mitigation plans, and monitoring. This skill helps you apply structured, repeatable methods for consistent results.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
- When you need to apply risk assessment best practices
|
|
14
|
+
- When establishing processes or standards for your workflow
|
|
15
|
+
- When training team members on risk assessment
|
|
16
|
+
- When automating or optimizing risk assessment tasks
|
|
17
|
+
|
|
18
|
+
## Instructions
|
|
19
|
+
1. **Assess**: Evaluate the current state, requirements, and constraints
|
|
20
|
+
2. **Plan**: Define the approach, steps, and success criteria
|
|
21
|
+
3. **Execute**: Follow the established patterns and best practices
|
|
22
|
+
4. **Verify**: Check results against expected outcomes and quality standards
|
|
23
|
+
5. **Iterate**: Refine based on feedback and lessons learned
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
```
|
|
27
|
+
User: Help me apply risk assessment for my current project
|
|
28
|
+
Assistant: I'll help you apply risk assessment step by step...
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Related Skills
|
|
32
|
+
- Use with `workflow` tool for orchestrated execution
|
|
33
|
+
- Combine with `task` tool for delegated processing
|
|
34
|
+
- Reference `system-prompt` for system-level integration
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: roadmap-creation
|
|
3
|
+
description: Create product roadmaps with themes, epics, timelines, and dependency mapping
|
|
4
|
+
category: Planning & Execution
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Roadmap Creation
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Create product roadmaps with themes, epics, timelines, and dependency mapping. This skill helps you apply structured, repeatable methods for consistent results.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
- When you need to apply roadmap creation best practices
|
|
14
|
+
- When establishing processes or standards for your workflow
|
|
15
|
+
- When training team members on roadmap creation
|
|
16
|
+
- When automating or optimizing roadmap creation tasks
|
|
17
|
+
|
|
18
|
+
## Instructions
|
|
19
|
+
1. **Assess**: Evaluate the current state, requirements, and constraints
|
|
20
|
+
2. **Plan**: Define the approach, steps, and success criteria
|
|
21
|
+
3. **Execute**: Follow the established patterns and best practices
|
|
22
|
+
4. **Verify**: Check results against expected outcomes and quality standards
|
|
23
|
+
5. **Iterate**: Refine based on feedback and lessons learned
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
```
|
|
27
|
+
User: Help me apply roadmap creation for my current project
|
|
28
|
+
Assistant: I'll help you apply roadmap creation step by step...
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Related Skills
|
|
32
|
+
- Use with `workflow` tool for orchestrated execution
|
|
33
|
+
- Combine with `task` tool for delegated processing
|
|
34
|
+
- Reference `system-prompt` for system-level integration
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: running-claude-code-via-litellm-copilot
|
|
3
|
+
description: Use when routing Claude Code through a local LiteLLM proxy to GitHub Copilot, reducing direct Anthropic spend, configuring ANTHROPIC_BASE_URL or ANTHROPIC_MODEL overrides, or troubleshooting Copilot proxy setup failures such as model-not-found, no localhost traffic, or GitHub 401/403 auth errors.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Overview
|
|
7
|
+
|
|
8
|
+
Use this skill for the specific workaround where Claude Code keeps its Anthropic-shaped client behavior, but the actual backend traffic is sent to a local LiteLLM proxy and then forwarded to GitHub Copilot.
|
|
9
|
+
|
|
10
|
+
Treat this as an advanced workaround, not an officially guaranteed GitHub workflow. Help the user succeed technically, but do not promise GitHub support, policy approval, or long-term compatibility.
|
|
11
|
+
|
|
12
|
+
This skill is guidance-first but execution-aware:
|
|
13
|
+
|
|
14
|
+
- If the user wants explanation only, provide the smallest correct set of files, commands, and checks.
|
|
15
|
+
- If the user wants real setup work on the current machine, inspect first and adapt commands to the active shell and OS.
|
|
16
|
+
- Pause before persistent edits such as `~/.claude/settings.json` or shell profile files.
|
|
17
|
+
|
|
18
|
+
Read [`references/doc-verified-notes.md`](./references/doc-verified-notes.md) before answering if you need to justify which parts come from the article and which parts were tightened against current LiteLLM docs.
|
|
19
|
+
|
|
20
|
+
## When To Use
|
|
21
|
+
|
|
22
|
+
Use this skill when the user wants any of the following:
|
|
23
|
+
|
|
24
|
+
- Claude Code to run against GitHub Copilot through LiteLLM
|
|
25
|
+
- lower direct Anthropic API spending while keeping the Claude Code workflow
|
|
26
|
+
- a local `config.yaml` for LiteLLM's GitHub Copilot provider
|
|
27
|
+
- `ANTHROPIC_BASE_URL`, `ANTHROPIC_MODEL`, or `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` setup
|
|
28
|
+
- help understanding GitHub device authorization during LiteLLM startup
|
|
29
|
+
- help with model mismatch, 404-like errors, no requests reaching LiteLLM, or GitHub 401/403 failures
|
|
30
|
+
|
|
31
|
+
Do not use this skill for:
|
|
32
|
+
|
|
33
|
+
- deciding whether the workaround is allowed by GitHub terms
|
|
34
|
+
- general LiteLLM architecture unrelated to Claude Code plus Copilot
|
|
35
|
+
- direct Anthropic API setup with no Copilot or LiteLLM component
|
|
36
|
+
|
|
37
|
+
## Core Rules
|
|
38
|
+
|
|
39
|
+
1. Lead with a short compliance caveat.
|
|
40
|
+
Explain that this is a workaround based on a local proxy path, not a GitHub-promoted workflow, and the user must evaluate the latest Copilot terms and limits for themselves.
|
|
41
|
+
2. Prefer the minimum viable path first.
|
|
42
|
+
Start with temporary environment variables and a local `config.yaml` unless the user explicitly wants a persistent setup.
|
|
43
|
+
3. Keep `ANTHROPIC_MODEL` and LiteLLM `model_name` identical.
|
|
44
|
+
Exact string match matters more than clever explanation.
|
|
45
|
+
4. Treat `ANTHROPIC_AUTH_TOKEN` as a local placeholder.
|
|
46
|
+
Claude Code expects a non-empty value locally, but it is not the GitHub Copilot credential and should not be presented as a reusable secret.
|
|
47
|
+
5. Never overwrite `~/.claude/settings.json` wholesale.
|
|
48
|
+
Merge only the needed `env` keys and preserve unrelated settings.
|
|
49
|
+
|
|
50
|
+
## Workflow
|
|
51
|
+
|
|
52
|
+
### 1. Preflight
|
|
53
|
+
|
|
54
|
+
Check these first when the user wants real setup work:
|
|
55
|
+
|
|
56
|
+
- `claude --help` succeeds
|
|
57
|
+
- `uv --version` or `pip --version` succeeds
|
|
58
|
+
- the user has GitHub Copilot access
|
|
59
|
+
- the intended LiteLLM port is available, usually `4000`
|
|
60
|
+
|
|
61
|
+
If the user only wants instructions, state the prerequisites instead of running them.
|
|
62
|
+
|
|
63
|
+
### 2. Choose Temporary vs Persistent Setup
|
|
64
|
+
|
|
65
|
+
Use this rule:
|
|
66
|
+
|
|
67
|
+
- Temporary setup: preferred default for first-time setup, debugging, and low-risk trials
|
|
68
|
+
- Persistent setup: only when the user explicitly wants the proxy path to apply every time Claude Code starts
|
|
69
|
+
|
|
70
|
+
For persistent setup, confirm the target file and then merge keys into `~/.claude/settings.json`. Do not replace the file contents.
|
|
71
|
+
|
|
72
|
+
### 3. Create LiteLLM `config.yaml`
|
|
73
|
+
|
|
74
|
+
Start from the article's flow, but keep the provider naming aligned with LiteLLM docs:
|
|
75
|
+
|
|
76
|
+
```yaml
|
|
77
|
+
model_list:
|
|
78
|
+
- model_name: claude-opus-4.5
|
|
79
|
+
litellm_params:
|
|
80
|
+
model: github_copilot/claude-opus-4.5
|
|
81
|
+
drop_params: true
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Explain the fields:
|
|
85
|
+
|
|
86
|
+
- `model_name`: the logical name Claude Code will request
|
|
87
|
+
- `model`: the LiteLLM provider route, using `github_copilot/<model>`
|
|
88
|
+
- `drop_params: true`: strips unsupported Anthropic-specific fields before forwarding to Copilot
|
|
89
|
+
|
|
90
|
+
If the user wants a different Copilot-backed model, keep the same pattern:
|
|
91
|
+
|
|
92
|
+
```yaml
|
|
93
|
+
model_list:
|
|
94
|
+
- model_name: <logical-name>
|
|
95
|
+
litellm_params:
|
|
96
|
+
model: github_copilot/<copilot-model>
|
|
97
|
+
drop_params: true
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Do not hardcode extra headers into the default path unless the user already hit a rejection that suggests header overrides are needed.
|
|
101
|
+
|
|
102
|
+
### 4. Install and Start LiteLLM
|
|
103
|
+
|
|
104
|
+
Preferred install:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
uv tool install "litellm[proxy]"
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Fallback:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
pip install "litellm[proxy]"
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Start the proxy from the directory containing `config.yaml`:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
litellm --config config.yaml --port 4000
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Tell the user to keep that terminal open because the logs are the fastest truth source during verification.
|
|
123
|
+
|
|
124
|
+
### 5. Explain GitHub Device Authorization
|
|
125
|
+
|
|
126
|
+
On the first successful request to the GitHub Copilot provider, LiteLLM may open a device authorization flow:
|
|
127
|
+
|
|
128
|
+
1. LiteLLM prints a verification URL and device code
|
|
129
|
+
2. the user opens the URL and approves the request
|
|
130
|
+
3. LiteLLM stores the resulting credential locally for future use
|
|
131
|
+
|
|
132
|
+
Optional token-location overrides exist:
|
|
133
|
+
|
|
134
|
+
- `GITHUB_COPILOT_TOKEN_DIR`
|
|
135
|
+
- `GITHUB_COPILOT_ACCESS_TOKEN_FILE`
|
|
136
|
+
|
|
137
|
+
Only mention these when the user needs custom token storage, shared environments, or troubleshooting around expired or misplaced credentials.
|
|
138
|
+
|
|
139
|
+
### 6. Configure Claude Code
|
|
140
|
+
|
|
141
|
+
For a temporary PowerShell session:
|
|
142
|
+
|
|
143
|
+
```powershell
|
|
144
|
+
$env:ANTHROPIC_AUTH_TOKEN = "sk-any-string"
|
|
145
|
+
$env:ANTHROPIC_BASE_URL = "http://localhost:4000"
|
|
146
|
+
$env:ANTHROPIC_MODEL = "claude-opus-4.5"
|
|
147
|
+
$env:CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC = "1"
|
|
148
|
+
claude
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
For a temporary Bash or Zsh session:
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
export ANTHROPIC_AUTH_TOKEN="sk-any-string"
|
|
155
|
+
export ANTHROPIC_BASE_URL="http://localhost:4000"
|
|
156
|
+
export ANTHROPIC_MODEL="claude-opus-4.5"
|
|
157
|
+
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
|
|
158
|
+
claude
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
For persistent configuration, merge these keys into `~/.claude/settings.json`:
|
|
162
|
+
|
|
163
|
+
```json
|
|
164
|
+
{
|
|
165
|
+
"env": {
|
|
166
|
+
"ANTHROPIC_AUTH_TOKEN": "sk-any-string",
|
|
167
|
+
"ANTHROPIC_BASE_URL": "http://localhost:4000",
|
|
168
|
+
"ANTHROPIC_MODEL": "claude-opus-4.5",
|
|
169
|
+
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Merge-safe behavior:
|
|
175
|
+
|
|
176
|
+
- if the file does not exist, create it
|
|
177
|
+
- if it exists, preserve all unrelated top-level keys
|
|
178
|
+
- preserve existing `env` entries that are unrelated to this workflow
|
|
179
|
+
- update only the four keys above
|
|
180
|
+
- if the JSON is malformed, stop and report the parse problem instead of overwriting the file
|
|
181
|
+
|
|
182
|
+
### 7. Verify The Request Chain
|
|
183
|
+
|
|
184
|
+
Use two terminals when possible:
|
|
185
|
+
|
|
186
|
+
- Terminal A runs LiteLLM
|
|
187
|
+
- Terminal B runs `claude`
|
|
188
|
+
|
|
189
|
+
Ask for one small prompt such as a short script or code review request, then verify:
|
|
190
|
+
|
|
191
|
+
- Claude Code starts normally
|
|
192
|
+
- LiteLLM logs show an inbound request
|
|
193
|
+
- LiteLLM logs indicate the GitHub Copilot model route, typically `github_copilot/<model>`
|
|
194
|
+
|
|
195
|
+
The healthy path is:
|
|
196
|
+
|
|
197
|
+
```text
|
|
198
|
+
Claude Code -> LiteLLM -> GitHub Copilot -> LiteLLM -> Claude Code
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### 8. Troubleshooting
|
|
202
|
+
|
|
203
|
+
If Claude Code reports model-not-found, 404-like failures, or LiteLLM says the model does not exist:
|
|
204
|
+
|
|
205
|
+
- compare `ANTHROPIC_MODEL` to `model_name` exactly
|
|
206
|
+
- check case, punctuation, and hyphens
|
|
207
|
+
|
|
208
|
+
If LiteLLM never receives a request:
|
|
209
|
+
|
|
210
|
+
- confirm `ANTHROPIC_BASE_URL` points to <http://localhost:4000>
|
|
211
|
+
- confirm LiteLLM is still running on that port
|
|
212
|
+
- confirm the environment variables were set in the same shell session that launched `claude`
|
|
213
|
+
- check local firewall or port conflicts if the URL is correct but still silent
|
|
214
|
+
|
|
215
|
+
If LiteLLM reaches GitHub Copilot but gets 401 or 403 responses:
|
|
216
|
+
|
|
217
|
+
- repeat the device authorization flow by restarting LiteLLM and retrying
|
|
218
|
+
- confirm the GitHub account still has Copilot access
|
|
219
|
+
- if custom token-directory variables are set, verify they point to the intended files
|
|
220
|
+
|
|
221
|
+
## Advanced Fallback: Header Overrides
|
|
222
|
+
|
|
223
|
+
The article uses explicit Copilot-style headers. Current LiteLLM docs expose GitHub Copilot as a provider and also document header override support.
|
|
224
|
+
|
|
225
|
+
Only reach for explicit `extra_headers` when:
|
|
226
|
+
|
|
227
|
+
- the basic provider flow reaches Copilot but still needs client-shape overrides
|
|
228
|
+
- the user already has evidence that a specific environment behaves better with editor-style headers
|
|
229
|
+
|
|
230
|
+
Example fallback:
|
|
231
|
+
|
|
232
|
+
```yaml
|
|
233
|
+
model_list:
|
|
234
|
+
- model_name: claude-opus-4.5
|
|
235
|
+
litellm_params:
|
|
236
|
+
model: github_copilot/claude-opus-4.5
|
|
237
|
+
drop_params: true
|
|
238
|
+
extra_headers:
|
|
239
|
+
editor-version: "vscode/1.85.1"
|
|
240
|
+
editor-plugin-version: "copilot/1.155.0"
|
|
241
|
+
Copilot-Integration-Id: "vscode-chat"
|
|
242
|
+
user-agent: "GithubCopilot/1.155.0"
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
Present this as an advanced fallback, not the universal default.
|
|
246
|
+
|
|
247
|
+
## Output Checklist
|
|
248
|
+
|
|
249
|
+
When answering a real user request with this skill, include:
|
|
250
|
+
|
|
251
|
+
- the brief compliance caveat
|
|
252
|
+
- the exact `config.yaml` or the delta to apply
|
|
253
|
+
- shell-appropriate commands
|
|
254
|
+
- whether the setup is temporary or persistent
|
|
255
|
+
- the verification path
|
|
256
|
+
- the smallest relevant troubleshooting section if something failed
|
|
257
|
+
|
|
258
|
+
## Safety Reminders
|
|
259
|
+
|
|
260
|
+
- Do not state that GitHub officially supports this workaround.
|
|
261
|
+
- Do not imply that a dummy `ANTHROPIC_AUTH_TOKEN` is a real Copilot credential.
|
|
262
|
+
- Do not recommend replacing `~/.claude/settings.json` wholesale.
|
|
263
|
+
- Do not present stale model names as guaranteed current availability; if the user asks for a specific model, keep the `github_copilot/<model>` pattern and note that Copilot-exposed model availability may change.
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: scaffold-exercises
|
|
3
|
+
description: Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Scaffold Exercises
|
|
7
|
+
|
|
8
|
+
Create exercise directory structures that pass `pnpm ai-hero-cli internal lint`, then commit with `git commit`.
|
|
9
|
+
|
|
10
|
+
## Directory naming
|
|
11
|
+
|
|
12
|
+
- **Sections**: `XX-section-name/` inside `exercises/` (e.g., `01-retrieval-skill-building`)
|
|
13
|
+
- **Exercises**: `XX.YY-exercise-name/` inside a section (e.g., `01.03-retrieval-with-bm25`)
|
|
14
|
+
- Section number = `XX`, exercise number = `XX.YY`
|
|
15
|
+
- Names are dash-case (lowercase, hyphens)
|
|
16
|
+
|
|
17
|
+
## Exercise variants
|
|
18
|
+
|
|
19
|
+
Each exercise needs at least one of these subfolders:
|
|
20
|
+
|
|
21
|
+
- `problem/` - student workspace with TODOs
|
|
22
|
+
- `solution/` - reference implementation
|
|
23
|
+
- `explainer/` - conceptual material, no TODOs
|
|
24
|
+
|
|
25
|
+
When stubbing, default to `explainer/` unless the plan specifies otherwise.
|
|
26
|
+
|
|
27
|
+
## Required files
|
|
28
|
+
|
|
29
|
+
Each subfolder (`problem/`, `solution/`, `explainer/`) needs a `readme.md` that:
|
|
30
|
+
|
|
31
|
+
- Is **not empty** (must have real content, even a single title line works)
|
|
32
|
+
- Has no broken links
|
|
33
|
+
|
|
34
|
+
When stubbing, create a minimal readme with a title and a description:
|
|
35
|
+
|
|
36
|
+
```md
|
|
37
|
+
# Exercise Title
|
|
38
|
+
|
|
39
|
+
Description here
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
If the subfolder has code, it also needs a `main.ts` (>1 line). But for stubs, a readme-only exercise is fine.
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
1. **Parse the plan** - extract section names, exercise names, and variant types
|
|
47
|
+
2. **Create directories** - `mkdir -p` for each path
|
|
48
|
+
3. **Create stub readmes** - one `readme.md` per variant folder with a title
|
|
49
|
+
4. **Run lint** - `pnpm ai-hero-cli internal lint` to validate
|
|
50
|
+
5. **Fix any errors** - iterate until lint passes
|
|
51
|
+
|
|
52
|
+
## Lint rules summary
|
|
53
|
+
|
|
54
|
+
The linter (`pnpm ai-hero-cli internal lint`) checks:
|
|
55
|
+
|
|
56
|
+
- Each exercise has subfolders (`problem/`, `solution/`, `explainer/`)
|
|
57
|
+
- At least one of `problem/`, `explainer/`, or `explainer.1/` exists
|
|
58
|
+
- `readme.md` exists and is non-empty in the primary subfolder
|
|
59
|
+
- No `.gitkeep` files
|
|
60
|
+
- No `speaker-notes.md` files
|
|
61
|
+
- No broken links in readmes
|
|
62
|
+
- No `pnpm run exercise` commands in readmes
|
|
63
|
+
- `main.ts` required per subfolder unless it's readme-only
|
|
64
|
+
|
|
65
|
+
## Moving/renaming exercises
|
|
66
|
+
|
|
67
|
+
When renumbering or moving exercises:
|
|
68
|
+
|
|
69
|
+
1. Use `git mv` (not `mv`) to rename directories - preserves git history
|
|
70
|
+
2. Update the numeric prefix to maintain order
|
|
71
|
+
3. Re-run lint after moves
|
|
72
|
+
|
|
73
|
+
Example:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
git mv exercises/01-retrieval/01.03-embeddings exercises/01-retrieval/01.04-embeddings
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Example: stubbing from a plan
|
|
80
|
+
|
|
81
|
+
Given a plan like:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
Section 05: Memory Skill Building
|
|
85
|
+
- 05.01 Introduction to Memory
|
|
86
|
+
- 05.02 Short-term Memory (explainer + problem + solution)
|
|
87
|
+
- 05.03 Long-term Memory
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Create:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
mkdir -p exercises/05-memory-skill-building/05.01-introduction-to-memory/explainer
|
|
94
|
+
mkdir -p exercises/05-memory-skill-building/05.02-short-term-memory/{explainer,problem,solution}
|
|
95
|
+
mkdir -p exercises/05-memory-skill-building/05.03-long-term-memory/explainer
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Then create readme stubs:
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
exercises/05-memory-skill-building/05.01-introduction-to-memory/explainer/readme.md -> "# Introduction to Memory"
|
|
102
|
+
exercises/05-memory-skill-building/05.02-short-term-memory/explainer/readme.md -> "# Short-term Memory"
|
|
103
|
+
exercises/05-memory-skill-building/05.02-short-term-memory/problem/readme.md -> "# Short-term Memory"
|
|
104
|
+
exercises/05-memory-skill-building/05.02-short-term-memory/solution/readme.md -> "# Short-term Memory"
|
|
105
|
+
exercises/05-memory-skill-building/05.03-long-term-memory/explainer/readme.md -> "# Long-term Memory"
|
|
106
|
+
```
|