code-styleguides
Language-specific code style guidelines. Use when writing TypeScript, Python, Go, JavaScript, or HTML/CSS code to ensure consistent, idiomatic, and maintainable code following best practices.
What this skill does
# Code Styleguides Language-specific coding standards and best practices. ## How It Works Reads project-level styleguides from `conductor/code_styleguides/` (copied during `/conductor:setup` based on tech stack). ## Supported Languages | Language | Extensions | Styleguide File | |----------|------------|-----------------| | TypeScript | `.ts`, `.tsx`, `.mts`, `.cts` | `conductor/code_styleguides/typescript.md` | | Python | `.py`, `.pyi` | `conductor/code_styleguides/python.md` | | Go | `.go` | `conductor/code_styleguides/go.md` | | JavaScript | `.js`, `.jsx`, `.mjs`, `.cjs` | `conductor/code_styleguides/javascript.md` | | HTML/CSS | `.html`, `.css`, `.scss`, `.sass` | `conductor/code_styleguides/html-css.md` | ## When to Activate Writing new code, reviewing code, refactoring, or setting up new files/modules. ## Universal Principles | Aspect | Guideline | |--------|-----------| | **Naming** | Descriptive, meaningful; clarity over brevity; consistency | | **Structure** | Single responsibility; max 3-4 nesting levels; group related code | | **Documentation** | Document "why" not "what"; keep updated; docstrings for public APIs | | **Errors** | Handle explicitly; fail fast with clear messages; never swallow | | **Testing** | Write alongside code (TDD); test behavior not implementation; high coverage on critical paths | ## Quick Reference | Setting | Recommendation | |---------|----------------| | Line length | 80-120 characters | | Indentation | 2 spaces (JS/TS), 4 spaces (Python), tabs (Go) | | Naming | Follow language conventions | | Imports | Organized and grouped | | Comments | Minimal, meaningful | ## Setup If styleguides missing: 1. Run `/conductor:setup` to initialize 2. Or copy from `templates/code-styleguides/` to `conductor/code_styleguides/` Check: `ls conductor/code_styleguides/` ## Integration Works with: **conductor-context** (project overrides), **tdd-workflow** (language test patterns)
Related in Web Dev
generating-lwc-components
IncludedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use generating-apex), Aura components, or Visualforce.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Set up queries with useQuery, mutations with useMutation, configure QueryClient caching strategies, implement optimistic updates, and handle infinite scroll with useInfiniteQuery. Use when: setting up data fetching in React projects, migrating from v4 to v5, or fixing object syntax required errors, query callbacks removed issues, cacheTime renamed to gcTime, isPending vs isLoading confusion, keepPreviousData removed problems.
document-processor-api
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
nutrient-document-processing
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infiniteQueryOptions. Use when setting up data fetching, fixing v4→v5 migration errors (object syntax, gcTime, isPending, keepPreviousData), or debugging SSR/hydration issues with streaming server components.
accelint-nextjs-best-practices
IncludedNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions, or API routes; optimizing RSC serialization, data fetching, or server-side rendering; reviewing Next.js code for performance issues; fixing authentication in Server Actions; or implementing Suspense boundaries, parallel data fetching, or request deduplication.