opencastle 1.5.0 → 1.6.1
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 +1 -1
- package/dist/cli/adapters/antigravity.d.ts +1 -1
- package/dist/cli/adapters/antigravity.d.ts.map +1 -1
- package/dist/cli/adapters/claude-code.d.ts +1 -1
- package/dist/cli/adapters/claude-code.d.ts.map +1 -1
- package/dist/cli/adapters/claude-code.js +1 -0
- package/dist/cli/adapters/claude-code.js.map +1 -1
- package/dist/cli/adapters/codex.d.ts +1 -1
- package/dist/cli/adapters/codex.d.ts.map +1 -1
- package/dist/cli/adapters/cursor.d.ts +1 -1
- package/dist/cli/adapters/cursor.d.ts.map +1 -1
- package/dist/cli/adapters/cursor.js +6 -0
- package/dist/cli/adapters/cursor.js.map +1 -1
- package/dist/cli/adapters/opencode.d.ts +1 -1
- package/dist/cli/adapters/opencode.d.ts.map +1 -1
- package/dist/cli/adapters/rules-dir-base.d.ts +13 -1
- package/dist/cli/adapters/rules-dir-base.d.ts.map +1 -1
- package/dist/cli/adapters/rules-dir-base.js +37 -18
- package/dist/cli/adapters/rules-dir-base.js.map +1 -1
- package/dist/cli/adapters/rules-dir-base.test.js +34 -0
- package/dist/cli/adapters/rules-dir-base.test.js.map +1 -1
- package/dist/cli/adapters/single-file-base.d.ts +8 -0
- package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
- package/dist/cli/adapters/single-file-base.js +48 -22
- package/dist/cli/adapters/single-file-base.js.map +1 -1
- package/dist/cli/adapters/windsurf.d.ts +1 -1
- package/dist/cli/adapters/windsurf.d.ts.map +1 -1
- package/dist/cli/bootstrap-on-init.test.js +11 -0
- package/dist/cli/bootstrap-on-init.test.js.map +1 -1
- package/dist/cli/command-namespace.test.js +17 -0
- package/dist/cli/command-namespace.test.js.map +1 -1
- package/dist/cli/convoy/engine.d.ts +12 -0
- package/dist/cli/convoy/engine.d.ts.map +1 -1
- package/dist/cli/convoy/engine.git.test.js +55 -0
- package/dist/cli/convoy/engine.git.test.js.map +1 -1
- package/dist/cli/convoy/engine.js +39 -1
- package/dist/cli/convoy/engine.js.map +1 -1
- package/dist/cli/convoy/findings.d.ts +35 -0
- package/dist/cli/convoy/findings.d.ts.map +1 -0
- package/dist/cli/convoy/findings.js +100 -0
- package/dist/cli/convoy/findings.js.map +1 -0
- package/dist/cli/convoy/findings.test.d.ts +2 -0
- package/dist/cli/convoy/findings.test.d.ts.map +1 -0
- package/dist/cli/convoy/findings.test.js +75 -0
- package/dist/cli/convoy/findings.test.js.map +1 -0
- package/dist/cli/convoy/isolation.d.ts.map +1 -1
- package/dist/cli/convoy/isolation.js +2 -1
- package/dist/cli/convoy/isolation.js.map +1 -1
- package/dist/cli/convoy/worktree.d.ts +5 -0
- package/dist/cli/convoy/worktree.d.ts.map +1 -1
- package/dist/cli/convoy/worktree.js +12 -0
- package/dist/cli/convoy/worktree.js.map +1 -1
- package/dist/cli/docs-accuracy.test.js +34 -0
- package/dist/cli/docs-accuracy.test.js.map +1 -1
- package/dist/cli/doctor.d.ts +11 -0
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +72 -8
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/doctor.test.js +82 -1
- package/dist/cli/doctor.test.js.map +1 -1
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +58 -53
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/init.test.js +28 -23
- package/dist/cli/init.test.js.map +1 -1
- package/dist/cli/layers.d.ts +20 -0
- package/dist/cli/layers.d.ts.map +1 -1
- package/dist/cli/layers.js +53 -1
- package/dist/cli/layers.js.map +1 -1
- package/dist/cli/layers.test.js +67 -1
- package/dist/cli/layers.test.js.map +1 -1
- package/dist/cli/lessons.d.ts +10 -0
- package/dist/cli/lessons.d.ts.map +1 -1
- package/dist/cli/lessons.js +26 -1
- package/dist/cli/lessons.js.map +1 -1
- package/dist/cli/lessons.test.js +38 -1
- package/dist/cli/lessons.test.js.map +1 -1
- package/dist/cli/plan.test.js +10 -8
- package/dist/cli/plan.test.js.map +1 -1
- package/dist/cli/sync-check.test.js +14 -2
- package/dist/cli/sync-check.test.js.map +1 -1
- package/dist/cli/types.d.ts +2 -1
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/cli/types.js.map +1 -1
- package/dist/orchestrator/plugins/notion/config.d.ts.map +1 -1
- package/dist/orchestrator/plugins/notion/config.js +21 -17
- package/dist/orchestrator/plugins/notion/config.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/adapters/claude-code.ts +1 -0
- package/src/cli/adapters/cursor.ts +6 -0
- package/src/cli/adapters/rules-dir-base.test.ts +41 -0
- package/src/cli/adapters/rules-dir-base.ts +47 -19
- package/src/cli/adapters/single-file-base.ts +63 -31
- package/src/cli/bootstrap-on-init.test.ts +12 -0
- package/src/cli/command-namespace.test.ts +17 -0
- package/src/cli/convoy/engine.git.test.ts +59 -0
- package/src/cli/convoy/engine.ts +44 -0
- package/src/cli/convoy/findings.test.ts +86 -0
- package/src/cli/convoy/findings.ts +129 -0
- package/src/cli/convoy/isolation.ts +2 -1
- package/src/cli/convoy/worktree.ts +12 -0
- package/src/cli/docs-accuracy.test.ts +42 -0
- package/src/cli/doctor.test.ts +101 -1
- package/src/cli/doctor.ts +75 -9
- package/src/cli/init.test.ts +27 -22
- package/src/cli/init.ts +62 -57
- package/src/cli/layers.test.ts +72 -1
- package/src/cli/layers.ts +52 -1
- package/src/cli/lessons.test.ts +48 -0
- package/src/cli/lessons.ts +27 -1
- package/src/cli/plan.test.ts +10 -8
- package/src/cli/sync-check.test.ts +16 -2
- package/src/cli/types.ts +2 -1
- package/src/orchestrator/agent-workflows/feature-implementation.md +1 -1
- package/src/orchestrator/agents/team-lead.agent.md +5 -5
- package/src/orchestrator/agents/testing-expert.agent.md +2 -2
- package/src/orchestrator/customizations/LESSONS-LEARNED.md +1 -1
- package/src/orchestrator/instructions/ai-optimization.instructions.md +6 -23
- package/src/orchestrator/instructions/general.instructions.md +22 -95
- package/src/orchestrator/plugins/astro/skills/astro-framework/SKILL.md +1 -3
- package/src/orchestrator/plugins/chrome-devtools/skills/browser-testing/SKILL.md +3 -5
- package/src/orchestrator/plugins/cloudflare/skills/cloudflare-platform/SKILL.md +2 -2
- package/src/orchestrator/plugins/contentful/skills/contentful-cms/SKILL.md +1 -1
- package/src/orchestrator/plugins/convex/skills/convex-database/SKILL.md +1 -3
- package/src/orchestrator/plugins/coolify/skills/coolify-deployment/SKILL.md +1 -1
- package/src/orchestrator/plugins/cypress/skills/cypress-testing/SKILL.md +1 -1
- package/src/orchestrator/plugins/drizzle/skills/drizzle-orm/SKILL.md +1 -1
- package/src/orchestrator/plugins/expo/skills/expo-development/SKILL.md +2 -2
- package/src/orchestrator/plugins/figma/skills/figma-design/SKILL.md +1 -3
- package/src/orchestrator/plugins/hetzner/skills/hetzner-cloud/SKILL.md +1 -1
- package/src/orchestrator/plugins/jira/skills/jira-management/SKILL.md +1 -3
- package/src/orchestrator/plugins/linear/skills/linear-task-management/SKILL.md +1 -3
- package/src/orchestrator/plugins/netlify/skills/netlify-deployment/SKILL.md +2 -2
- package/src/orchestrator/plugins/nextjs/skills/nextjs-framework/SKILL.md +13 -6
- package/src/orchestrator/plugins/notion/config.ts +21 -17
- package/src/orchestrator/plugins/notion/skills/notion-knowledge-management/SKILL.md +8 -16
- package/src/orchestrator/plugins/nx/skills/nx-workspace/SKILL.md +2 -4
- package/src/orchestrator/plugins/playwright/skills/playwright-testing/SKILL.md +1 -3
- package/src/orchestrator/plugins/prisma/skills/prisma-database/SKILL.md +1 -3
- package/src/orchestrator/plugins/resend/skills/resend-email/SKILL.md +2 -2
- package/src/orchestrator/plugins/sanity/skills/sanity-cms/SKILL.md +1 -3
- package/src/orchestrator/plugins/sentry/skills/sentry-monitoring/SKILL.md +1 -1
- package/src/orchestrator/plugins/slack/skills/slack-notifications/SKILL.md +1 -3
- package/src/orchestrator/plugins/strapi/skills/strapi-cms/SKILL.md +1 -3
- package/src/orchestrator/plugins/stripe/skills/stripe-payments/SKILL.md +4 -4
- package/src/orchestrator/plugins/supabase/skills/supabase-database/SKILL.md +3 -5
- package/src/orchestrator/plugins/teams/skills/teams-notifications/SKILL.md +1 -3
- package/src/orchestrator/plugins/trello/skills/trello-task-management/SKILL.md +1 -1
- package/src/orchestrator/plugins/turborepo/skills/turborepo-monorepo/SKILL.md +15 -88
- package/src/orchestrator/plugins/vercel/skills/vercel-deployment/SKILL.md +2 -2
- package/src/orchestrator/plugins/vitest/skills/vitest-testing/SKILL.md +17 -150
- package/src/orchestrator/prompts/assess-complexity.prompt.md +1 -0
- package/src/orchestrator/prompts/create-skill.prompt.md +13 -67
- package/src/orchestrator/prompts/fix-convoy.prompt.md +1 -0
- package/src/orchestrator/prompts/fix-prd.prompt.md +1 -0
- package/src/orchestrator/prompts/generate-prd.prompt.md +1 -0
- package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +2 -2
- package/src/orchestrator/prompts/validate-convoy.prompt.md +1 -0
- package/src/orchestrator/prompts/validate-prd.prompt.md +1 -0
- package/src/orchestrator/skills/accessibility-standards/REFERENCE.md +17 -12
- package/src/orchestrator/skills/accessibility-standards/SKILL.md +1 -1
- package/src/orchestrator/skills/agent-hooks/HOOKS-REFERENCE.md +3 -5
- package/src/orchestrator/skills/agent-hooks/SKILL.md +8 -6
- package/src/orchestrator/skills/api-patterns/SKILL.md +1 -1
- package/src/orchestrator/skills/code-commenting/SKILL.md +1 -1
- package/src/orchestrator/skills/context-map/REFERENCE.md +0 -2
- package/src/orchestrator/skills/context-map/SKILL.md +2 -2
- package/src/orchestrator/skills/data-engineering/REFERENCE.md +3 -9
- package/src/orchestrator/skills/data-engineering/SKILL.md +9 -16
- package/src/orchestrator/skills/decomposition/SKILL.md +1 -1
- package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +4 -4
- package/src/orchestrator/skills/documentation-standards/SKILL.md +4 -2
- package/src/orchestrator/skills/fast-review/REFERENCE.md +0 -2
- package/src/orchestrator/skills/fast-review/SKILL.md +5 -5
- package/src/orchestrator/skills/frontend-design/REFERENCE.md +6 -28
- package/src/orchestrator/skills/frontend-design/SKILL.md +19 -9
- package/src/orchestrator/skills/git-workflow/SKILL.md +1 -1
- package/src/orchestrator/skills/memory-merger/SKILL.md +13 -15
- package/src/orchestrator/skills/observability-logging/SKILL.md +1 -1
- package/src/orchestrator/skills/orchestration-protocols/REFERENCE.md +5 -9
- package/src/orchestrator/skills/orchestration-protocols/SKILL.md +6 -6
- package/src/orchestrator/skills/panel-majority-vote/REFERENCE.md +0 -4
- package/src/orchestrator/skills/panel-majority-vote/SKILL.md +1 -1
- package/src/orchestrator/skills/panel-majority-vote/panel-report.template.md +0 -2
- package/src/orchestrator/skills/performance-optimization/SKILL.md +2 -2
- package/src/orchestrator/skills/project-consistency/SKILL.md +2 -2
- package/src/orchestrator/skills/project-consistency/TEMPLATES.md +0 -4
- package/src/orchestrator/skills/react-development/SKILL.md +3 -3
- package/src/orchestrator/skills/security-hardening/SKILL.md +5 -5
- package/src/orchestrator/skills/self-improvement/LESSON-CATEGORIES.md +0 -2
- package/src/orchestrator/skills/self-improvement/SKILL.md +1 -1
- package/src/orchestrator/skills/seo-patterns/SKILL.md +1 -1
- package/src/orchestrator/skills/session-checkpoints/CHECKPOINT-TEMPLATE.md +0 -2
- package/src/orchestrator/skills/session-checkpoints/SKILL.md +1 -1
- package/src/orchestrator/skills/team-lead-reference/SKILL.md +1 -1
- package/src/orchestrator/skills/technical-writing/SKILL.md +8 -13
- package/src/orchestrator/skills/testing-workflow/SKILL.md +6 -6
- package/src/orchestrator/skills/typescript-best-practices/SKILL.md +1 -1
- package/src/orchestrator/skills/unslop/SKILL.md +1 -1
- package/src/orchestrator/skills/validation-gates/REFERENCE.md +6 -31
- package/src/orchestrator/skills/validation-gates/SKILL.md +12 -26
- package/src/orchestrator/skills/writing-for-agents/SKILL.md +2 -2
- package/src/orchestrator/skills/documentation-standards/WRITING-GUIDE.md +0 -39
- package/src/orchestrator/skills/frontend-design/COMPONENTS.md +0 -113
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: project-consistency
|
|
3
|
-
description: "
|
|
3
|
+
description: "Foundation-first pattern that keeps parallel UI work consistent: shared tokens, layout and UI components built before any page. Use when several agents build UI at once, or a design system or theme is being set up."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Project Consistency
|
|
@@ -50,7 +50,7 @@ Prompt templates: see [TEMPLATES.md](./TEMPLATES.md).
|
|
|
50
50
|
--color-primary-600: #0284c7;
|
|
51
51
|
|
|
52
52
|
/* Typography */
|
|
53
|
-
--font-base:
|
|
53
|
+
--font-base: 'Source Sans 3', system-ui, sans-serif; /* the pairing chosen in frontend-design */
|
|
54
54
|
--text-sm: 0.875rem;
|
|
55
55
|
--text-base: 1rem;
|
|
56
56
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
> Parent: [SKILL.md](./SKILL.md)
|
|
2
|
-
|
|
3
1
|
## Prompt Templates — Foundation & Page Tasks
|
|
4
2
|
|
|
5
3
|
### Foundation Setup — Prompt (copy-paste)
|
|
@@ -35,5 +33,3 @@ Create `[path]/ui/`: Button, Card, Heading, Text, Link, Section, Container, Grid
|
|
|
35
33
|
- Copy the appropriate template into the foundation or page task tracker issue.
|
|
36
34
|
- Replace bracketed placeholders (`[path]`, `[Aesthetic]`) with exact values from the foundation task outputs.
|
|
37
35
|
- Attach paths to tokens, Layout, and UI component library explicitly in the prompt.
|
|
38
|
-
|
|
39
|
-
Last Updated: 2026-03-31
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: react-development
|
|
3
|
-
description: "
|
|
3
|
+
description: "React conventions for components, hooks, prop types, styling and React Testing Library tests. Use when creating or changing React components or hooks, or writing their tests."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# React Development Standards
|
|
7
7
|
|
|
8
8
|
## Conventions
|
|
9
9
|
|
|
10
|
-
- One component per file: `ComponentName.tsx` inside its feature folder, co-located with
|
|
10
|
+
- One component per file: `ComponentName.tsx` inside its feature folder, co-located with its styles and `ComponentName.test.tsx`.
|
|
11
11
|
- Export the props type as `ComponentNameProps`; PascalCase component names.
|
|
12
|
-
- Styling: CSS Modules
|
|
12
|
+
- Styling: follow the project's approach (CSS Modules, Tailwind, …), its shared tokens, and CSS custom properties for theming.
|
|
13
13
|
- `strict` stays enabled in `tsconfig.json`; no `as` casts.
|
|
14
14
|
- Tests: React Testing Library on the runner bound to the **testing** capability slot, mocking external deps and API calls.
|
|
15
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: security-hardening
|
|
3
|
-
description: "Security
|
|
3
|
+
description: "Security rules for authentication, authorization, RLS policies, CSP and headers, input validation and API routes. Use when building an auth flow, writing RLS policies, setting CSP or security headers, validating input, or auditing security."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Security Hardening
|
|
@@ -9,9 +9,9 @@ description: "Security architecture: authentication, authorization, RLS policies
|
|
|
9
9
|
|
|
10
10
|
Resolve the auth library via the **database** capability slot in the skill matrix.
|
|
11
11
|
|
|
12
|
-
- Every sign in/up/out goes through a Server
|
|
13
|
-
-
|
|
14
|
-
-
|
|
12
|
+
- Every sign in/up/out goes through a server-side POST handler with CSRF protection. Server Actions have it built in (POST-only, Origin checked).
|
|
13
|
+
- Refresh the session in request middleware (`proxy.ts` on Next 16) with HTTP-only cookies, and check protected routes there too.
|
|
14
|
+
- Store roles server-side, where the client cannot write them (for example a `profiles.roles` column behind RLS).
|
|
15
15
|
|
|
16
16
|
## CSP
|
|
17
17
|
|
|
@@ -30,6 +30,6 @@ Least privilege; whitelist only required external domains per directive (project
|
|
|
30
30
|
|
|
31
31
|
Cron routes: require `authorization: Bearer ${process.env.CRON_SECRET}`, else return 401. Generate with `openssl rand -hex 32`; rotate quarterly.
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
Validate every Server Action and route handler input with a schema (e.g. Zod) before any DB operation. Client-side validation (e.g. React Hook Form) is for feedback only.
|
|
34
34
|
|
|
35
35
|
Cross-reference: the **api-patterns** skill for Server Action patterns; the **session-checkpoints** skill for checkpointing security-sensitive work.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: self-improvement
|
|
3
|
-
description: "Records
|
|
3
|
+
description: "Records, searches and re-verifies lessons in .opencastle/lessons/ with the opencastle lesson CLI. Use when a retry succeeds or a task fails, before work past lessons may cover, or when doctor reports a lesson's cited code changed."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Self-Improvement Protocol
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: seo-patterns
|
|
3
|
-
description: "
|
|
3
|
+
description: "Technical SEO: meta tags, Open Graph, canonical URLs, JSON-LD structured data, sitemaps and robots.txt. Use when adding or fixing any of these, or when pages are not being crawled or indexed."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# SEO Patterns
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: session-checkpoints
|
|
3
|
-
description: "Saves
|
|
3
|
+
description: "Saves and restores session state: task progress, file changes and delegation history. Use when saving progress before risky work or at session end, or resuming interrupted work."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Skill: Session Checkpoints
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: team-lead-reference
|
|
3
|
-
description: "
|
|
3
|
+
description: "Team Lead delegation reference: complexity scoring, model tier routing, pre-delegation checks, the delegation envelope, dead-letter queue and disputes. Use when planning delegations, choosing a model tier, or handling a failed delegation."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Team Lead Reference
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: technical-writing
|
|
3
|
-
description: "
|
|
3
|
+
description: "Standard for technical prose in four layers: Diataxis document modes, Google developer style, Simplified Technical English and Global English. Use when writing or reviewing docs, RFCs, README files, PR descriptions or commit messages."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Technical Writing
|
|
7
7
|
|
|
8
8
|
The goal is writing a tired engineer understands on the first read. Four layers get you there, one question each: what kind of document is this, how do sentences address the reader, how much does each sentence carry, and can any sentence be read two ways. Apply all four, then run the **unslop** skill over the result.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
- **Cut every word that does no work.** "In order to" is "to". "It is important to note that" is nothing.
|
|
13
|
-
- **Use the short, everyday word.** "Use", not "utilize". A long word has to buy its length with precision.
|
|
14
|
-
- **When a rule makes a sentence worse, fix it another way or leave it alone.** A sentence that follows every rule and sounds machine written has failed.
|
|
10
|
+
Word-level cuts (filler, fancy synonyms, passive voice, hedging, AI vocabulary) are **unslop**'s job. One rule sits above the layers: **when a rule makes a sentence worse, fix it another way or leave it alone.** A sentence that follows every rule and sounds machine written has failed.
|
|
15
11
|
|
|
16
12
|
The codebase is the word list. Write the real symbol, file, flag, or command name, never a synonym or a description of it. Do not invent jargon; use the words a developer says out loud.
|
|
17
13
|
|
|
@@ -38,10 +34,10 @@ Do not mix modes. No reference tables inside a tutorial, no hand-holding inside
|
|
|
38
34
|
- Write instructions as commands: "Click Submit." Never "should be done".
|
|
39
35
|
- Put the condition before the instruction: "To delete the document, click Delete." The reader skips what does not apply.
|
|
40
36
|
- Put the common case first, exceptions after.
|
|
41
|
-
- Sound like a knowledgeable friend. No
|
|
37
|
+
- Sound like a knowledgeable friend. No "please", and never "simply", "easy", or "quickly" in a procedure.
|
|
42
38
|
- Do not pre-announce features, and do not start consecutive sentences with the same phrase.
|
|
43
39
|
- Link with words that say where the link goes. Never "click here".
|
|
44
|
-
- Headings carry the point, not just the topic ("Pick the mode first", not "Modes").
|
|
40
|
+
- Headings carry the point, not just the topic ("Pick the mode first", not "Modes"). One h1 per page, no skipped levels. Task headings are bare verb phrases, concept headings are noun phrases.
|
|
45
41
|
- Numbered lists for sequences, bullets for everything else. Introduce a list with a complete sentence and keep items parallel.
|
|
46
42
|
- Code in code font, UI elements in bold, serial commas. Drop "etc." and say up front that a list is partial.
|
|
47
43
|
|
|
@@ -82,10 +78,9 @@ By layer: "configuration is performed" becomes "`budget.mjs` reads", so someone
|
|
|
82
78
|
1. Is each file one mode, with links where modes meet?
|
|
83
79
|
2. Is every instruction a command, with its condition in front?
|
|
84
80
|
3. Does any sentence carry two instructions or two thoughts? Split it.
|
|
85
|
-
4.
|
|
86
|
-
5.
|
|
87
|
-
6.
|
|
88
|
-
7.
|
|
89
|
-
8. Are all symbols, paths, and counts real at this commit, with the commands that regenerate the counts?
|
|
81
|
+
4. Is "only" beside the word it changes? Does every "it" point at one thing? Does every clause keep its verb?
|
|
82
|
+
5. Does each thing have exactly one name across the docs?
|
|
83
|
+
6. Would a developer say these words out loud?
|
|
84
|
+
7. Are all symbols, paths, and counts real at this commit, with the commands that regenerate the counts?
|
|
90
85
|
|
|
91
86
|
Sources: diataxis.fr, developers.google.com/style, asd-ste100.org (Issue 9, 2025). Adapted from the `technical-writing` skill in [cursor/plugins](https://github.com/cursor/plugins/tree/main/pstack), MIT, copyright 2026 Lauren Tan.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: testing-workflow
|
|
3
|
-
description: "
|
|
3
|
+
description: "Plans tests, writes unit, integration and E2E tests, finds coverage gaps and flags testing anti-patterns. Use when writing or planning tests, mocking dependencies, or checking coverage."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Testing Workflow
|
|
7
7
|
|
|
8
|
-
**Mandatory:** test in a real browser via the **e2e-testing** capability slot before marking any feature complete, including every project-defined responsive breakpoint (**validation-gates** Gate
|
|
8
|
+
**Mandatory:** test in a real browser via the **e2e-testing** capability slot before marking any feature complete, including every project-defined responsive breakpoint (**validation-gates** Gate 7, **browser-testing** skill).
|
|
9
9
|
|
|
10
10
|
## E2E Context Limits
|
|
11
11
|
|
|
@@ -15,19 +15,19 @@ description: "Generates test plans, writes unit/integration/E2E test files, iden
|
|
|
15
15
|
| Max 3 screenshots | per session |
|
|
16
16
|
| `evaluate_script()` over `take_snapshot()` | returns less data |
|
|
17
17
|
| Reload between flows | clears state |
|
|
18
|
-
|
|
|
18
|
+
| Report results | in the session output: suite, pass/fail counts, failures with their evidence |
|
|
19
19
|
|
|
20
20
|
Suite files and project test config: `.opencastle/project.instructions.md`.
|
|
21
21
|
|
|
22
|
-
## Coverage
|
|
22
|
+
## Coverage
|
|
23
23
|
|
|
24
24
|
| Layer | Minimum |
|
|
25
25
|
|-------|---------|
|
|
26
|
-
| Unit (functions, components, hooks) |
|
|
26
|
+
| Unit (functions, components, hooks) | the threshold in the project's test config |
|
|
27
27
|
| Integration (boundaries, URL sync) | all boundaries |
|
|
28
28
|
| E2E (journeys, interactions, errors) | all critical paths |
|
|
29
29
|
|
|
30
|
-
Verify with
|
|
30
|
+
Verify with the project's own test and coverage commands (Key Commands in `.opencastle/project.instructions.md`).
|
|
31
31
|
|
|
32
32
|
## Anti-Patterns
|
|
33
33
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: typescript-best-practices
|
|
3
|
-
description: "Type
|
|
3
|
+
description: "Type design in TypeScript: discriminated unions, branded types, narrowing, exhaustiveness and boundary validation. Use when modelling domain types, tightening strictness or generics, removing `as` casts, or migrating code to stricter types."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# TypeScript Best Practices
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: unslop
|
|
3
|
-
description: "Removes AI tells from prose: puffery, AI vocabulary, em dashes,
|
|
3
|
+
description: "Removes AI tells from prose: puffery, AI vocabulary, em dashes, hedging, filler and abstract metaphor nouns. Use when writing or editing prose a person reads: docs, README files, PR descriptions, commit messages, changelogs, release notes."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Unslop
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
> Parent: [SKILL.md](./SKILL.md)
|
|
2
|
-
|
|
3
1
|
# Validation Gates Reference
|
|
4
2
|
|
|
5
|
-
Extended checklists and options for validation gates.
|
|
6
|
-
|
|
7
3
|
## Gate 4: Full Dependency Audit Checklist
|
|
8
4
|
|
|
9
5
|
| Check | Tool / Command | Pass Criteria | On Failure |
|
|
10
6
|
|-------|---------------|---------------|------------|
|
|
11
|
-
| Vulnerability | `npm audit --audit-level=
|
|
12
|
-
| Bundle size | `npx source-map-explorer
|
|
7
|
+
| Vulnerability | `npm audit --audit-level=high` | No new high/critical | BLOCK — use patched version or alternative |
|
|
8
|
+
| Bundle size | `npx source-map-explorer <build output>/*.js` | Frontend pkgs ≤50KB gzipped | SHOULD-FIX; blocking if >200KB |
|
|
13
9
|
| License | `npx license-checker --onlyAllow 'MIT;ISC;BSD-2-Clause;BSD-3-Clause;Apache-2.0'` | No copyleft in prod deps | BLOCK — remove or replace |
|
|
14
|
-
| Duplicates | `
|
|
10
|
+
| Duplicates | `npm find-dupes` or inspect lockfile | No duplicate major versions of same pkg | SHOULD-FIX |
|
|
15
11
|
| Maintenance | Check npm page / GitHub | Last publish <18 months; >100 weekly downloads | Evaluate alternatives |
|
|
16
12
|
| Peer deps | `npm ls --depth=0` | No unmet peer dependencies | Fix before merge |
|
|
17
13
|
| Type coverage | `npx @arethetypeswrong/cli <pkg>` | No `false` CJS/ESM resolution | SHOULD-FIX for new deps |
|
|
18
14
|
|
|
19
|
-
## Gate 7:
|
|
15
|
+
## Gate 7: Viewport Presets
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
When the project names no breakpoints of its own (`.opencastle/stack/testing-config.md`):
|
|
22
18
|
|
|
23
19
|
| Preset | Width × Height |
|
|
24
20
|
|--------|---------------|
|
|
@@ -26,25 +22,4 @@ Extended checklists and options for validation gates.
|
|
|
26
22
|
| `tablet` | 768 × 1024 |
|
|
27
23
|
| `desktop` | 1440 × 900 |
|
|
28
24
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
```json
|
|
32
|
-
{
|
|
33
|
-
"tool": "browser-testing/take_screenshot",
|
|
34
|
-
"url": "http://localhost:3000/page",
|
|
35
|
-
"viewports": ["mobile", "tablet", "desktop"],
|
|
36
|
-
"wait_selector": ".content-loaded",
|
|
37
|
-
"auth": { "cookie": "session=abc123" },
|
|
38
|
-
"full_page": true
|
|
39
|
-
}
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### Console Error Check
|
|
43
|
-
|
|
44
|
-
```json
|
|
45
|
-
{
|
|
46
|
-
"tool": "browser-testing/evaluate_script",
|
|
47
|
-
"url": "http://localhost:3000",
|
|
48
|
-
"script": "window.__console_errors || []"
|
|
49
|
-
}
|
|
50
|
-
```
|
|
25
|
+
Resize with `resize_page`, check console errors with `list_console_messages`; the rest is in the **browser-testing** skill.
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: validation-gates
|
|
3
|
-
description: "Defines
|
|
3
|
+
description: "Defines the ten gates delegated work passes, from secret scanning and lint/test/build to blast radius, dependency audit, browser, regression and smoke tests. Use when deciding which checks a change needs, or whether work is ready to merge or deploy."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Validation Gates
|
|
7
7
|
|
|
8
|
+
The project's commands live under Key Commands in `.opencastle/project.instructions.md`; with a task runner (Nx, Turborepo), its skill has them. Every gate below runs those, never a guessed `npm run …`.
|
|
9
|
+
|
|
8
10
|
| Gate | Name | Runs When |
|
|
9
11
|
|------|------|-----------|
|
|
10
12
|
| 1 | Secret Scanning | Every delegation |
|
|
@@ -12,7 +14,7 @@ description: "Defines 10 sequential validation gates: secret scanning, lint/test
|
|
|
12
14
|
| 3 | Blast Radius Check | Every delegation |
|
|
13
15
|
| 4 | Dependency Audit | When `package.json` or lockfiles change |
|
|
14
16
|
| 5 | Fast Review | Every delegation (with auto-PASS exceptions) |
|
|
15
|
-
| 6 | Cache Clearing |
|
|
17
|
+
| 6 | Cache Clearing | Only when a stale cache is suspected |
|
|
16
18
|
| 7 | Browser Testing | UI changes |
|
|
17
19
|
| 8 | Regression Testing | Every delegation |
|
|
18
20
|
| 9 | Panel Review | High-stakes changes only |
|
|
@@ -35,15 +37,11 @@ Not a hit: obviously fake test fixtures (`sk-test-1234567890`), documentation
|
|
|
35
37
|
placeholders (`YOUR_API_KEY_HERE`), and pattern matches inside explanatory
|
|
36
38
|
comments.
|
|
37
39
|
|
|
38
|
-
Scan every diff **before** any other gate: `gitleaks
|
|
40
|
+
Scan every diff **before** any other gate: `gitleaks git --redact --log-opts="main..HEAD"` for the branch's commits, `gitleaks dir <path>` for uncommitted files (or the CI equivalent). Fail on any finding.
|
|
39
41
|
|
|
40
42
|
## Gate 2: Deterministic Checks
|
|
41
43
|
|
|
42
|
-
Run
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
npm run lint && npm test --silent && npm run build
|
|
46
|
-
```
|
|
44
|
+
Run the project's own lint (with auto-fix), test and build commands for every affected project. All must pass with zero errors.
|
|
47
45
|
|
|
48
46
|
## Gate 3: Blast Radius Check
|
|
49
47
|
|
|
@@ -70,40 +68,28 @@ Full checklist (license, duplicates, maintenance, peer deps, type coverage) with
|
|
|
70
68
|
|
|
71
69
|
## Gate 5: Fast Review
|
|
72
70
|
|
|
73
|
-
Spawn reviewer sub-agent (load **fast-review**
|
|
71
|
+
Spawn a reviewer sub-agent (load **fast-review**). Auto-PASS rules, retries and escalation: the **fast-review** Handle Verdict table.
|
|
74
72
|
|
|
75
73
|
## Gate 6: Cache Clearing
|
|
76
74
|
|
|
77
|
-
|
|
78
|
-
rm -rf node_modules/.cache .next/cache .astro/ dist/
|
|
79
|
-
```
|
|
75
|
+
Skip unless a stale cache is the suspect: the browser shows old output, or a build reports files that no longer exist. Then clear the framework cache (e.g. `.next/cache`, `node_modules/.cache`) and the project's own build output directory, named in its build config, and rebuild.
|
|
80
76
|
|
|
81
77
|
## Gate 7: Browser Testing
|
|
82
78
|
|
|
83
|
-
UI changes are verified in Chrome. Start dev server → verify ACs →
|
|
84
|
-
|
|
85
|
-
```json
|
|
86
|
-
{ "tool": "browser-testing/take_screenshot", "url": "http://localhost:3000", "viewports": ["mobile", "desktop"] }
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
Additional options: see [REFERENCE.md](REFERENCE.md).
|
|
79
|
+
UI changes are verified in Chrome with the **browser-testing** skill (Chrome DevTools MCP: `navigate_page`, `take_snapshot`, `evaluate_script` with a `function`). Start the dev server → verify ACs → every project breakpoint → at most 3 screenshots, as evidence.
|
|
90
80
|
|
|
91
81
|
## Gate 8: Regression Testing
|
|
92
82
|
|
|
93
|
-
1. Full test suite for all affected projects
|
|
83
|
+
1. Full test suite for all affected projects.
|
|
94
84
|
2. Browser-test adjacent pages (navigation, routing, back-button) — find them via `rg "href=\"/changed-path|import .*from '@/components/changed'"`.
|
|
95
85
|
3. Find consuming apps/packages via `rg "from '@/components/PriceRange'|@my-org/ui-package"`; run their tests or smoke builds.
|
|
96
86
|
|
|
97
87
|
## Gate 9: Panel Review
|
|
98
88
|
|
|
99
|
-
Load **panel-majority-vote**
|
|
89
|
+
Load **panel-majority-vote** — 3 isolated reviewers, majority (2/3) wins. Use for: the 3rd fast-review FAIL, security-sensitive changes, DB migrations.
|
|
100
90
|
|
|
101
91
|
## Gate 10: Final Smoke Test
|
|
102
92
|
|
|
103
93
|
> Runs once after ALL tasks are Done.
|
|
104
94
|
|
|
105
|
-
|
|
106
|
-
npm run build && npm test && npx playwright test
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
Full build + test from clean state → E2E browser walkthrough → cross-task integration check → responsive sweep (if UI). On failure: re-delegate specific failing integration only.
|
|
95
|
+
The project's full build and test commands, its E2E suite included, from a clean state → E2E browser walkthrough → cross-task integration check → responsive sweep (if UI). On failure: re-delegate specific failing integration only.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: writing-for-agents
|
|
3
|
-
description: "Levers for writing documents an agent
|
|
3
|
+
description: "Levers for writing documents an agent reads: context pointers, progressive disclosure, completion criteria, leading words and pruning. Use when creating or editing a skill, an agent, an instruction file, AGENTS.md or CLAUDE.md."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Writing for Agents
|
|
@@ -79,6 +79,6 @@ When skills multiply past what a human can remember, that piled-up cognitive loa
|
|
|
79
79
|
|
|
80
80
|
## How this project compiles a skill
|
|
81
81
|
|
|
82
|
-
A skill is one directory holding `SKILL.md` with `name` and `description` frontmatter. The `description` is the skill's top-level context pointer
|
|
82
|
+
A skill is one directory holding `SKILL.md` with `name` and `description` frontmatter. The `description` is the skill's top-level context pointer, always loaded, so it carries the trigger branches. Every target copies the whole directory, so companion files ship beside `SKILL.md` and are reached through the pointers `SKILL.md` gives them: what every branch needs stays in `SKILL.md`, what only some branches need can live in a companion file.
|
|
83
83
|
|
|
84
84
|
Adapted from the `writing-for-agents` skill in [mattpocock/skills](https://github.com/mattpocock/skills), MIT, copyright 2026 Matt Pocock.
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
> Parent: [SKILL.md](./SKILL.md)
|
|
2
|
-
|
|
3
|
-
# Writing & Formatting Guide
|
|
4
|
-
|
|
5
|
-
## Voice & Tone
|
|
6
|
-
|
|
7
|
-
- **Imperative mood** for instructions: "Add the header" not "You should add the header"
|
|
8
|
-
- **Active voice**: "The function returns X" not "X is returned by the function"
|
|
9
|
-
- **Concise**: one idea per sentence; trim filler words (just, simply, basically, very)
|
|
10
|
-
|
|
11
|
-
## Formatting Rules
|
|
12
|
-
|
|
13
|
-
| Element | Convention |
|
|
14
|
-
|---------|-----------|
|
|
15
|
-
| Headings | Sentence case (`## Core principles`, not `## Core Principles`). Exception: proper nouns and acronyms. |
|
|
16
|
-
| Lists | Parallel structure — all items start with same part of speech |
|
|
17
|
-
| Code | Inline backticks for symbols/commands; fenced blocks for multi-line |
|
|
18
|
-
| Links | Descriptive text: `[migration guide](./migrate.md)` not `[click here](./migrate.md)` |
|
|
19
|
-
| Tables | Use for structured comparisons; keep columns ≤5 |
|
|
20
|
-
| Line length | Wrap prose at ~120 characters for diff readability |
|
|
21
|
-
|
|
22
|
-
## Markdown Standards
|
|
23
|
-
|
|
24
|
-
- One blank line before, after headings, code blocks, tables
|
|
25
|
-
- No trailing whitespace
|
|
26
|
-
- Files end with a single newline
|
|
27
|
-
- Use `---` for horizontal rules (sparingly)
|
|
28
|
-
- Prefer `-` for unordered lists
|
|
29
|
-
|
|
30
|
-
## Anti-Patterns
|
|
31
|
-
|
|
32
|
-
| Anti-pattern | Fix |
|
|
33
|
-
|-------------|-----|
|
|
34
|
-
| Walls of prose without structure | Break into headings, bullets, or tables |
|
|
35
|
-
| Duplicate content across docs | Link to canonical source |
|
|
36
|
-
| Stale "Last Updated" dates | Remove or automate; manual dates drift |
|
|
37
|
-
| TODO/FIXME placeholders in published docs | Resolve before merging |
|
|
38
|
-
| Screenshots without alt text | Add descriptive alt text for accessibility |
|
|
39
|
-
| Overly nested headings (h4+) | Flatten; if you need h4, consider splitting the doc |
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
> Parent: [SKILL.md](./SKILL.md)
|
|
2
|
-
|
|
3
|
-
# Frontend Design Components
|
|
4
|
-
|
|
5
|
-
Extended component patterns, card variants, hero animations for **frontend-design** skill.
|
|
6
|
-
|
|
7
|
-
## Design Tokens (starter)
|
|
8
|
-
|
|
9
|
-
```css
|
|
10
|
-
:root {
|
|
11
|
-
--color-bg: #0f1724;
|
|
12
|
-
--color-ink: #e6eef8;
|
|
13
|
-
--color-accent: #ff7a59;
|
|
14
|
-
--space-1: 4px;
|
|
15
|
-
--space-2: 8px;
|
|
16
|
-
--space-3: 16px;
|
|
17
|
-
--radius-1: 6px;
|
|
18
|
-
}
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Entrance Animation (starter)
|
|
22
|
-
|
|
23
|
-
```css
|
|
24
|
-
@keyframes fadeUp {
|
|
25
|
-
from { opacity: 0; transform: translateY(8px); }
|
|
26
|
-
to { opacity: 1; transform: translateY(0); }
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
30
|
-
.fade-in-up { animation: fadeUp 420ms cubic-bezier(.2,.9,.2,1) both; }
|
|
31
|
-
}
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Card Patterns
|
|
35
|
-
|
|
36
|
-
### Glass Card
|
|
37
|
-
|
|
38
|
-
```css
|
|
39
|
-
.card-glass {
|
|
40
|
-
background: rgba(255, 255, 255, 0.05);
|
|
41
|
-
backdrop-filter: blur(12px);
|
|
42
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
43
|
-
border-radius: var(--radius-1);
|
|
44
|
-
padding: var(--space-3);
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Elevated Card
|
|
49
|
-
|
|
50
|
-
```css
|
|
51
|
-
.card-elevated {
|
|
52
|
-
background: var(--color-bg);
|
|
53
|
-
border-radius: var(--radius-1);
|
|
54
|
-
padding: var(--space-3);
|
|
55
|
-
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
|
|
56
|
-
transition: transform 200ms ease, box-shadow 200ms ease;
|
|
57
|
-
}
|
|
58
|
-
.card-elevated:hover {
|
|
59
|
-
transform: translateY(-2px);
|
|
60
|
-
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
|
|
61
|
-
}
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Hero Animations
|
|
65
|
-
|
|
66
|
-
### Staggered Fade-In
|
|
67
|
-
|
|
68
|
-
```css
|
|
69
|
-
.hero-stagger > * {
|
|
70
|
-
opacity: 0;
|
|
71
|
-
transform: translateY(12px);
|
|
72
|
-
animation: fadeUp 500ms cubic-bezier(.2,.9,.2,1) forwards;
|
|
73
|
-
}
|
|
74
|
-
.hero-stagger > *:nth-child(1) { animation-delay: 0ms; }
|
|
75
|
-
.hero-stagger > *:nth-child(2) { animation-delay: 80ms; }
|
|
76
|
-
.hero-stagger > *:nth-child(3) { animation-delay: 160ms; }
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### Gradient Shift
|
|
80
|
-
|
|
81
|
-
```css
|
|
82
|
-
.hero-gradient {
|
|
83
|
-
background: linear-gradient(135deg, var(--color-accent), var(--color-bg));
|
|
84
|
-
background-size: 200% 200%;
|
|
85
|
-
animation: gradientShift 6s ease infinite;
|
|
86
|
-
}
|
|
87
|
-
@keyframes gradientShift {
|
|
88
|
-
0%, 100% { background-position: 0% 50%; }
|
|
89
|
-
50% { background-position: 100% 50%; }
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
## Button Variants
|
|
94
|
-
|
|
95
|
-
```css
|
|
96
|
-
.btn-primary {
|
|
97
|
-
background: var(--color-accent);
|
|
98
|
-
color: #fff;
|
|
99
|
-
padding: var(--space-2) var(--space-3);
|
|
100
|
-
border-radius: var(--radius-1);
|
|
101
|
-
font-weight: 600;
|
|
102
|
-
transition: opacity 150ms ease;
|
|
103
|
-
}
|
|
104
|
-
.btn-primary:hover { opacity: 0.9; }
|
|
105
|
-
|
|
106
|
-
.btn-ghost {
|
|
107
|
-
background: transparent;
|
|
108
|
-
color: var(--color-ink);
|
|
109
|
-
border: 1px solid currentColor;
|
|
110
|
-
padding: var(--space-2) var(--space-3);
|
|
111
|
-
border-radius: var(--radius-1);
|
|
112
|
-
}
|
|
113
|
-
```
|