shmakk 1.1.0 → 1.2.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/README.md +16 -1
- package/package.json +6 -3
- package/scripts/import-skills.js +536 -0
- package/scripts/install-skills.js +64 -0
- package/skills/ai-elements.md +482 -0
- package/skills/architecture.md +151 -0
- package/skills/backend-adapter-aws-lambda.md +204 -0
- package/skills/backend-adapter-express.md +177 -0
- package/skills/backend-adapter-fastify.md +222 -0
- package/skills/backend-adapter-fetch.md +200 -0
- package/skills/backend-api-docs.md +22 -0
- package/skills/backend-aspire.md +232 -0
- package/skills/backend-aspnet-core.md +62 -0
- package/skills/backend-build-chatgpt-app.md +321 -0
- package/skills/backend-build-mcp-app.md +393 -0
- package/skills/backend-build-mcp-server.md +222 -0
- package/skills/backend-build-mcpb.md +200 -0
- package/skills/backend-building-ai-agent-on-cloudflare.md +401 -0
- package/skills/backend-caching.md +206 -0
- package/skills/backend-chatgpt-app-submission.md +157 -0
- package/skills/backend-chatgpt-apps.md +321 -0
- package/skills/backend-client-setup.md +318 -0
- package/skills/backend-containerize-aspnet-framework.md +455 -0
- package/skills/backend-create-spring-boot-java-project.md +164 -0
- package/skills/backend-create-spring-boot-kotlin-project.md +148 -0
- package/skills/backend-csharp-async.md +50 -0
- package/skills/backend-csharp-docs.md +63 -0
- package/skills/backend-csharp-mcp-server-generator.md +60 -0
- package/skills/backend-dotenv.md +201 -0
- package/skills/backend-dotenvx.md +119 -0
- package/skills/backend-env-vars.md +259 -0
- package/skills/backend-error-handling.md +254 -0
- package/skills/backend-fastapi.md +437 -0
- package/skills/backend-go-mcp-server-generator.md +335 -0
- package/skills/backend-java-mcp-server-generator.md +757 -0
- package/skills/backend-kotlin-mcp-server-generator.md +450 -0
- package/skills/backend-middlewares.md +243 -0
- package/skills/backend-multi-stage-dockerfile.md +47 -0
- package/skills/backend-nestjs.md +192 -0
- package/skills/backend-next-forge.md +375 -0
- package/skills/backend-nextjs.md +746 -0
- package/skills/backend-openapi-to-application-code.md +113 -0
- package/skills/backend-php-mcp-server-generator.md +523 -0
- package/skills/backend-python-mcp-server-generator.md +106 -0
- package/skills/backend-routing-middleware.md +251 -0
- package/skills/backend-ruby-mcp-server-generator.md +661 -0
- package/skills/backend-rust-mcp-server-generator.md +578 -0
- package/skills/backend-semantic-kernel.md +57 -0
- package/skills/backend-server-setup.md +379 -0
- package/skills/backend-server-side-calls.md +250 -0
- package/skills/backend-subscriptions.md +407 -0
- package/skills/backend-swift-mcp-server-generator.md +670 -0
- package/skills/backend-trpc-router.md +152 -0
- package/skills/backend-typescript-mcp-server-generator.md +91 -0
- package/skills/backend-validators.md +229 -0
- package/skills/backend.md +76 -0
- package/skills/backup.md +165 -0
- package/skills/budget.md +140 -0
- package/skills/business-gtm-0-to-1-launch.md +322 -0
- package/skills/business-gtm-operating-cadence.md +421 -0
- package/skills/business-gtm-positioning-strategy.md +439 -0
- package/skills/business-gtm-product-led-growth.md +340 -0
- package/skills/calendar.md +95 -0
- package/skills/code-review.md +130 -0
- package/skills/compliance.md +168 -0
- package/skills/contracts.md +130 -0
- package/skills/daily-job-run.md +46 -0
- package/skills/daily-webdesign.md +187 -0
- package/skills/database-bigquery-pipeline-audit.md +130 -0
- package/skills/database-cosmosdb-datamodeling.md +1046 -0
- package/skills/database-durable-objects.md +187 -0
- package/skills/database-ef-core.md +76 -0
- package/skills/database-fabric-lakehouse.md +107 -0
- package/skills/database-neon-postgres-egress-optimizer.md +213 -0
- package/skills/database-neon-postgres.md +218 -0
- package/skills/database-postgresql-code-review.md +213 -0
- package/skills/database-postgresql-optimization.md +405 -0
- package/skills/database-sql-code-review.md +302 -0
- package/skills/database-sql-optimization.md +297 -0
- package/skills/dependency-audit.md +165 -0
- package/skills/design-kami-landing.md +234 -0
- package/skills/design.md +221 -0
- package/skills/dev-acquire-codebase-knowledge.md +175 -0
- package/skills/dev-add-educational-comments.md +129 -0
- package/skills/dev-add-model-descriptions.md +74 -0
- package/skills/dev-adr-review.md +56 -0
- package/skills/dev-boost-prompt.md +26 -0
- package/skills/dev-build-run-debug.md +130 -0
- package/skills/dev-chunk.md +49 -0
- package/skills/dev-claude-md-improver.md +180 -0
- package/skills/dev-code-exemplars-blueprint-generator.md +127 -0
- package/skills/dev-code-tour.md +434 -0
- package/skills/dev-comment-code-generate-a-tutorial.md +27 -0
- package/skills/dev-commit.md +81 -0
- package/skills/dev-context-map.md +53 -0
- package/skills/dev-conventional-commit.md +73 -0
- package/skills/dev-create-architectural-decision-record.md +98 -0
- package/skills/dev-create-draft-pr.md +17 -0
- package/skills/dev-create-pr.md +17 -0
- package/skills/dev-create-readme.md +22 -0
- package/skills/dev-csharp-mstest.md +479 -0
- package/skills/dev-csharp-nunit.md +72 -0
- package/skills/dev-csharp-tunit.md +101 -0
- package/skills/dev-csharp-xunit.md +69 -0
- package/skills/dev-debug-failing-test.md +90 -0
- package/skills/dev-diff-analyze.md +32 -0
- package/skills/dev-diffs.md +24 -0
- package/skills/dev-dotnet-best-practices.md +86 -0
- package/skills/dev-dotnet-design-pattern-review.md +43 -0
- package/skills/dev-dotnet-timezone.md +110 -0
- package/skills/dev-dotnet-upgrade.md +117 -0
- package/skills/dev-doublecheck.md +278 -0
- package/skills/dev-explain-error.md +15 -0
- package/skills/dev-finding-discovery.md +164 -0
- package/skills/dev-fix-finding.md +111 -0
- package/skills/dev-full-file-edit.md +25 -0
- package/skills/dev-git-commit.md +125 -0
- package/skills/dev-git-flow-branch-creator.md +293 -0
- package/skills/dev-git-workflow.md +46 -0
- package/skills/dev-github-automation.md +64 -0
- package/skills/dev-github-code-review.md +1140 -0
- package/skills/dev-github-issues.md +202 -0
- package/skills/dev-gpt-5-4-prompting.md +55 -0
- package/skills/dev-investigation-mode.md +277 -0
- package/skills/dev-java-add-graalvm-native-image-support.md +450 -0
- package/skills/dev-java-docs.md +24 -0
- package/skills/dev-java-refactoring-extract-method.md +105 -0
- package/skills/dev-java-refactoring-remove-parameter.md +85 -0
- package/skills/dev-merge.md +73 -0
- package/skills/dev-migrate-create.md +36 -0
- package/skills/dev-migrate-validate.md +36 -0
- package/skills/dev-my-issues.md +9 -0
- package/skills/dev-my-pull-requests.md +15 -0
- package/skills/dev-planning-oracle-to-postgres-migration-integration-testing.md +45 -0
- package/skills/dev-playwright-generate-test.md +18 -0
- package/skills/dev-playwright.md +148 -0
- package/skills/dev-prompt-builder.md +142 -0
- package/skills/dev-pytest-coverage.md +29 -0
- package/skills/dev-python-manager-discovery.md +330 -0
- package/skills/dev-python-pypi-package-builder.md +445 -0
- package/skills/dev-readme-blueprint-generator.md +79 -0
- package/skills/dev-refactor-method-complexity-reduce.md +99 -0
- package/skills/dev-refactor-plan.md +66 -0
- package/skills/dev-refactor.md +646 -0
- package/skills/dev-review-and-refactor.md +16 -0
- package/skills/dev-reviewing-oracle-to-postgres-migration.md +68 -0
- package/skills/dev-ruff-recursive-fix.md +201 -0
- package/skills/dev-run-e2e-tests.md +126 -0
- package/skills/dev-run-pre-commit-checks.md +133 -0
- package/skills/dev-run-smoke-tests.md +127 -0
- package/skills/dev-scaffolding-oracle-to-postgres-migration-test-project.md +55 -0
- package/skills/dev-spring-boot-testing.md +190 -0
- package/skills/dev-sync-upstream.md +32 -0
- package/skills/dev-sync.md +74 -0
- package/skills/dev-tdd-workflow.md +23 -0
- package/skills/dev-terraform-azurerm-set-diff-analyzer.md +49 -0
- package/skills/dev-test-driven-development.md +372 -0
- package/skills/dev-test-gaps.md +18 -0
- package/skills/dev-test-triage.md +55 -0
- package/skills/dev-typer.md +267 -0
- package/skills/dev-typescript-setup.md +25 -0
- package/skills/dev-unified-diff-edit.md +16 -0
- package/skills/dev-unit-test-vue-pinia.md +198 -0
- package/skills/dev-using-git-worktrees.md +216 -0
- package/skills/dev-validation.md +99 -0
- package/skills/dev-verification.md +168 -0
- package/skills/dev-webapp-testing.md +134 -0
- package/skills/dev-write-coding-standards-from-file.md +317 -0
- package/skills/dev-write-tests.md +16 -0
- package/skills/devops-appinsights-instrumentation.md +49 -0
- package/skills/devops-az-cost-optimize.md +306 -0
- package/skills/devops-chronicle.md +154 -0
- package/skills/devops-deployments-cicd.md +331 -0
- package/skills/devops-devops-rollout-plan.md +118 -0
- package/skills/devops-geistdocs.md +276 -0
- package/skills/devops-observability.md +774 -0
- package/skills/devops-observe-metrics.md +35 -0
- package/skills/devops-observe-trace.md +30 -0
- package/skills/devops-phoenix-cli.md +163 -0
- package/skills/devops-phoenix-tracing.md +140 -0
- package/skills/devops-publish-to-pages.md +108 -0
- package/skills/devops-telemetry.md +87 -0
- package/skills/devops-update-avm-modules-in-bicep.md +61 -0
- package/skills/devops.md +81 -0
- package/skills/diagrams-canvas.md +204 -0
- package/skills/diagrams-draw-io-diagram-generator.md +463 -0
- package/skills/diagrams-excalidraw-diagram-generator.md +614 -0
- package/skills/diagrams-graphify.md +1277 -0
- package/skills/docs-bear-notes.md +108 -0
- package/skills/docs-create-llms.md +211 -0
- package/skills/docs-doc-gen.md +20 -0
- package/skills/docs-documentation-writer.md +46 -0
- package/skills/docs-llm-config.md +33 -0
- package/skills/docs-mkdocs-translations.md +109 -0
- package/skills/docs-obsidian-vault-maintainer.md +14 -0
- package/skills/docs-obsidian.md +82 -0
- package/skills/docs-prose.md +324 -0
- package/skills/docs-update-llms.md +217 -0
- package/skills/docs-update-markdown-file-index.md +77 -0
- package/skills/docs-wiki-maintainer.md +20 -0
- package/skills/documents.md +120 -0
- package/skills/email.md +113 -0
- package/skills/expenses.md +140 -0
- package/skills/file-ops.md +149 -0
- package/skills/files-convert-plaintext-to-md.md +363 -0
- package/skills/files-doc.md +81 -0
- package/skills/files-docx.md +594 -0
- package/skills/files-markdown-to-html.md +917 -0
- package/skills/files-nano-pdf.md +39 -0
- package/skills/files-pdf.md +315 -0
- package/skills/files-pdftk-server.md +163 -0
- package/skills/files-pptx-html-fidelity-audit.md +255 -0
- package/skills/files-pptx.md +231 -0
- package/skills/files-xlsx.md +301 -0
- package/skills/find-jobs.md +78 -0
- package/skills/format-conversion.md +157 -0
- package/skills/frontend-ai-elements.md +483 -0
- package/skills/frontend-ai-gateway.md +563 -0
- package/skills/frontend-ai-generation-persistence.md +242 -0
- package/skills/frontend-ai-sdk.md +799 -0
- package/skills/frontend-ai-visibility.md +127 -0
- package/skills/frontend-angular-developer.md +130 -0
- package/skills/frontend-aspnet-minimal-api-openapi.md +42 -0
- package/skills/frontend-bencium-innovative-ux-designer.md +719 -0
- package/skills/frontend-chat-sdk.md +666 -0
- package/skills/frontend-chrome-devtools.md +98 -0
- package/skills/frontend-frontend-app-builder.md +186 -0
- package/skills/frontend-frontend-design.md +43 -0
- package/skills/frontend-frontend-testing-debugging.md +143 -0
- package/skills/frontend-gsap-framer-scroll-animation.md +152 -0
- package/skills/frontend-internal-linking.md +109 -0
- package/skills/frontend-json-render.md +335 -0
- package/skills/frontend-keyword-clustering.md +118 -0
- package/skills/frontend-next-intl-add-language.md +20 -0
- package/skills/frontend-on-page-seo.md +112 -0
- package/skills/frontend-premium-frontend-ui.md +114 -0
- package/skills/frontend-react-best-practices.md +143 -0
- package/skills/frontend-schema-markup.md +160 -0
- package/skills/frontend-seo-audit.md +110 -0
- package/skills/frontend-swr.md +215 -0
- package/skills/frontend-technical-seo.md +162 -0
- package/skills/frontend-use-dom.md +418 -0
- package/skills/frontend-web-coder.md +564 -0
- package/skills/frontend-web-design-reviewer.md +369 -0
- package/skills/frontend-web-perf.md +202 -0
- package/skills/frontend.md +125 -0
- package/skills/general-adapter-standalone.md +199 -0
- package/skills/general-auth.md +356 -0
- package/skills/general-containerize-aspnetcore.md +393 -0
- package/skills/general-create-technical-spike.md +231 -0
- package/skills/general-cron-jobs.md +72 -0
- package/skills/general-ddd-aggregate.md +52 -0
- package/skills/general-ddd-context.md +46 -0
- package/skills/general-ddd-validate.md +51 -0
- package/skills/general-dependency-check.md +26 -0
- package/skills/general-email-marketing.md +86 -0
- package/skills/general-healthcheck.md +246 -0
- package/skills/general-import-infrastructure-as-code.md +368 -0
- package/skills/general-init.md +49 -0
- package/skills/general-java-junit.md +64 -0
- package/skills/general-java-springboot.md +66 -0
- package/skills/general-javascript-typescript-jest.md +45 -0
- package/skills/general-kotlin-springboot.md +71 -0
- package/skills/general-make-repo-contribution.md +91 -0
- package/skills/general-market-research.md +78 -0
- package/skills/general-marketplace.md +468 -0
- package/skills/general-model-recommendation.md +673 -0
- package/skills/general-payments.md +352 -0
- package/skills/general-quality-playbook.md +480 -0
- package/skills/general-run-integration-tests.md +113 -0
- package/skills/general-superjson.md +274 -0
- package/skills/general-swiftpm-macos.md +51 -0
- package/skills/general-threat-model.md +61 -0
- package/skills/invoices.md +167 -0
- package/skills/licenses.md +159 -0
- package/skills/logs.md +156 -0
- package/skills/marketing.md +139 -0
- package/skills/media-image-manipulation-image-magick.md +253 -0
- package/skills/media-imagegen.md +357 -0
- package/skills/media-openai-whisper-api.md +63 -0
- package/skills/media-openai-whisper.md +39 -0
- package/skills/media-peekaboo.md +191 -0
- package/skills/media-screenshot.md +268 -0
- package/skills/media-speech.md +145 -0
- package/skills/media-transcribe.md +82 -0
- package/skills/media-video-frames.md +47 -0
- package/skills/mobile-android-emulator-qa.md +81 -0
- package/skills/mobile-android-performance.md +280 -0
- package/skills/mobile-building-mcp-server-on-cloudflare.md +267 -0
- package/skills/mobile-building-native-ui.md +322 -0
- package/skills/mobile-expo-api-routes.md +369 -0
- package/skills/mobile-expo-cicd-workflows.md +92 -0
- package/skills/mobile-expo-deployment.md +191 -0
- package/skills/mobile-expo-dev-client.md +165 -0
- package/skills/mobile-expo-module.md +177 -0
- package/skills/mobile-expo-tailwind-setup.md +481 -0
- package/skills/mobile-expo-ui-jetpack-compose.md +41 -0
- package/skills/mobile-expo-ui-swift-ui.md +40 -0
- package/skills/mobile-ios-app-intents.md +78 -0
- package/skills/mobile-ios-debugger-agent.md +52 -0
- package/skills/mobile-ios-ettrace-performance.md +198 -0
- package/skills/mobile-ios-memgraph-leaks.md +77 -0
- package/skills/mobile-native-data-fetching.md +508 -0
- package/skills/mobile-packaging-notarization.md +48 -0
- package/skills/mobile-react-native-architecture.md +672 -0
- package/skills/mobile-react-native-mobile-design.md +438 -0
- package/skills/mobile-signing-entitlements.md +59 -0
- package/skills/mobile-swiftui-liquid-glass.md +91 -0
- package/skills/mobile-swiftui-patterns.md +210 -0
- package/skills/mobile-swiftui-performance-audit.md +108 -0
- package/skills/mobile-swiftui-ui-patterns.md +97 -0
- package/skills/mobile-swiftui-view-refactor.md +204 -0
- package/skills/mobile-upgrading-expo.md +134 -0
- package/skills/mobile.md +183 -0
- package/skills/notes.md +106 -0
- package/skills/planning-adr-create.md +62 -0
- package/skills/planning-adr-index.md +67 -0
- package/skills/planning-architecture-blueprint-generator.md +323 -0
- package/skills/planning-brainstorming.md +165 -0
- package/skills/planning-breakdown-epic-arch.md +67 -0
- package/skills/planning-breakdown-epic-pm.md +59 -0
- package/skills/planning-breakdown-feature-implementation.md +129 -0
- package/skills/planning-breakdown-feature-prd.md +62 -0
- package/skills/planning-breakdown-plan.md +510 -0
- package/skills/planning-breakdown-test.md +366 -0
- package/skills/planning-cloud-design-patterns.md +63 -0
- package/skills/planning-content-brief.md +128 -0
- package/skills/planning-content-strategy.md +138 -0
- package/skills/planning-content-translation.md +143 -0
- package/skills/planning-create-github-action-workflow-specification.md +277 -0
- package/skills/planning-create-github-issues-feature-from-implementation-plan.md +29 -0
- package/skills/planning-create-github-issues-for-unmet-specification-requirements.md +36 -0
- package/skills/planning-create-github-pull-request-from-specification.md +25 -0
- package/skills/planning-create-implementation-plan.md +158 -0
- package/skills/planning-create-specification.md +128 -0
- package/skills/planning-first-ask.md +31 -0
- package/skills/planning-folder-structure-blueprint-generator.md +406 -0
- package/skills/planning-gen-specs-as-issues.md +166 -0
- package/skills/planning-generate-snapshot.md +144 -0
- package/skills/planning-generate-status-report.md +336 -0
- package/skills/planning-metric-pack-designer.md +27 -0
- package/skills/planning-pm-spec.md +53 -0
- package/skills/planning-prd.md +144 -0
- package/skills/planning-project-assessment.md +182 -0
- package/skills/planning-project-setup-info-local.md +128 -0
- package/skills/planning-project-workflow-analysis-blueprint-generator.md +294 -0
- package/skills/planning-service-oriented-architecture.md +248 -0
- package/skills/planning-spec-to-backlog.md +544 -0
- package/skills/planning-technology-stack-blueprint-generator.md +243 -0
- package/skills/planning-update-implementation-plan.md +158 -0
- package/skills/planning-update-specification.md +128 -0
- package/skills/planning-what-context-needed.md +40 -0
- package/skills/planning-writing-plans.md +153 -0
- package/skills/prepare-application.md +81 -0
- package/skills/productivity-apple-notes.md +78 -0
- package/skills/productivity-apple-reminders.md +119 -0
- package/skills/productivity-capture-tasks-from-meeting-notes.md +680 -0
- package/skills/productivity-daily-prep.md +156 -0
- package/skills/productivity-email-drafter.md +101 -0
- package/skills/productivity-hr-onboarding.md +53 -0
- package/skills/productivity-things-mac.md +87 -0
- package/skills/productivity-update.md +169 -0
- package/skills/reminders.md +109 -0
- package/skills/research-dossier-collect.md +71 -0
- package/skills/research-kg-extract.md +37 -0
- package/skills/research-openai-docs.md +89 -0
- package/skills/research-research-add-items.md +31 -0
- package/skills/research-research-report.md +94 -0
- package/skills/research-research-synthesize.md +63 -0
- package/skills/research-summarize.md +88 -0
- package/skills/research-transformers-js.md +635 -0
- package/skills/research.md +119 -0
- package/skills/security-ai-prompt-engineering-safety-review.md +231 -0
- package/skills/security-attack-path-analysis.md +182 -0
- package/skills/security-gdpr-compliant.md +284 -0
- package/skills/security-mcp-security-audit.md +279 -0
- package/skills/security-pii-detect.md +31 -0
- package/skills/security-secret-scanning.md +243 -0
- package/skills/security-security-best-practices.md +87 -0
- package/skills/security-security-ownership-map.md +207 -0
- package/skills/security-security-review.md +169 -0
- package/skills/security-security-scan.md +138 -0
- package/skills/security-security-threat-model.md +82 -0
- package/skills/security-threat-model-analyst.md +76 -0
- package/skills/sysmon.md +181 -0
- package/skills/system-arch-linux-triage.md +32 -0
- package/skills/system-centos-linux-triage.md +32 -0
- package/skills/system-debian-linux-triage.md +32 -0
- package/skills/system-fedora-linux-triage.md +32 -0
- package/skills/system-geofeed-tuner.md +865 -0
- package/skills/system-iot-anomalies.md +15 -0
- package/skills/system-iot-firmware.md +16 -0
- package/skills/system-iot-fleet.md +14 -0
- package/skills/system-iot-register.md +19 -0
- package/skills/system-iot-witness-verify.md +15 -0
- package/skills/system-tmux.md +171 -0
- package/skills/system-window-management.md +228 -0
- package/skills/task-management.md +90 -0
- package/skills/tasks.md +102 -0
- package/skills/test-coverage.md +188 -0
- package/skills/ux-ui.md +128 -0
- package/skills/web.md +186 -0
- package/skills/workflow-act-on-feedback.md +15 -0
- package/skills/workflow-automate-this.md +245 -0
- package/skills/workflow-autoresearch.md +276 -0
- package/skills/workflow-coding-agent.md +317 -0
- package/skills/workflow-deep-research.md +44 -0
- package/skills/workflow-dispatching-parallel-agents.md +183 -0
- package/skills/workflow-eval-driven-dev.md +148 -0
- package/skills/workflow-executing-plans.md +71 -0
- package/skills/workflow-mentoring-juniors.md +311 -0
- package/skills/workflow-receiving-code-review.md +214 -0
- package/skills/workflow-repo-story-time.md +155 -0
- package/skills/workflow-requesting-code-review.md +104 -0
- package/skills/workflow-session-report.md +43 -0
- package/skills/workflow-structured-autonomy-generate.md +126 -0
- package/skills/workflow-subagent-driven-development.md +280 -0
- package/skills/writing.md +106 -0
- package/src/agent.js +0 -0
- package/src/browser.js +297 -0
- package/src/cli.js +25 -4
- package/src/code-reviewer.js +119 -0
- package/src/completions.js +1 -1
- package/src/control.js +222 -30
- package/src/coordinator.js +303 -0
- package/src/correction.js +29 -8
- package/src/edit-tracker.js +21 -0
- package/src/edit-viewer.js +414 -0
- package/src/endpoints.js +64 -15
- package/src/index.js +45 -11
- package/src/llm.js +86 -2
- package/src/mcp-client.js +416 -0
- package/src/memory.js +182 -0
- package/src/planner.js +216 -0
- package/src/rules.js +90 -0
- package/src/self-commands.js +757 -0
- package/src/services/voice.js +10 -7
- package/src/session-search.js +427 -0
- package/src/session.js +487 -99
- package/src/shmakk-server.js +91 -0
- package/src/skills.js +410 -3
- package/src/subagent.js +4 -1
- package/src/system-prompt.js +13 -5
- package/src/task-file.js +114 -0
- package/src/taskClassifier.js +246 -0
- package/src/team.js +752 -0
- package/src/tools.js +142 -21
- package/src/web.js +35 -5
- package/src/workflows.js +261 -0
- package/src/workspace-index.js +25 -6
|
@@ -0,0 +1,301 @@
|
|
|
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
|
+
category: files
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Requirements for Outputs
|
|
9
|
+
|
|
10
|
+
## All Excel files
|
|
11
|
+
|
|
12
|
+
### Professional Font
|
|
13
|
+
- Use a consistent, professional font (e.g., Arial, Times New Roman) for all deliverables unless otherwise instructed by the user
|
|
14
|
+
|
|
15
|
+
### Zero Formula Errors
|
|
16
|
+
- Every Excel model MUST be delivered with ZERO formula errors (#REF!, #DIV/0!, #VALUE!, #N/A, #NAME?)
|
|
17
|
+
|
|
18
|
+
### Preserve Existing Templates (when updating templates)
|
|
19
|
+
- Study and EXACTLY match existing format, style, and conventions when modifying files
|
|
20
|
+
- Never impose standardized formatting on files with established patterns
|
|
21
|
+
- Existing template conventions ALWAYS override these guidelines
|
|
22
|
+
|
|
23
|
+
## Financial models
|
|
24
|
+
|
|
25
|
+
### Color Coding Standards
|
|
26
|
+
Unless otherwise stated by the user or existing template
|
|
27
|
+
|
|
28
|
+
#### Industry-Standard Color Conventions
|
|
29
|
+
- **Blue text (RGB: 0,0,255)**: Hardcoded inputs, and numbers users will change for scenarios
|
|
30
|
+
- **Black text (RGB: 0,0,0)**: ALL formulas and calculations
|
|
31
|
+
- **Green text (RGB: 0,128,0)**: Links pulling from other worksheets within same workbook
|
|
32
|
+
- **Red text (RGB: 255,0,0)**: External links to other files
|
|
33
|
+
- **Yellow background (RGB: 255,255,0)**: Key assumptions needing attention or cells that need to be updated
|
|
34
|
+
|
|
35
|
+
### Number Formatting Standards
|
|
36
|
+
|
|
37
|
+
#### Required Format Rules
|
|
38
|
+
- **Years**: Format as text strings (e.g., "2024" not "2,024")
|
|
39
|
+
- **Currency**: Use $#,##0 format; ALWAYS specify units in headers ("Revenue ($mm)")
|
|
40
|
+
- **Zeros**: Use number formatting to make all zeros "-", including percentages (e.g., "$#,##0;($#,##0);-")
|
|
41
|
+
- **Percentages**: Default to 0.0% format (one decimal)
|
|
42
|
+
- **Multiples**: Format as 0.0x for valuation multiples (EV/EBITDA, P/E)
|
|
43
|
+
- **Negative numbers**: Use parentheses (123) not minus -123
|
|
44
|
+
|
|
45
|
+
### Formula Construction Rules
|
|
46
|
+
|
|
47
|
+
#### Assumptions Placement
|
|
48
|
+
- Place ALL assumptions (growth rates, margins, multiples, etc.) in separate assumption cells
|
|
49
|
+
- Use cell references instead of hardcoded values in formulas
|
|
50
|
+
- Example: Use =B5*(1+$B$6) instead of =B5*1.05
|
|
51
|
+
|
|
52
|
+
#### Formula Error Prevention
|
|
53
|
+
- Verify all cell references are correct
|
|
54
|
+
- Check for off-by-one errors in ranges
|
|
55
|
+
- Ensure consistent formulas across all projection periods
|
|
56
|
+
- Test with edge cases (zero values, negative numbers)
|
|
57
|
+
- Verify no unintended circular references
|
|
58
|
+
|
|
59
|
+
#### Documentation Requirements for Hardcodes
|
|
60
|
+
- Comment or in cells beside (if end of table). Format: "Source: [System/Document], [Date], [Specific Reference], [URL if applicable]"
|
|
61
|
+
- Examples:
|
|
62
|
+
- "Source: Company 10-K, FY2024, Page 45, Revenue Note, [SEC EDGAR URL]"
|
|
63
|
+
- "Source: Company 10-Q, Q2 2025, Exhibit 99.1, [SEC EDGAR URL]"
|
|
64
|
+
- "Source: Bloomberg Terminal, 8/15/2025, AAPL US Equity"
|
|
65
|
+
- "Source: FactSet, 8/20/2025, Consensus Estimates Screen"
|
|
66
|
+
|
|
67
|
+
# XLSX creation, editing, and analysis
|
|
68
|
+
|
|
69
|
+
## Overview
|
|
70
|
+
|
|
71
|
+
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.
|
|
72
|
+
|
|
73
|
+
## Important Requirements
|
|
74
|
+
|
|
75
|
+
**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`)
|
|
76
|
+
|
|
77
|
+
## Reading and analyzing data
|
|
78
|
+
|
|
79
|
+
### Quick text dump
|
|
80
|
+
```bash
|
|
81
|
+
# Tab-separated rows under `## Sheet:` headers
|
|
82
|
+
extract-text file.xlsx | head -100
|
|
83
|
+
# .xlsm: same zip structure, override the extension
|
|
84
|
+
extract-text --format xlsx file.xlsm | head -100
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Data analysis with pandas
|
|
88
|
+
For data analysis, visualization, and basic operations, use **pandas** which provides powerful data manipulation capabilities:
|
|
89
|
+
|
|
90
|
+
```python
|
|
91
|
+
import pandas as pd
|
|
92
|
+
|
|
93
|
+
# Read Excel
|
|
94
|
+
df = pd.read_excel('file.xlsx') # Default: first sheet
|
|
95
|
+
all_sheets = pd.read_excel('file.xlsx', sheet_name=None) # All sheets as dict
|
|
96
|
+
|
|
97
|
+
# Analyze
|
|
98
|
+
df.head() # Preview data
|
|
99
|
+
df.info() # Column info
|
|
100
|
+
df.describe() # Statistics
|
|
101
|
+
|
|
102
|
+
# Write Excel
|
|
103
|
+
df.to_excel('output.xlsx', index=False)
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Excel File Workflows
|
|
107
|
+
|
|
108
|
+
## CRITICAL: Use Formulas, Not Hardcoded Values
|
|
109
|
+
|
|
110
|
+
**Always use Excel formulas instead of calculating values in Python and hardcoding them.** This ensures the spreadsheet remains dynamic and updateable.
|
|
111
|
+
|
|
112
|
+
### ❌ WRONG - Hardcoding Calculated Values
|
|
113
|
+
```python
|
|
114
|
+
# Bad: Calculating in Python and hardcoding result
|
|
115
|
+
total = df['Sales'].sum()
|
|
116
|
+
sheet['B10'] = total # Hardcodes 5000
|
|
117
|
+
|
|
118
|
+
# Bad: Computing growth rate in Python
|
|
119
|
+
growth = (df.iloc[-1]['Revenue'] - df.iloc[0]['Revenue']) / df.iloc[0]['Revenue']
|
|
120
|
+
sheet['C5'] = growth # Hardcodes 0.15
|
|
121
|
+
|
|
122
|
+
# Bad: Python calculation for average
|
|
123
|
+
avg = sum(values) / len(values)
|
|
124
|
+
sheet['D20'] = avg # Hardcodes 42.5
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### ✅ CORRECT - Using Excel Formulas
|
|
128
|
+
```python
|
|
129
|
+
# Good: Let Excel calculate the sum
|
|
130
|
+
sheet['B10'] = '=SUM(B2:B9)'
|
|
131
|
+
|
|
132
|
+
# Good: Growth rate as Excel formula
|
|
133
|
+
sheet['C5'] = '=(C4-C2)/C2'
|
|
134
|
+
|
|
135
|
+
# Good: Average using Excel function
|
|
136
|
+
sheet['D20'] = '=AVERAGE(D2:D19)'
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
This applies to ALL calculations - totals, percentages, ratios, differences, etc. The spreadsheet should be able to recalculate when source data changes.
|
|
140
|
+
|
|
141
|
+
## Common Workflow
|
|
142
|
+
1. **Choose tool**: pandas for data, openpyxl for formulas/formatting
|
|
143
|
+
2. **Create/Load**: Create new workbook or load existing file
|
|
144
|
+
3. **Modify**: Add/edit data, formulas, and formatting
|
|
145
|
+
4. **Save**: Write to file
|
|
146
|
+
5. **Recalculate formulas (MANDATORY IF USING FORMULAS)**: Use the scripts/recalc.py script
|
|
147
|
+
```bash
|
|
148
|
+
python scripts/recalc.py output.xlsx
|
|
149
|
+
```
|
|
150
|
+
6. **Verify and fix any errors**:
|
|
151
|
+
- The script returns JSON with error details
|
|
152
|
+
- If `status` is `errors_found`, check `error_summary` for specific error types and locations
|
|
153
|
+
- Fix the identified errors and recalculate again
|
|
154
|
+
- Common errors to fix:
|
|
155
|
+
- `#REF!`: Invalid cell references
|
|
156
|
+
- `#DIV/0!`: Division by zero
|
|
157
|
+
- `#VALUE!`: Wrong data type in formula
|
|
158
|
+
- `#NAME?`: Unrecognized formula name
|
|
159
|
+
|
|
160
|
+
### Creating new Excel files
|
|
161
|
+
|
|
162
|
+
```python
|
|
163
|
+
# Using openpyxl for formulas and formatting
|
|
164
|
+
from openpyxl import Workbook
|
|
165
|
+
from openpyxl.styles import Font, PatternFill, Alignment
|
|
166
|
+
|
|
167
|
+
wb = Workbook()
|
|
168
|
+
sheet = wb.active
|
|
169
|
+
|
|
170
|
+
# Add data
|
|
171
|
+
sheet['A1'] = 'Hello'
|
|
172
|
+
sheet['B1'] = 'World'
|
|
173
|
+
sheet.append(['Row', 'of', 'data'])
|
|
174
|
+
|
|
175
|
+
# Add formula
|
|
176
|
+
sheet['B2'] = '=SUM(A1:A10)'
|
|
177
|
+
|
|
178
|
+
# Formatting
|
|
179
|
+
sheet['A1'].font = Font(bold=True, color='FF0000')
|
|
180
|
+
sheet['A1'].fill = PatternFill('solid', start_color='FFFF00')
|
|
181
|
+
sheet['A1'].alignment = Alignment(horizontal='center')
|
|
182
|
+
|
|
183
|
+
# Column width
|
|
184
|
+
sheet.column_dimensions['A'].width = 20
|
|
185
|
+
|
|
186
|
+
wb.save('output.xlsx')
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Editing existing Excel files
|
|
190
|
+
|
|
191
|
+
```python
|
|
192
|
+
# Using openpyxl to preserve formulas and formatting
|
|
193
|
+
from openpyxl import load_workbook
|
|
194
|
+
|
|
195
|
+
# Load existing file
|
|
196
|
+
wb = load_workbook('existing.xlsx')
|
|
197
|
+
sheet = wb.active # or wb['SheetName'] for specific sheet
|
|
198
|
+
|
|
199
|
+
# Working with multiple sheets
|
|
200
|
+
for sheet_name in wb.sheetnames:
|
|
201
|
+
sheet = wb[sheet_name]
|
|
202
|
+
print(f"Sheet: {sheet_name}")
|
|
203
|
+
|
|
204
|
+
# Modify cells
|
|
205
|
+
sheet['A1'] = 'New Value'
|
|
206
|
+
sheet.insert_rows(2) # Insert row at position 2
|
|
207
|
+
sheet.delete_cols(3) # Delete column 3
|
|
208
|
+
|
|
209
|
+
# Add new sheet
|
|
210
|
+
new_sheet = wb.create_sheet('NewSheet')
|
|
211
|
+
new_sheet['A1'] = 'Data'
|
|
212
|
+
|
|
213
|
+
wb.save('modified.xlsx')
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Recalculating formulas
|
|
217
|
+
|
|
218
|
+
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:
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
python scripts/recalc.py <excel_file> [timeout_seconds]
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Example:
|
|
225
|
+
```bash
|
|
226
|
+
python scripts/recalc.py output.xlsx 30
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
The script:
|
|
230
|
+
- Automatically sets up LibreOffice macro on first run
|
|
231
|
+
- Recalculates all formulas in all sheets
|
|
232
|
+
- Scans ALL cells for Excel errors (#REF!, #DIV/0!, etc.)
|
|
233
|
+
- Returns JSON with detailed error locations and counts
|
|
234
|
+
- Works on both Linux and macOS
|
|
235
|
+
|
|
236
|
+
## Formula Verification Checklist
|
|
237
|
+
|
|
238
|
+
Quick checks to ensure formulas work correctly:
|
|
239
|
+
|
|
240
|
+
### Essential Verification
|
|
241
|
+
- [ ] **Test 2-3 sample references**: Verify they pull correct values before building full model
|
|
242
|
+
- [ ] **Column mapping**: Confirm Excel columns match (e.g., column 64 = BL, not BK)
|
|
243
|
+
- [ ] **Row offset**: Remember Excel rows are 1-indexed (DataFrame row 5 = Excel row 6)
|
|
244
|
+
|
|
245
|
+
### Common Pitfalls
|
|
246
|
+
- [ ] **NaN handling**: Check for null values with `pd.notna()`
|
|
247
|
+
- [ ] **Far-right columns**: FY data often in columns 50+
|
|
248
|
+
- [ ] **Multiple matches**: Search all occurrences, not just first
|
|
249
|
+
- [ ] **Division by zero**: Check denominators before using `/` in formulas (#DIV/0!)
|
|
250
|
+
- [ ] **Wrong references**: Verify all cell references point to intended cells (#REF!)
|
|
251
|
+
- [ ] **Cross-sheet references**: Use correct format (Sheet1!A1) for linking sheets
|
|
252
|
+
|
|
253
|
+
### Formula Testing Strategy
|
|
254
|
+
- [ ] **Start small**: Test formulas on 2-3 cells before applying broadly
|
|
255
|
+
- [ ] **Verify dependencies**: Check all cells referenced in formulas exist
|
|
256
|
+
- [ ] **Test edge cases**: Include zero, negative, and very large values
|
|
257
|
+
|
|
258
|
+
### Interpreting scripts/recalc.py Output
|
|
259
|
+
The script returns JSON with error details:
|
|
260
|
+
```json
|
|
261
|
+
{
|
|
262
|
+
"status": "success", // or "errors_found"
|
|
263
|
+
"total_errors": 0, // Total error count
|
|
264
|
+
"total_formulas": 42, // Number of formulas in file
|
|
265
|
+
"error_summary": { // Only present if errors found
|
|
266
|
+
"#REF!": {
|
|
267
|
+
"count": 2,
|
|
268
|
+
"locations": ["Sheet1!B5", "Sheet1!C10"]
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
## Best Practices
|
|
275
|
+
|
|
276
|
+
### Library Selection
|
|
277
|
+
- **pandas**: Best for data analysis, bulk operations, and simple data export
|
|
278
|
+
- **openpyxl**: Best for complex formatting, formulas, and Excel-specific features
|
|
279
|
+
|
|
280
|
+
### Working with openpyxl
|
|
281
|
+
- Cell indices are 1-based (row=1, column=1 refers to cell A1)
|
|
282
|
+
- Use `data_only=True` to read calculated values: `load_workbook('file.xlsx', data_only=True)`
|
|
283
|
+
- **Warning**: If opened with `data_only=True` and saved, formulas are replaced with values and permanently lost
|
|
284
|
+
- For large files: Use `read_only=True` for reading or `write_only=True` for writing
|
|
285
|
+
- Formulas are preserved but not evaluated - use scripts/recalc.py to update values
|
|
286
|
+
|
|
287
|
+
### Working with pandas
|
|
288
|
+
- Specify data types to avoid inference issues: `pd.read_excel('file.xlsx', dtype={'id': str})`
|
|
289
|
+
- For large files, read specific columns: `pd.read_excel('file.xlsx', usecols=['A', 'C', 'E'])`
|
|
290
|
+
- Handle dates properly: `pd.read_excel('file.xlsx', parse_dates=['date_column'])`
|
|
291
|
+
|
|
292
|
+
## Code Style Guidelines
|
|
293
|
+
**IMPORTANT**: When generating Python code for Excel operations:
|
|
294
|
+
- Write minimal, concise Python code without unnecessary comments
|
|
295
|
+
- Avoid verbose variable names and redundant operations
|
|
296
|
+
- Avoid unnecessary print statements
|
|
297
|
+
|
|
298
|
+
**For Excel files themselves**:
|
|
299
|
+
- Add comments to cells with complex formulas or important assumptions
|
|
300
|
+
- Document data sources for hardcoded values
|
|
301
|
+
- Include notes for key calculations and model sections
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: find-jobs
|
|
3
|
+
description: |
|
|
4
|
+
Search job boards for remote developer contractor/freelance roles that are open to EU-based (Romania) candidates.
|
|
5
|
+
Use when the user asks to find jobs, search for work, look for developer positions, contractor roles, or freelance opportunities.
|
|
6
|
+
Trigger phrases: "find jobs", "search for jobs", "look for developer jobs", "find remote work", "search contractor roles",
|
|
7
|
+
"find freelance positions", "what jobs are available", "run job search".
|
|
8
|
+
Also used internally by the daily-job-run skill.
|
|
9
|
+
tools:
|
|
10
|
+
- WebSearch
|
|
11
|
+
- mcp__workspace__web_fetch
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Find jobs
|
|
15
|
+
|
|
16
|
+
Search for remote developer/contractor roles matching the user's profile. Return the top 5 best-fit results with enough detail to evaluate and apply.
|
|
17
|
+
|
|
18
|
+
## Search strategy
|
|
19
|
+
|
|
20
|
+
Run searches across multiple sources. Vary the query phrasing across searches to avoid redundant results.
|
|
21
|
+
|
|
22
|
+
Search queries to run (pick 4-6, rotate between sessions):
|
|
23
|
+
- `remote senior full-stack developer contractor Europe 2024 site:linkedin.com`
|
|
24
|
+
- `remote full-stack engineer contract EU timezone React Node.js`
|
|
25
|
+
- `remote senior developer freelance Romania Europe contractor`
|
|
26
|
+
- `tech lead full-stack remote contract Europe site:weworkremotely.com`
|
|
27
|
+
- `senior software engineer contractor remote EU React Next.js Node`
|
|
28
|
+
- `full-stack developer remote contract AI startup Europe`
|
|
29
|
+
- `senior developer contractor remote Europe site:remoteok.com`
|
|
30
|
+
- `Next.js Node.js contractor remote Europe senior engineer`
|
|
31
|
+
- `senior full-stack contract remote EU site:arc.dev`
|
|
32
|
+
- `tech lead remote contract React Node Europe site:toptal.com`
|
|
33
|
+
|
|
34
|
+
Also check these boards directly if search results are thin:
|
|
35
|
+
- https://weworkremotely.com/categories/remote-programming-jobs
|
|
36
|
+
- https://remoteok.com/remote-senior-developer-jobs
|
|
37
|
+
- https://arc.dev/remote-jobs
|
|
38
|
+
- https://www.linkedin.com/jobs/search/?keywords=senior+full-stack+contractor+remote&f_WT=2
|
|
39
|
+
|
|
40
|
+
## Filtering criteria
|
|
41
|
+
|
|
42
|
+
Load the full criteria from `references/job-search-criteria.md`.
|
|
43
|
+
|
|
44
|
+
Quick filters — exclude a result if:
|
|
45
|
+
- Listed as "full-time permanent employee" only (no contractor/freelance variant)
|
|
46
|
+
- Requires physical presence in a specific office
|
|
47
|
+
- Timezone explicitly limited to US/Americas only
|
|
48
|
+
- Listed salary/rate is below €60/hr or €8,000/month equivalent
|
|
49
|
+
- Clearly entry-level or junior
|
|
50
|
+
|
|
51
|
+
Prefer results that:
|
|
52
|
+
- Mention EU timezone, CET/EET, or "Europe" in timezone requirements
|
|
53
|
+
- Are contract, freelance, part-time, or have contract-to-hire options
|
|
54
|
+
- Involve tech stack overlapping with profile: React, Next.js, Node.js, Python, PostgreSQL, AWS, Docker, AI/LLM
|
|
55
|
+
- Are from product companies or funded startups (over pure outsourcing shops)
|
|
56
|
+
|
|
57
|
+
## Output format
|
|
58
|
+
|
|
59
|
+
Return a numbered list of up to 5 results. For each:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
## [N]. [Role title] — [Company]
|
|
63
|
+
- Source: [URL]
|
|
64
|
+
- Type: Contract / Freelance / Contract-to-hire
|
|
65
|
+
- Rate/Salary: [if listed, otherwise "not specified"]
|
|
66
|
+
- Timezone: [requirement, or "flexible" if not stated]
|
|
67
|
+
- Tech: [relevant stack mentioned]
|
|
68
|
+
- Match: [1-2 sentence honest assessment of fit vs the profile]
|
|
69
|
+
- Apply: [direct application URL if different from source]
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
After the list, add a short "Best bet today" note naming the single strongest match and why.
|
|
73
|
+
|
|
74
|
+
## Notes
|
|
75
|
+
|
|
76
|
+
- If a URL requires JavaScript to render, note it and try to fetch the text version or a cached version.
|
|
77
|
+
- Do not fabricate job listings. If fewer than 3 results pass the filters, say so and list what was found.
|
|
78
|
+
- Date-check results where possible — flag listings older than 30 days.
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: format-conversion
|
|
3
|
+
version: 1
|
|
4
|
+
category: files
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Document Format Conversion
|
|
8
|
+
|
|
9
|
+
Convert between document formats: markdown, PDF, Word, HTML, ePub, and more.
|
|
10
|
+
|
|
11
|
+
## When to use this skill
|
|
12
|
+
|
|
13
|
+
- User wants to convert a document to a different format
|
|
14
|
+
- User wants to export markdown as PDF or Word
|
|
15
|
+
- User wants to convert a Word doc to markdown
|
|
16
|
+
- User mentions "convert", "export", "PDF", "Word", "pandoc"
|
|
17
|
+
|
|
18
|
+
## Prerequisites
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
which pandoc wkhtmltopdf libreoffice imagemagick ffmpeg 2>/dev/null
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
- `pandoc` — the main tool, handles most text document conversions
|
|
25
|
+
- `wkhtmltopdf` — HTML/markdown to PDF (simpler output than LaTeX)
|
|
26
|
+
- `libreoffice --headless` — Office format conversions
|
|
27
|
+
- `imagemagick` (`convert`) — image format conversions
|
|
28
|
+
- `ffmpeg` — audio/video conversions
|
|
29
|
+
|
|
30
|
+
Install pandoc: `sudo apt install pandoc` or `brew install pandoc`
|
|
31
|
+
|
|
32
|
+
## Common Conversions
|
|
33
|
+
|
|
34
|
+
### Markdown → PDF
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
pandoc input.md -o output.pdf # uses LaTeX (best quality)
|
|
38
|
+
pandoc input.md -o output.pdf --pdf-engine=wkhtmltopdf # uses HTML (simpler, faster)
|
|
39
|
+
pandoc input.md -o output.pdf -V geometry:margin=2cm # custom margins
|
|
40
|
+
pandoc input.md --template=custom.latex -o output.pdf # custom template
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
For a clean PDF with a title page:
|
|
44
|
+
```
|
|
45
|
+
---
|
|
46
|
+
title: My Document
|
|
47
|
+
author: Marcus Bader
|
|
48
|
+
date: 2024-01-15
|
|
49
|
+
---
|
|
50
|
+
```
|
|
51
|
+
Add this YAML frontmatter to the markdown file.
|
|
52
|
+
|
|
53
|
+
### Markdown → Word (docx)
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
pandoc input.md -o output.docx
|
|
57
|
+
pandoc input.md -o output.docx --reference-doc=template.docx # use Word template for styling
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Word (docx) → Markdown
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
pandoc input.docx -o output.md
|
|
64
|
+
pandoc input.docx -t gfm -o output.md # GitHub Flavored Markdown
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Word → PDF
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
libreoffice --headless --convert-to pdf input.docx
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### HTML → PDF
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
wkhtmltopdf input.html output.pdf
|
|
77
|
+
pandoc input.html -o output.pdf
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### PDF → Text (for further processing)
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
pdftotext input.pdf output.txt
|
|
84
|
+
pdftotext -layout input.pdf - # preserve layout (better for tables)
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Markdown → HTML
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
pandoc input.md -o output.html
|
|
91
|
+
pandoc input.md -s -o output.html # standalone (with <html> wrapper)
|
|
92
|
+
pandoc input.md -s --css=style.css -o output.html
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Markdown → ePub (for e-readers)
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
pandoc input.md -o output.epub
|
|
99
|
+
pandoc *.md -o book.epub # multiple chapters into one ePub
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Batch conversions
|
|
103
|
+
|
|
104
|
+
Convert all markdown files in a directory to PDF:
|
|
105
|
+
```
|
|
106
|
+
for f in *.md; do pandoc "$f" -o "${f%.md}.pdf"; done
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Convert all docx to markdown:
|
|
110
|
+
```
|
|
111
|
+
for f in *.docx; do pandoc "$f" -o "${f%.docx}.md"; done
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Image format conversions (imagemagick)
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
convert input.png output.jpg
|
|
118
|
+
convert input.jpg -quality 80 output.jpg # reduce quality/size
|
|
119
|
+
convert input.png -resize 50% output.png # resize to 50%
|
|
120
|
+
convert input.png -resize 800x600 output.png # resize to max dimensions
|
|
121
|
+
convert *.jpg output.pdf # images to PDF
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Image to text (OCR)
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
tesseract input.png output_base txt
|
|
128
|
+
tesseract input.pdf output_base txt
|
|
129
|
+
tesseract input.png output_base -l eng+fra txt # multiple languages
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Output format
|
|
133
|
+
|
|
134
|
+
After conversion:
|
|
135
|
+
```
|
|
136
|
+
CONVERSION COMPLETE
|
|
137
|
+
|
|
138
|
+
Input: report.md (24KB, markdown)
|
|
139
|
+
Output: report.pdf (156KB, PDF)
|
|
140
|
+
Engine: pandoc + LaTeX
|
|
141
|
+
Pages: 8
|
|
142
|
+
|
|
143
|
+
File saved to: ./report.pdf
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Pitfalls
|
|
147
|
+
|
|
148
|
+
- LaTeX-based PDF conversion fails if LaTeX isn't installed: `sudo apt install texlive-xetex`
|
|
149
|
+
- Complex Word documents (tables, tracked changes) may not convert perfectly to markdown — always review output
|
|
150
|
+
- `wkhtmltopdf` produces simpler PDFs but handles CSS/HTML better than LaTeX
|
|
151
|
+
- For high-fidelity office-to-PDF, LibreOffice is more reliable than pandoc for .docx
|
|
152
|
+
- Image conversion with ImageMagick may be restricted by policy file — check `/etc/ImageMagick-*/policy.xml` if it fails
|
|
153
|
+
- OCR quality depends on image resolution — 300+ DPI recommended
|
|
154
|
+
|
|
155
|
+
## Verification
|
|
156
|
+
|
|
157
|
+
After conversion: open/read the output file and verify key sections, headings, and content are present and correctly formatted.
|