natureco-cli 5.18.3 → 5.19.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/package.json +1 -1
- package/skills/airunway-aks-setup/SKILL.md +73 -0
- package/skills/algorithmic-art/SKILL.md +405 -0
- package/skills/appinsights-instrumentation/SKILL.md +76 -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/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/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/claude-api/SKILL.md +356 -0
- package/skills/composition-patterns/SKILL.md +89 -0
- package/skills/decision-mapping/SKILL.md +84 -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/develop-userscripts/SKILL.md +84 -0
- package/skills/doc-coauthoring/SKILL.md +375 -0
- package/skills/documentation/SKILL.md +109 -0
- package/skills/docx/SKILL.md +590 -0
- package/skills/edit-article/SKILL.md +15 -0
- package/skills/entra-agent-id/SKILL.md +356 -0
- package/skills/entra-app-registration/SKILL.md +191 -0
- package/skills/faceless-explainer/SKILL.md +202 -0
- package/skills/fastify/SKILL.md +75 -0
- package/skills/general-video/SKILL.md +143 -0
- package/skills/git-guardrails-claude-code/SKILL.md +95 -0
- package/skills/github-actions-docs/SKILL.md +98 -0
- package/skills/gpt-tasteskill/SKILL.md +74 -0
- package/skills/grill-me/SKILL.md +7 -0
- package/skills/grilling/SKILL.md +10 -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-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/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/loop-me/SKILL.md +32 -0
- package/skills/microsoft-foundry/SKILL.md +262 -0
- package/skills/migrate-to-shoehorn/SKILL.md +118 -0
- package/skills/minimalist-skill/SKILL.md +85 -0
- package/skills/motion-graphics/SKILL.md +170 -0
- package/skills/music-to-video/SKILL.md +197 -0
- package/skills/node/SKILL.md +94 -0
- package/skills/nodejs-core/SKILL.md +156 -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/pdf/SKILL.md +314 -0
- package/skills/pptx/SKILL.md +232 -0
- package/skills/pr-to-video/SKILL.md +235 -0
- package/skills/product-launch-video/SKILL.md +205 -0
- package/skills/python-appservice-deploy/SKILL.md +36 -0
- package/skills/qa/SKILL.md +130 -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/redesign-skill/SKILL.md +178 -0
- package/skills/remotion/SKILL.md +364 -0
- package/skills/request-refactor-plan/SKILL.md +68 -0
- package/skills/resolving-merge-conflicts/SKILL.md +14 -0
- package/skills/running-claude-code-via-litellm-copilot/SKILL.md +263 -0
- package/skills/scaffold-exercises/SKILL.md +106 -0
- package/skills/secure-linux-web-hosting/SKILL.md +162 -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/soft-skill/SKILL.md +98 -0
- package/skills/stitch-skill/SKILL.md +184 -0
- package/skills/supabase/SKILL.md +135 -0
- package/skills/supabase-postgres-best-practices/SKILL.md +64 -0
- package/skills/systematic-debugging/SKILL.md +296 -0
- package/skills/talking-head-recut/SKILL.md +1191 -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/test-driven-development/SKILL.md +371 -0
- package/skills/theme-factory/SKILL.md +59 -0
- package/skills/to-prd/SKILL.md +75 -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/vercel-cli-with-tokens/SKILL.md +353 -0
- package/skills/vercel-optimize/SKILL.md +322 -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/web-artifacts-builder/SKILL.md +74 -0
- package/skills/web-design-guidelines/SKILL.md +39 -0
- package/skills/webapp-testing/SKILL.md +96 -0
- package/skills/website-to-video/SKILL.md +145 -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/tools/skills_download.js +217 -0
- package/src/utils/tools.js +2 -2
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-shape
|
|
3
|
+
description: Writing, exploit — shape raw material into an article, paragraph by paragraph.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<what-to-do>
|
|
8
|
+
|
|
9
|
+
The user has passed (or will pass) a markdown file of raw material. Treat it as the input pile — anything from a tidy list of fragments to a wall of unstructured prose to a transcript. The format does not matter. Read it end-to-end before doing anything else.
|
|
10
|
+
|
|
11
|
+
Then run a shaping session that produces a separate article document. This is **exploit**: the exploring is done, the pile is fixed — commit to a structure and mine the pile to fill it. Do not edit the raw material file — it is read-only to this skill.
|
|
12
|
+
|
|
13
|
+
If the user did not say where to save the article, ask once and remember the path.
|
|
14
|
+
|
|
15
|
+
</what-to-do>
|
|
16
|
+
|
|
17
|
+
<supporting-info>
|
|
18
|
+
|
|
19
|
+
## The loop
|
|
20
|
+
|
|
21
|
+
1. **Read the pile.** Read the input file in full. Form a sense of what's in it.
|
|
22
|
+
2. **Establish the prerequisites.** Settle with the user what the reader knows walking in — the concepts that are **grounded** from the start. Everything else must be grounded by a block before a later block can lean on it. See [Grounding](#grounding).
|
|
23
|
+
3. **Draft 2–3 candidate openings.** Each opening should imply a different thesis or angle for the article. Show all of them. Force the user to pick or compose a hybrid. The chosen opening defines what the rest of the article must do.
|
|
24
|
+
4. **Grow paragraph by paragraph.** After the opening lands, ask "given this opening, what does the reader need to hear next?" Pull material from the pile to answer. The next block may only lean on grounded concepts, and grounds new ones as it lands. Argue about the form the next block takes — a paragraph, a list, a table, a callout, a quote, a code block. Each format choice should be deliberate and defensible.
|
|
25
|
+
5. **Append to the article file as you go.** Don't batch. Write each agreed paragraph or block immediately so the user can see the article taking shape.
|
|
26
|
+
6. **Loop step 4 until the article is done.** The user decides when it's done.
|
|
27
|
+
|
|
28
|
+
## Grounding
|
|
29
|
+
|
|
30
|
+
Every **concept** has to be **grounded** before a block can lean on it: the reader either walked in knowing it or met it in an earlier block. A block that reaches for an ungrounded concept loses the reader. The unit is the concept, not the word for it — a block can lean on an idea the reader lacks even with no jargon in sight. Where a concept has a name — a **term** — grounding it means landing the idea and the term together.
|
|
31
|
+
|
|
32
|
+
A concept gets grounded one of two ways:
|
|
33
|
+
|
|
34
|
+
- **Prerequisite** — grounded before the opening. The reader brings it. Fixed at the start.
|
|
35
|
+
- **Introduced** — a block establishes it, and from then on it's grounded for the rest of the article.
|
|
36
|
+
|
|
37
|
+
Keep a running list of what's grounded. When you ask "what does the reader need to hear next?", an ungrounded concept the next move needs is itself the answer: ground it first — here or in an earlier block — or you can't make the move. This is the gap-naming of [Pulling from the pile](#pulling-from-the-pile) one level up: there the pile is missing material; here the article is missing a foundation.
|
|
38
|
+
|
|
39
|
+
The lever is what you make a prerequisite versus what you ground inside the article. Demand too much up front and you shut readers out; ground too much inside and the opening drowns in definitions. Settle it with the user when you establish prerequisites.
|
|
40
|
+
|
|
41
|
+
## Conversational feel
|
|
42
|
+
|
|
43
|
+
This is a grilling session inverted. In ideation, the question was "what are you actually noticing?" Here it's "what is this article actually arguing, and in what order does the reader need to hear it?" Push back. Refuse to let weak transitions slide. If a paragraph doesn't earn its place, cut it.
|
|
44
|
+
|
|
45
|
+
Specific moves to keep using:
|
|
46
|
+
|
|
47
|
+
- "What does this paragraph do for the reader that the previous one didn't?"
|
|
48
|
+
- "If I cut this, what breaks?"
|
|
49
|
+
- "Is this prose, or should it be a list? Why prose?"
|
|
50
|
+
- "This sentence is doing two jobs — split it or pick one."
|
|
51
|
+
- "The opening promised X. We've drifted to Y. Either re-thread it or change the opening."
|
|
52
|
+
|
|
53
|
+
## Pulling from the pile
|
|
54
|
+
|
|
55
|
+
Treat the raw material as a quarry, not a script. Pull a fragment, rework it to fit the surrounding paragraph, and place it. A fragment may be split across multiple paragraphs, merged with another, or paraphrased. The pile's job is to be mined; the article's job is to read as one voice.
|
|
56
|
+
|
|
57
|
+
If the pile lacks something the article needs, name the gap explicitly: "We need an example here and the pile doesn't have one — give me one now or we cut this section."
|
|
58
|
+
|
|
59
|
+
## Format arguments to actually have
|
|
60
|
+
|
|
61
|
+
When choosing how to render a block, weigh these tradeoffs out loud with the user, not silently:
|
|
62
|
+
|
|
63
|
+
- **Prose vs. list.** Prose carries argument; lists carry parallel items. If items aren't truly parallel, prose is better. If they are, a list is faster to scan.
|
|
64
|
+
- **Inline vs. callout.** Tips, warnings, and asides go in callouts (`> [!TIP]`, `> [!NOTE]`) — but only if they'd genuinely derail the main argument inline. Otherwise leave them inline.
|
|
65
|
+
- **Table vs. repeated structure.** If the same shape repeats 3+ times with the same fields, a table. Otherwise prose with bold leads.
|
|
66
|
+
- **Quote vs. paraphrase.** Quote when the original wording is the point. Paraphrase when only the idea matters.
|
|
67
|
+
- **Code block vs. inline code.** Multi-line, runnable, or illustrative → block. Single token or identifier → inline.
|
|
68
|
+
|
|
69
|
+
## Writing rhythm
|
|
70
|
+
|
|
71
|
+
Append to the article file as each block is agreed. Re-read the file from disk before every write — the user may have edited between turns. Never overwrite blindly. If the user wants a paragraph rewritten, edit that specific paragraph in place; leave the rest alone.
|
|
72
|
+
|
|
73
|
+
## Out of scope
|
|
74
|
+
|
|
75
|
+
- Mining for new fragments that aren't in the pile (handle gaps as in "Pulling from the pile").
|
|
76
|
+
- Editing the raw material file.
|
|
77
|
+
- Publishing, formatting for a specific platform, or adding frontmatter the user didn't ask for.
|
|
78
|
+
|
|
79
|
+
</supporting-info>
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: xdrop
|
|
3
|
+
description: Use this skill when the user wants to send or fetch files through an Xdrop server from the terminal, asks to automate encrypted Xdrop share-link workflows, provides an Xdrop `/t/:transferId#k=...` link to download and decrypt locally, or needs Xdrop CLI flags such as `--quiet`, `--json`, `--expires-in`, `--output`, or `--api-url`, even if they do not explicitly mention the skill name.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Use the bundled scripts inside this skill directory.
|
|
7
|
+
|
|
8
|
+
## Available scripts
|
|
9
|
+
|
|
10
|
+
- `scripts/upload.mjs` — Upload local files or directories to an Xdrop server and print the share link
|
|
11
|
+
- `scripts/download.mjs` — Download an Xdrop share link, decrypt it locally, and save the files
|
|
12
|
+
|
|
13
|
+
Environment requirements:
|
|
14
|
+
|
|
15
|
+
- Bun
|
|
16
|
+
- Local filesystem access
|
|
17
|
+
- Network access to the target Xdrop server
|
|
18
|
+
|
|
19
|
+
## Upload
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
bun scripts/upload.mjs --server <xdrop-site-url> <file-or-directory> [...]
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Prefer these flags when relevant:
|
|
26
|
+
|
|
27
|
+
- `--quiet`: suppress progress output and keep stdout clean
|
|
28
|
+
- `--json`: return `transferId`, `shareUrl`, and `expiresAt`
|
|
29
|
+
- `--expires-in <seconds>`: choose a supported expiry
|
|
30
|
+
- `--api-url <url>`: override the default `<server>/api/v1`
|
|
31
|
+
- `--name <value>`: set the transfer display name
|
|
32
|
+
- `--concurrency <n>`: limit parallel uploads per file
|
|
33
|
+
|
|
34
|
+
Useful examples:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
bun scripts/upload.mjs --server http://localhost:8080 ./dist/report.pdf
|
|
38
|
+
bun scripts/upload.mjs --server http://localhost:8080 --quiet ./archive.zip
|
|
39
|
+
bun scripts/upload.mjs --server http://localhost:8080 --expires-in 600 --json ./notes.txt
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
If the user wants verification, upload a small temporary file and then confirm the public transfer API or browser can open the returned link.
|
|
43
|
+
|
|
44
|
+
## Download
|
|
45
|
+
|
|
46
|
+
Require the full share link, including `#k=...`. Without the fragment key, the transfer cannot be decrypted.
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
bun scripts/download.mjs "<share-url>"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Prefer these flags when relevant:
|
|
53
|
+
|
|
54
|
+
- `--output <dir>`: choose the destination directory
|
|
55
|
+
- `--quiet`: suppress progress output and keep stdout clean
|
|
56
|
+
- `--json`: return `transferId`, `outputRoot`, and saved file paths
|
|
57
|
+
- `--api-url <url>`: override the default `<share-origin>/api/v1`
|
|
58
|
+
|
|
59
|
+
Useful examples:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
bun scripts/download.mjs "http://localhost:8080/t/abc123#k=..."
|
|
63
|
+
bun scripts/download.mjs --output ./downloads "http://localhost:8080/t/abc123#k=..."
|
|
64
|
+
bun scripts/download.mjs --quiet --json --output ./downloads "http://localhost:8080/t/abc123#k=..."
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
By default the downloader writes to `./xdrop-<transferId>` and preserves the manifest's relative paths.
|
|
68
|
+
|
|
69
|
+
## Gotchas
|
|
70
|
+
|
|
71
|
+
- A download link without the `#k=...` fragment is not decryptable. Ask for the full original share URL.
|
|
72
|
+
- Use `--quiet` whenever another command or caller needs to capture stdout. Progress logs otherwise go to stderr, but the final result still matters.
|
|
73
|
+
|
|
74
|
+
## Guardrails
|
|
75
|
+
|
|
76
|
+
- Prefer `--quiet` when another command or script needs to capture stdout.
|
|
77
|
+
- Keep the full share link fragment intact for downloads.
|
|
78
|
+
- Do not bypass the scripts' built-in path sanitization or transfer cleanup behavior with manual ad hoc commands unless the user explicitly asks.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: xget
|
|
3
|
+
description:
|
|
4
|
+
Use when tasks involve Xget URL rewriting, registry/package/container/API
|
|
5
|
+
acceleration, integrating Xget into Git, download tools, package managers,
|
|
6
|
+
container builds, AI SDKs, CI/CD, deployment, self-hosting, or adapting
|
|
7
|
+
commands and config from the live README `Use Cases` section into files,
|
|
8
|
+
environments, shells, or base URLs.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Default to execution, not instruction. When the user expresses execution intent,
|
|
12
|
+
carry the change through directly: run the needed shell commands, edit the real
|
|
13
|
+
files, and verify the result instead of only replying with example commands.
|
|
14
|
+
Treat requests like "configure", "set up", "wire", "change", "add", "fix",
|
|
15
|
+
"migrate", "deploy", "run", or "make this use Xget" as execution intent unless
|
|
16
|
+
the user clearly asks for explanation only.
|
|
17
|
+
|
|
18
|
+
Resolve the base URL first:
|
|
19
|
+
|
|
20
|
+
1. use a domain the user explicitly gave
|
|
21
|
+
2. otherwise use `XGET_BASE_URL` from the environment
|
|
22
|
+
3. if neither exists, ask for the user's Xget base URL and whether it should be
|
|
23
|
+
set temporarily for the current shell/session or persistently for future
|
|
24
|
+
shells
|
|
25
|
+
4. use `https://xget.example.com` only as a clearly labeled placeholder for docs
|
|
26
|
+
or templates that do not have a real deployment yet
|
|
27
|
+
|
|
28
|
+
Prefer [`scripts/xget.mjs`](./scripts/xget.mjs) over manual guessing for live
|
|
29
|
+
platform data, URL conversion, and README `Use Cases` lookup.
|
|
30
|
+
|
|
31
|
+
Only stop to ask when a missing fact blocks safe execution, such as an unknown
|
|
32
|
+
real base URL for a command that must run against a live deployment. If the user
|
|
33
|
+
only needs docs or templates, use the placeholder path rules below.
|
|
34
|
+
|
|
35
|
+
## Workflow
|
|
36
|
+
|
|
37
|
+
1. Classify the task before reaching for examples:
|
|
38
|
+
- execution intent: the user wants commands run, files changed, or config
|
|
39
|
+
applied now
|
|
40
|
+
- guidance intent: the user explicitly wants examples, explanation, or a
|
|
41
|
+
template without applying it yet
|
|
42
|
+
- then bucket the technical area: one-off URL conversion or prefix lookup;
|
|
43
|
+
Git or download-tool acceleration; package-manager or language-ecosystem
|
|
44
|
+
configuration; container image, Dockerfile, Kubernetes, or CI/CD
|
|
45
|
+
acceleration; AI SDK / inference API base-URL configuration; deploying or
|
|
46
|
+
self-hosting Xget itself
|
|
47
|
+
2. Complete the base-URL preflight above. If the user wants help setting
|
|
48
|
+
`XGET_BASE_URL`, open [the reference guide](./references/REFERENCE.md) and:
|
|
49
|
+
- when the user asked you to set or wire it, run the shell-appropriate
|
|
50
|
+
temporary or persistent commands directly when the environment allows it
|
|
51
|
+
- when you cannot safely execute, ask the smallest blocking question or give
|
|
52
|
+
the exact command with the missing value clearly called out
|
|
53
|
+
3. Pull live README guidance in two steps instead of loading the whole section
|
|
54
|
+
by default:
|
|
55
|
+
- list candidate headings with `node scripts/xget.mjs topics --format json`
|
|
56
|
+
- narrow with `--match` or fetch a specific section with
|
|
57
|
+
`node scripts/xget.mjs snippet --base-url https://xget.example.com --heading "Docker Compose Configuration" --format text`
|
|
58
|
+
4. Prefer the smallest relevant live subsection. If a repeated child heading
|
|
59
|
+
like `Use in Project` is ambiguous, fetch its parent section instead.
|
|
60
|
+
5. Adapt the live guidance to the user's real task:
|
|
61
|
+
- for execution intent, apply the change end-to-end instead of stopping at
|
|
62
|
+
example commands
|
|
63
|
+
- run commands yourself when the request is to install, configure, rewrite,
|
|
64
|
+
switch, migrate, test, or otherwise perform the change
|
|
65
|
+
- edit the actual config or source files when the user wants implementation,
|
|
66
|
+
not just explanation
|
|
67
|
+
- keep shell commands aligned with the user's OS and shell
|
|
68
|
+
- preserve existing project conventions unless the user asked for a broader
|
|
69
|
+
rewrite
|
|
70
|
+
- after changing files or running commands, perform a lightweight
|
|
71
|
+
verification step when practical
|
|
72
|
+
6. Refresh the live platform map with
|
|
73
|
+
`node scripts/xget.mjs platforms --format json` when the answer depends on
|
|
74
|
+
current prefixes, and use `convert` for exact URL rewrites.
|
|
75
|
+
7. Combine multiple live sections when the workflow spans multiple layers. For
|
|
76
|
+
example, pair a package-manager section with container, deployment, or `.env`
|
|
77
|
+
guidance when the user's project needs more than one integration point.
|
|
78
|
+
8. Before finishing, sanity-check that every command, file edit, or example uses
|
|
79
|
+
the right Xget path shape:
|
|
80
|
+
- repo/content: `/{prefix}/...`
|
|
81
|
+
- crates.io HTTP URLs: `/crates/...` rather than `/crates/api/v1/crates/...`
|
|
82
|
+
- inference APIs: `/ip/{provider}/...`
|
|
83
|
+
- OCI registries: `/cr/{registry}/...`
|
|
84
|
+
9. If the live platform fetch fails or an upstream URL does not match any known
|
|
85
|
+
platform, say so explicitly and fall back to the stable guidance in
|
|
86
|
+
[`references/REFERENCE.md`](./references/REFERENCE.md) instead of inventing a
|
|
87
|
+
prefix.
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: xlsx
|
|
3
|
+
description: "Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved."
|
|
4
|
+
license: Proprietary. LICENSE.txt has complete terms
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Requirements for Outputs
|
|
8
|
+
|
|
9
|
+
## All Excel files
|
|
10
|
+
|
|
11
|
+
### Professional Font
|
|
12
|
+
- Use a consistent, professional font (e.g., Arial, Times New Roman) for all deliverables unless otherwise instructed by the user
|
|
13
|
+
|
|
14
|
+
### Zero Formula Errors
|
|
15
|
+
- Every Excel model MUST be delivered with ZERO formula errors (#REF!, #DIV/0!, #VALUE!, #N/A, #NAME?)
|
|
16
|
+
|
|
17
|
+
### Preserve Existing Templates (when updating templates)
|
|
18
|
+
- Study and EXACTLY match existing format, style, and conventions when modifying files
|
|
19
|
+
- Never impose standardized formatting on files with established patterns
|
|
20
|
+
- Existing template conventions ALWAYS override these guidelines
|
|
21
|
+
|
|
22
|
+
## Financial models
|
|
23
|
+
|
|
24
|
+
### Color Coding Standards
|
|
25
|
+
Unless otherwise stated by the user or existing template
|
|
26
|
+
|
|
27
|
+
#### Industry-Standard Color Conventions
|
|
28
|
+
- **Blue text (RGB: 0,0,255)**: Hardcoded inputs, and numbers users will change for scenarios
|
|
29
|
+
- **Black text (RGB: 0,0,0)**: ALL formulas and calculations
|
|
30
|
+
- **Green text (RGB: 0,128,0)**: Links pulling from other worksheets within same workbook
|
|
31
|
+
- **Red text (RGB: 255,0,0)**: External links to other files
|
|
32
|
+
- **Yellow background (RGB: 255,255,0)**: Key assumptions needing attention or cells that need to be updated
|
|
33
|
+
|
|
34
|
+
### Number Formatting Standards
|
|
35
|
+
|
|
36
|
+
#### Required Format Rules
|
|
37
|
+
- **Years**: Format as text strings (e.g., "2024" not "2,024")
|
|
38
|
+
- **Currency**: Use $#,##0 format; ALWAYS specify units in headers ("Revenue ($mm)")
|
|
39
|
+
- **Zeros**: Use number formatting to make all zeros "-", including percentages (e.g., "$#,##0;($#,##0);-")
|
|
40
|
+
- **Percentages**: Default to 0.0% format (one decimal)
|
|
41
|
+
- **Multiples**: Format as 0.0x for valuation multiples (EV/EBITDA, P/E)
|
|
42
|
+
- **Negative numbers**: Use parentheses (123) not minus -123
|
|
43
|
+
|
|
44
|
+
### Formula Construction Rules
|
|
45
|
+
|
|
46
|
+
#### Assumptions Placement
|
|
47
|
+
- Place ALL assumptions (growth rates, margins, multiples, etc.) in separate assumption cells
|
|
48
|
+
- Use cell references instead of hardcoded values in formulas
|
|
49
|
+
- Example: Use =B5*(1+$B$6) instead of =B5*1.05
|
|
50
|
+
|
|
51
|
+
#### Formula Error Prevention
|
|
52
|
+
- Verify all cell references are correct
|
|
53
|
+
- Check for off-by-one errors in ranges
|
|
54
|
+
- Ensure consistent formulas across all projection periods
|
|
55
|
+
- Test with edge cases (zero values, negative numbers)
|
|
56
|
+
- Verify no unintended circular references
|
|
57
|
+
|
|
58
|
+
#### Documentation Requirements for Hardcodes
|
|
59
|
+
- Comment or in cells beside (if end of table). Format: "Source: [System/Document], [Date], [Specific Reference], [URL if applicable]"
|
|
60
|
+
- Examples:
|
|
61
|
+
- "Source: Company 10-K, FY2024, Page 45, Revenue Note, [SEC EDGAR URL]"
|
|
62
|
+
- "Source: Company 10-Q, Q2 2025, Exhibit 99.1, [SEC EDGAR URL]"
|
|
63
|
+
- "Source: Bloomberg Terminal, 8/15/2025, AAPL US Equity"
|
|
64
|
+
- "Source: FactSet, 8/20/2025, Consensus Estimates Screen"
|
|
65
|
+
|
|
66
|
+
# XLSX creation, editing, and analysis
|
|
67
|
+
|
|
68
|
+
## Overview
|
|
69
|
+
|
|
70
|
+
A user may ask you to create, edit, or analyze the contents of an .xlsx file. You have different tools and workflows available for different tasks.
|
|
71
|
+
|
|
72
|
+
## Important Requirements
|
|
73
|
+
|
|
74
|
+
**LibreOffice Required for Formula Recalculation**: You can assume LibreOffice is installed for recalculating formula values using the `scripts/recalc.py` script. The script automatically configures LibreOffice on first run, including in sandboxed environments where Unix sockets are restricted (handled by `scripts/office/soffice.py`)
|
|
75
|
+
|
|
76
|
+
## Reading and analyzing data
|
|
77
|
+
|
|
78
|
+
### Data analysis with pandas
|
|
79
|
+
For data analysis, visualization, and basic operations, use **pandas** which provides powerful data manipulation capabilities:
|
|
80
|
+
|
|
81
|
+
```python
|
|
82
|
+
import pandas as pd
|
|
83
|
+
|
|
84
|
+
# Read Excel
|
|
85
|
+
df = pd.read_excel('file.xlsx') # Default: first sheet
|
|
86
|
+
all_sheets = pd.read_excel('file.xlsx', sheet_name=None) # All sheets as dict
|
|
87
|
+
|
|
88
|
+
# Analyze
|
|
89
|
+
df.head() # Preview data
|
|
90
|
+
df.info() # Column info
|
|
91
|
+
df.describe() # Statistics
|
|
92
|
+
|
|
93
|
+
# Write Excel
|
|
94
|
+
df.to_excel('output.xlsx', index=False)
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Excel File Workflows
|
|
98
|
+
|
|
99
|
+
## CRITICAL: Use Formulas, Not Hardcoded Values
|
|
100
|
+
|
|
101
|
+
**Always use Excel formulas instead of calculating values in Python and hardcoding them.** This ensures the spreadsheet remains dynamic and updateable.
|
|
102
|
+
|
|
103
|
+
### ❌ WRONG - Hardcoding Calculated Values
|
|
104
|
+
```python
|
|
105
|
+
# Bad: Calculating in Python and hardcoding result
|
|
106
|
+
total = df['Sales'].sum()
|
|
107
|
+
sheet['B10'] = total # Hardcodes 5000
|
|
108
|
+
|
|
109
|
+
# Bad: Computing growth rate in Python
|
|
110
|
+
growth = (df.iloc[-1]['Revenue'] - df.iloc[0]['Revenue']) / df.iloc[0]['Revenue']
|
|
111
|
+
sheet['C5'] = growth # Hardcodes 0.15
|
|
112
|
+
|
|
113
|
+
# Bad: Python calculation for average
|
|
114
|
+
avg = sum(values) / len(values)
|
|
115
|
+
sheet['D20'] = avg # Hardcodes 42.5
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### ✅ CORRECT - Using Excel Formulas
|
|
119
|
+
```python
|
|
120
|
+
# Good: Let Excel calculate the sum
|
|
121
|
+
sheet['B10'] = '=SUM(B2:B9)'
|
|
122
|
+
|
|
123
|
+
# Good: Growth rate as Excel formula
|
|
124
|
+
sheet['C5'] = '=(C4-C2)/C2'
|
|
125
|
+
|
|
126
|
+
# Good: Average using Excel function
|
|
127
|
+
sheet['D20'] = '=AVERAGE(D2:D19)'
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
This applies to ALL calculations - totals, percentages, ratios, differences, etc. The spreadsheet should be able to recalculate when source data changes.
|
|
131
|
+
|
|
132
|
+
## Common Workflow
|
|
133
|
+
1. **Choose tool**: pandas for data, openpyxl for formulas/formatting
|
|
134
|
+
2. **Create/Load**: Create new workbook or load existing file
|
|
135
|
+
3. **Modify**: Add/edit data, formulas, and formatting
|
|
136
|
+
4. **Save**: Write to file
|
|
137
|
+
5. **Recalculate formulas (MANDATORY IF USING FORMULAS)**: Use the scripts/recalc.py script
|
|
138
|
+
```bash
|
|
139
|
+
python scripts/recalc.py output.xlsx
|
|
140
|
+
```
|
|
141
|
+
6. **Verify and fix any errors**:
|
|
142
|
+
- The script returns JSON with error details
|
|
143
|
+
- If `status` is `errors_found`, check `error_summary` for specific error types and locations
|
|
144
|
+
- Fix the identified errors and recalculate again
|
|
145
|
+
- Common errors to fix:
|
|
146
|
+
- `#REF!`: Invalid cell references
|
|
147
|
+
- `#DIV/0!`: Division by zero
|
|
148
|
+
- `#VALUE!`: Wrong data type in formula
|
|
149
|
+
- `#NAME?`: Unrecognized formula name
|
|
150
|
+
|
|
151
|
+
### Creating new Excel files
|
|
152
|
+
|
|
153
|
+
```python
|
|
154
|
+
# Using openpyxl for formulas and formatting
|
|
155
|
+
from openpyxl import Workbook
|
|
156
|
+
from openpyxl.styles import Font, PatternFill, Alignment
|
|
157
|
+
|
|
158
|
+
wb = Workbook()
|
|
159
|
+
sheet = wb.active
|
|
160
|
+
|
|
161
|
+
# Add data
|
|
162
|
+
sheet['A1'] = 'Hello'
|
|
163
|
+
sheet['B1'] = 'World'
|
|
164
|
+
sheet.append(['Row', 'of', 'data'])
|
|
165
|
+
|
|
166
|
+
# Add formula
|
|
167
|
+
sheet['B2'] = '=SUM(A1:A10)'
|
|
168
|
+
|
|
169
|
+
# Formatting
|
|
170
|
+
sheet['A1'].font = Font(bold=True, color='FF0000')
|
|
171
|
+
sheet['A1'].fill = PatternFill('solid', start_color='FFFF00')
|
|
172
|
+
sheet['A1'].alignment = Alignment(horizontal='center')
|
|
173
|
+
|
|
174
|
+
# Column width
|
|
175
|
+
sheet.column_dimensions['A'].width = 20
|
|
176
|
+
|
|
177
|
+
wb.save('output.xlsx')
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Editing existing Excel files
|
|
181
|
+
|
|
182
|
+
```python
|
|
183
|
+
# Using openpyxl to preserve formulas and formatting
|
|
184
|
+
from openpyxl import load_workbook
|
|
185
|
+
|
|
186
|
+
# Load existing file
|
|
187
|
+
wb = load_workbook('existing.xlsx')
|
|
188
|
+
sheet = wb.active # or wb['SheetName'] for specific sheet
|
|
189
|
+
|
|
190
|
+
# Working with multiple sheets
|
|
191
|
+
for sheet_name in wb.sheetnames:
|
|
192
|
+
sheet = wb[sheet_name]
|
|
193
|
+
print(f"Sheet: {sheet_name}")
|
|
194
|
+
|
|
195
|
+
# Modify cells
|
|
196
|
+
sheet['A1'] = 'New Value'
|
|
197
|
+
sheet.insert_rows(2) # Insert row at position 2
|
|
198
|
+
sheet.delete_cols(3) # Delete column 3
|
|
199
|
+
|
|
200
|
+
# Add new sheet
|
|
201
|
+
new_sheet = wb.create_sheet('NewSheet')
|
|
202
|
+
new_sheet['A1'] = 'Data'
|
|
203
|
+
|
|
204
|
+
wb.save('modified.xlsx')
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
## Recalculating formulas
|
|
208
|
+
|
|
209
|
+
Excel files created or modified by openpyxl contain formulas as strings but not calculated values. Use the provided `scripts/recalc.py` script to recalculate formulas:
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
python scripts/recalc.py <excel_file> [timeout_seconds]
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
Example:
|
|
216
|
+
```bash
|
|
217
|
+
python scripts/recalc.py output.xlsx 30
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
The script:
|
|
221
|
+
- Automatically sets up LibreOffice macro on first run
|
|
222
|
+
- Recalculates all formulas in all sheets
|
|
223
|
+
- Scans ALL cells for Excel errors (#REF!, #DIV/0!, etc.)
|
|
224
|
+
- Returns JSON with detailed error locations and counts
|
|
225
|
+
- Works on both Linux and macOS
|
|
226
|
+
|
|
227
|
+
## Formula Verification Checklist
|
|
228
|
+
|
|
229
|
+
Quick checks to ensure formulas work correctly:
|
|
230
|
+
|
|
231
|
+
### Essential Verification
|
|
232
|
+
- [ ] **Test 2-3 sample references**: Verify they pull correct values before building full model
|
|
233
|
+
- [ ] **Column mapping**: Confirm Excel columns match (e.g., column 64 = BL, not BK)
|
|
234
|
+
- [ ] **Row offset**: Remember Excel rows are 1-indexed (DataFrame row 5 = Excel row 6)
|
|
235
|
+
|
|
236
|
+
### Common Pitfalls
|
|
237
|
+
- [ ] **NaN handling**: Check for null values with `pd.notna()`
|
|
238
|
+
- [ ] **Far-right columns**: FY data often in columns 50+
|
|
239
|
+
- [ ] **Multiple matches**: Search all occurrences, not just first
|
|
240
|
+
- [ ] **Division by zero**: Check denominators before using `/` in formulas (#DIV/0!)
|
|
241
|
+
- [ ] **Wrong references**: Verify all cell references point to intended cells (#REF!)
|
|
242
|
+
- [ ] **Cross-sheet references**: Use correct format (Sheet1!A1) for linking sheets
|
|
243
|
+
|
|
244
|
+
### Formula Testing Strategy
|
|
245
|
+
- [ ] **Start small**: Test formulas on 2-3 cells before applying broadly
|
|
246
|
+
- [ ] **Verify dependencies**: Check all cells referenced in formulas exist
|
|
247
|
+
- [ ] **Test edge cases**: Include zero, negative, and very large values
|
|
248
|
+
|
|
249
|
+
### Interpreting scripts/recalc.py Output
|
|
250
|
+
The script returns JSON with error details:
|
|
251
|
+
```json
|
|
252
|
+
{
|
|
253
|
+
"status": "success", // or "errors_found"
|
|
254
|
+
"total_errors": 0, // Total error count
|
|
255
|
+
"total_formulas": 42, // Number of formulas in file
|
|
256
|
+
"error_summary": { // Only present if errors found
|
|
257
|
+
"#REF!": {
|
|
258
|
+
"count": 2,
|
|
259
|
+
"locations": ["Sheet1!B5", "Sheet1!C10"]
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
## Best Practices
|
|
266
|
+
|
|
267
|
+
### Library Selection
|
|
268
|
+
- **pandas**: Best for data analysis, bulk operations, and simple data export
|
|
269
|
+
- **openpyxl**: Best for complex formatting, formulas, and Excel-specific features
|
|
270
|
+
|
|
271
|
+
### Working with openpyxl
|
|
272
|
+
- Cell indices are 1-based (row=1, column=1 refers to cell A1)
|
|
273
|
+
- Use `data_only=True` to read calculated values: `load_workbook('file.xlsx', data_only=True)`
|
|
274
|
+
- **Warning**: If opened with `data_only=True` and saved, formulas are replaced with values and permanently lost
|
|
275
|
+
- For large files: Use `read_only=True` for reading or `write_only=True` for writing
|
|
276
|
+
- Formulas are preserved but not evaluated - use scripts/recalc.py to update values
|
|
277
|
+
|
|
278
|
+
### Working with pandas
|
|
279
|
+
- Specify data types to avoid inference issues: `pd.read_excel('file.xlsx', dtype={'id': str})`
|
|
280
|
+
- For large files, read specific columns: `pd.read_excel('file.xlsx', usecols=['A', 'C', 'E'])`
|
|
281
|
+
- Handle dates properly: `pd.read_excel('file.xlsx', parse_dates=['date_column'])`
|
|
282
|
+
|
|
283
|
+
## Code Style Guidelines
|
|
284
|
+
**IMPORTANT**: When generating Python code for Excel operations:
|
|
285
|
+
- Write minimal, concise Python code without unnecessary comments
|
|
286
|
+
- Avoid verbose variable names and redundant operations
|
|
287
|
+
- Avoid unnecessary print statements
|
|
288
|
+
|
|
289
|
+
**For Excel files themselves**:
|
|
290
|
+
- Add comments to cells with complex formulas or important assumptions
|
|
291
|
+
- Document data sources for hardcoded values
|
|
292
|
+
- Include notes for key calculations and model sections
|