From 05e493e5d0fc5c55ae0644f0eaa153aa487b6b2d Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 19:30:02 +0000 Subject: [PATCH 01/11] feat: add drawny ECC bundle (.claude/ecc-tools.json) --- .claude/ecc-tools.json | 227 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 227 insertions(+) create mode 100644 .claude/ecc-tools.json diff --git a/.claude/ecc-tools.json b/.claude/ecc-tools.json new file mode 100644 index 0000000..5a4b89f --- /dev/null +++ b/.claude/ecc-tools.json @@ -0,0 +1,227 @@ +{ + "version": "1.3", + "schemaVersion": "1.0", + "generatedBy": "ecc-tools", + "generatedAt": "2026-05-31T19:29:39.282Z", + "repo": "https://github.com/bugdisclose/drawny", + "referenceSetReadiness": { + "score": 0, + "present": 0, + "total": 7, + "items": [ + { + "id": "deep-analyzer-corpus", + "label": "Deep analyzer corpus", + "status": "missing", + "evidence": [], + "recommendation": "Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions." + }, + { + "id": "rag-evaluator", + "label": "RAG/evaluator comparison", + "status": "missing", + "evidence": [], + "recommendation": "Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior." + }, + { + "id": "pr-salvage", + "label": "PR salvage/review corpus", + "status": "missing", + "evidence": [], + "recommendation": "Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation." + }, + { + "id": "discussion-triage", + "label": "Discussion triage corpus", + "status": "missing", + "evidence": [], + "recommendation": "Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications." + }, + { + "id": "harness-compatibility", + "label": "Harness compatibility", + "status": "missing", + "evidence": [], + "recommendation": "Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces." + }, + { + "id": "security-evidence", + "label": "Security evidence", + "status": "missing", + "evidence": [], + "recommendation": "Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs." + }, + { + "id": "ci-failure-mode", + "label": "CI failure-mode evidence", + "status": "missing", + "evidence": [], + "recommendation": "Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes." + } + ] + }, + "profiles": { + "requested": "core", + "recommended": "core", + "effective": "core", + "requestedAlias": "core", + "recommendedAlias": "core", + "effectiveAlias": "core" + }, + "requestedProfile": "core", + "profile": "core", + "recommendedProfile": "core", + "effectiveProfile": "core", + "tier": "free", + "requestedComponents": [ + "repo-baseline" + ], + "selectedComponents": [ + "repo-baseline" + ], + "requestedAddComponents": [], + "requestedRemoveComponents": [], + "blockedRemovalComponents": [], + "tierFilteredComponents": [], + "requestedRootPackages": [ + "runtime-core" + ], + "selectedRootPackages": [ + "runtime-core" + ], + "requestedPackages": [ + "runtime-core" + ], + "requestedAddPackages": [], + "requestedRemovePackages": [], + "selectedPackages": [ + "runtime-core" + ], + "packages": [ + "runtime-core" + ], + "blockedRemovalPackages": [], + "tierFilteredRootPackages": [], + "tierFilteredPackages": [], + "conflictingPackages": [], + "dependencyGraph": { + "runtime-core": [] + }, + "resolutionOrder": [ + "runtime-core" + ], + "requestedModules": [ + "runtime-core" + ], + "selectedModules": [ + "runtime-core" + ], + "modules": [ + "runtime-core" + ], + "managedFiles": [ + ".claude/skills/drawny/SKILL.md", + ".agents/skills/drawny/SKILL.md", + ".agents/skills/drawny/agents/openai.yaml", + ".claude/identity.json", + ".codex/config.toml", + ".codex/AGENTS.md", + ".codex/agents/explorer.toml", + ".codex/agents/reviewer.toml", + ".codex/agents/docs-researcher.toml", + ".claude/homunculus/instincts/inherited/drawny-instincts.yaml" + ], + "packageFiles": { + "runtime-core": [ + ".claude/skills/drawny/SKILL.md", + ".agents/skills/drawny/SKILL.md", + ".agents/skills/drawny/agents/openai.yaml", + ".claude/identity.json", + ".codex/config.toml", + ".codex/AGENTS.md", + ".codex/agents/explorer.toml", + ".codex/agents/reviewer.toml", + ".codex/agents/docs-researcher.toml", + ".claude/homunculus/instincts/inherited/drawny-instincts.yaml" + ] + }, + "moduleFiles": { + "runtime-core": [ + ".claude/skills/drawny/SKILL.md", + ".agents/skills/drawny/SKILL.md", + ".agents/skills/drawny/agents/openai.yaml", + ".claude/identity.json", + ".codex/config.toml", + ".codex/AGENTS.md", + ".codex/agents/explorer.toml", + ".codex/agents/reviewer.toml", + ".codex/agents/docs-researcher.toml", + ".claude/homunculus/instincts/inherited/drawny-instincts.yaml" + ] + }, + "files": [ + { + "moduleId": "runtime-core", + "path": ".claude/skills/drawny/SKILL.md", + "description": "Repository-specific Claude Code skill generated from git history." + }, + { + "moduleId": "runtime-core", + "path": ".agents/skills/drawny/SKILL.md", + "description": "Codex-facing copy of the generated repository skill." + }, + { + "moduleId": "runtime-core", + "path": ".agents/skills/drawny/agents/openai.yaml", + "description": "Codex skill metadata so the repo skill appears cleanly in the skill interface." + }, + { + "moduleId": "runtime-core", + "path": ".claude/identity.json", + "description": "Suggested identity.json baseline derived from repository conventions." + }, + { + "moduleId": "runtime-core", + "path": ".codex/config.toml", + "description": "Repo-local Codex MCP and multi-agent baseline aligned with ECC defaults." + }, + { + "moduleId": "runtime-core", + "path": ".codex/AGENTS.md", + "description": "Codex usage guide that points at the generated repo skill and workflow bundle." + }, + { + "moduleId": "runtime-core", + "path": ".codex/agents/explorer.toml", + "description": "Read-only explorer role config for Codex multi-agent work." + }, + { + "moduleId": "runtime-core", + "path": ".codex/agents/reviewer.toml", + "description": "Read-only reviewer role config focused on correctness and security." + }, + { + "moduleId": "runtime-core", + "path": ".codex/agents/docs-researcher.toml", + "description": "Read-only docs researcher role config for API verification." + }, + { + "moduleId": "runtime-core", + "path": ".claude/homunculus/instincts/inherited/drawny-instincts.yaml", + "description": "Continuous-learning instincts derived from repository patterns." + } + ], + "workflows": [], + "adapters": { + "claudeCode": { + "skillPath": ".claude/skills/drawny/SKILL.md", + "identityPath": ".claude/identity.json", + "commandPaths": [] + }, + "codex": { + "configPath": ".codex/config.toml", + "agentsGuidePath": ".codex/AGENTS.md", + "skillPath": ".agents/skills/drawny/SKILL.md" + } + } +} \ No newline at end of file From 996f26d6898dd98c1a733e58f45dca8cd5cdb140 Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 19:30:03 +0000 Subject: [PATCH 02/11] feat: add drawny ECC bundle (.claude/skills/drawny/SKILL.md) --- .claude/skills/drawny/SKILL.md | 88 ++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 .claude/skills/drawny/SKILL.md diff --git a/.claude/skills/drawny/SKILL.md b/.claude/skills/drawny/SKILL.md new file mode 100644 index 0000000..ec94984 --- /dev/null +++ b/.claude/skills/drawny/SKILL.md @@ -0,0 +1,88 @@ +```markdown +# drawny Development Patterns + +> Auto-generated skill from repository analysis + +## Overview +This skill provides guidance on contributing to the `drawny` codebase, a TypeScript project without a detected framework. It covers code style conventions, commit patterns, and testing practices, ensuring consistency and maintainability. Use this as a reference for writing, organizing, and testing code, as well as for collaborating through conventional commits. + +## Coding Conventions + +### File Naming +- Use **camelCase** for file names. + - Example: `drawCanvas.ts`, `userActions.ts` + +### Import Style +- Both default and named imports are used. + - Example (default import): + ```typescript + import drawny from './drawny' + ``` + - Example (named import): + ```typescript + import { drawShape, clearCanvas } from './canvasUtils' + ``` + +### Export Style +- Both default and named exports are present. + - Example (default export): + ```typescript + export default drawny + ``` + - Example (named export): + ```typescript + export function drawShape() { ... } + ``` + +### Commit Patterns +- **Conventional Commits** are used, with a focus on the `fix` prefix. + - Example: + ``` + fix: resolve canvas resizing issue on window resize + ``` +- Commit messages are concise (average ~75 characters). + +## Workflows + +### Conventional Commit Workflow +**Trigger:** When making any commit to the repository +**Command:** `/conventional-commit` + +1. Stage your changes. +2. Write a commit message using the conventional format: + - `: ` + - Example: `fix: correct typo in draw function` +3. Commit your changes. + +### Testing Workflow +**Trigger:** When adding or modifying code that requires validation +**Command:** `/run-tests` + +1. Identify or create a test file matching the `*.test.*` pattern (e.g., `drawny.test.ts`). +2. Write tests for new or updated functionality. +3. Run the tests using your preferred TypeScript test runner (framework not specified). +4. Ensure all tests pass before pushing changes. + +## Testing Patterns + +- Test files follow the `*.test.*` naming convention. + - Example: `canvasUtils.test.ts` +- The specific testing framework is not defined; use a standard TypeScript-compatible test runner (e.g., Jest, Mocha). +- Place tests alongside the code or in a dedicated test directory as appropriate. + + Example test structure: + ```typescript + // drawny.test.ts + import { drawShape } from './drawny' + + test('drawShape draws a rectangle', () => { + // ...test implementation... + }) + ``` + +## Commands +| Command | Purpose | +|-----------------------|-----------------------------------------------------| +| /conventional-commit | Format your commit message using conventional style | +| /run-tests | Run all test files matching `*.test.*` | +``` From da8ec17d3152d5a0cfc3b09c8170bd9e350a47f8 Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 19:30:04 +0000 Subject: [PATCH 03/11] feat: add drawny ECC bundle (.agents/skills/drawny/SKILL.md) --- .agents/skills/drawny/SKILL.md | 88 ++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 .agents/skills/drawny/SKILL.md diff --git a/.agents/skills/drawny/SKILL.md b/.agents/skills/drawny/SKILL.md new file mode 100644 index 0000000..ec94984 --- /dev/null +++ b/.agents/skills/drawny/SKILL.md @@ -0,0 +1,88 @@ +```markdown +# drawny Development Patterns + +> Auto-generated skill from repository analysis + +## Overview +This skill provides guidance on contributing to the `drawny` codebase, a TypeScript project without a detected framework. It covers code style conventions, commit patterns, and testing practices, ensuring consistency and maintainability. Use this as a reference for writing, organizing, and testing code, as well as for collaborating through conventional commits. + +## Coding Conventions + +### File Naming +- Use **camelCase** for file names. + - Example: `drawCanvas.ts`, `userActions.ts` + +### Import Style +- Both default and named imports are used. + - Example (default import): + ```typescript + import drawny from './drawny' + ``` + - Example (named import): + ```typescript + import { drawShape, clearCanvas } from './canvasUtils' + ``` + +### Export Style +- Both default and named exports are present. + - Example (default export): + ```typescript + export default drawny + ``` + - Example (named export): + ```typescript + export function drawShape() { ... } + ``` + +### Commit Patterns +- **Conventional Commits** are used, with a focus on the `fix` prefix. + - Example: + ``` + fix: resolve canvas resizing issue on window resize + ``` +- Commit messages are concise (average ~75 characters). + +## Workflows + +### Conventional Commit Workflow +**Trigger:** When making any commit to the repository +**Command:** `/conventional-commit` + +1. Stage your changes. +2. Write a commit message using the conventional format: + - `: ` + - Example: `fix: correct typo in draw function` +3. Commit your changes. + +### Testing Workflow +**Trigger:** When adding or modifying code that requires validation +**Command:** `/run-tests` + +1. Identify or create a test file matching the `*.test.*` pattern (e.g., `drawny.test.ts`). +2. Write tests for new or updated functionality. +3. Run the tests using your preferred TypeScript test runner (framework not specified). +4. Ensure all tests pass before pushing changes. + +## Testing Patterns + +- Test files follow the `*.test.*` naming convention. + - Example: `canvasUtils.test.ts` +- The specific testing framework is not defined; use a standard TypeScript-compatible test runner (e.g., Jest, Mocha). +- Place tests alongside the code or in a dedicated test directory as appropriate. + + Example test structure: + ```typescript + // drawny.test.ts + import { drawShape } from './drawny' + + test('drawShape draws a rectangle', () => { + // ...test implementation... + }) + ``` + +## Commands +| Command | Purpose | +|-----------------------|-----------------------------------------------------| +| /conventional-commit | Format your commit message using conventional style | +| /run-tests | Run all test files matching `*.test.*` | +``` From 74f97a61f8785eb26116cffb34e785856f54a7f7 Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 19:30:05 +0000 Subject: [PATCH 04/11] feat: add drawny ECC bundle (.agents/skills/drawny/agents/openai.yaml) --- .agents/skills/drawny/agents/openai.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .agents/skills/drawny/agents/openai.yaml diff --git a/.agents/skills/drawny/agents/openai.yaml b/.agents/skills/drawny/agents/openai.yaml new file mode 100644 index 0000000..814b050 --- /dev/null +++ b/.agents/skills/drawny/agents/openai.yaml @@ -0,0 +1,6 @@ +interface: + display_name: "Drawny" + short_description: "Repo-specific patterns and workflows for drawny" + default_prompt: "Use the drawny repo skill to follow existing architecture, testing, and workflow conventions." +policy: + allow_implicit_invocation: true \ No newline at end of file From 84593b889c7dff7a3ecd982300bc632156299602 Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 19:30:06 +0000 Subject: [PATCH 05/11] feat: add drawny ECC bundle (.claude/identity.json) --- .claude/identity.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .claude/identity.json diff --git a/.claude/identity.json b/.claude/identity.json new file mode 100644 index 0000000..0afe319 --- /dev/null +++ b/.claude/identity.json @@ -0,0 +1,14 @@ +{ + "version": "2.0", + "technicalLevel": "technical", + "preferredStyle": { + "verbosity": "detailed", + "codeComments": true, + "explanations": true + }, + "domains": [ + "typescript" + ], + "suggestedBy": "ecc-tools-repo-analysis", + "createdAt": "2026-05-31T19:29:56.077Z" +} \ No newline at end of file From db82e8449cfbb91a54425724800d942347697d49 Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 19:30:07 +0000 Subject: [PATCH 06/11] feat: add drawny ECC bundle (.codex/config.toml) --- .codex/config.toml | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .codex/config.toml diff --git a/.codex/config.toml b/.codex/config.toml new file mode 100644 index 0000000..bc1ee67 --- /dev/null +++ b/.codex/config.toml @@ -0,0 +1,48 @@ +#:schema https://developers.openai.com/codex/config-schema.json + +# ECC Tools generated Codex baseline +approval_policy = "on-request" +sandbox_mode = "workspace-write" +web_search = "live" + +[mcp_servers.github] +command = "npx" +args = ["-y", "@modelcontextprotocol/server-github"] + +[mcp_servers.context7] +command = "npx" +args = ["-y", "@upstash/context7-mcp@latest"] + +[mcp_servers.exa] +url = "https://mcp.exa.ai/mcp" + +[mcp_servers.memory] +command = "npx" +args = ["-y", "@modelcontextprotocol/server-memory"] + +[mcp_servers.playwright] +command = "npx" +args = ["-y", "@playwright/mcp@latest", "--extension"] + +[mcp_servers.sequential-thinking] +command = "npx" +args = ["-y", "@modelcontextprotocol/server-sequential-thinking"] + +[features] +multi_agent = true + +[agents] +max_threads = 6 +max_depth = 1 + +[agents.explorer] +description = "Read-only codebase explorer for gathering evidence before changes are proposed." +config_file = "agents/explorer.toml" + +[agents.reviewer] +description = "PR reviewer focused on correctness, security, and missing tests." +config_file = "agents/reviewer.toml" + +[agents.docs_researcher] +description = "Documentation specialist that verifies APIs, framework behavior, and release notes." +config_file = "agents/docs-researcher.toml" \ No newline at end of file From 8d6c9f45294b540a057dc26aabe12c0342906b68 Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 19:30:08 +0000 Subject: [PATCH 07/11] feat: add drawny ECC bundle (.codex/AGENTS.md) --- .codex/AGENTS.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .codex/AGENTS.md diff --git a/.codex/AGENTS.md b/.codex/AGENTS.md new file mode 100644 index 0000000..bff8398 --- /dev/null +++ b/.codex/AGENTS.md @@ -0,0 +1,26 @@ +# ECC for Codex CLI + +This supplements the root `AGENTS.md` with a repo-local ECC baseline. + +## Repo Skill + +- Repo-generated Codex skill: `.agents/skills/drawny/SKILL.md` +- Claude-facing companion skill: `.claude/skills/drawny/SKILL.md` +- Keep user-specific credentials and private MCPs in `~/.codex/config.toml`, not in this repo. + +## MCP Baseline + +Treat `.codex/config.toml` as the default ECC-safe baseline for work in this repository. +The generated baseline enables GitHub, Context7, Exa, Memory, Playwright, and Sequential Thinking. + +## Multi-Agent Support + +- Explorer: read-only evidence gathering +- Reviewer: correctness, security, and regression review +- Docs researcher: API and release-note verification + +## Workflow Files + +- No dedicated workflow command files were generated for this repo. + +Use these workflow files as reusable task scaffolds when the detected repository workflows recur. \ No newline at end of file From 88812a7459b90fa05b3bb5db41d772c8b95c626b Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 19:30:09 +0000 Subject: [PATCH 08/11] feat: add drawny ECC bundle (.codex/agents/explorer.toml) --- .codex/agents/explorer.toml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .codex/agents/explorer.toml diff --git a/.codex/agents/explorer.toml b/.codex/agents/explorer.toml new file mode 100644 index 0000000..732df7a --- /dev/null +++ b/.codex/agents/explorer.toml @@ -0,0 +1,9 @@ +model = "gpt-5.4" +model_reasoning_effort = "medium" +sandbox_mode = "read-only" + +developer_instructions = """ +Stay in exploration mode. +Trace the real execution path, cite files and symbols, and avoid proposing fixes unless the parent agent asks for them. +Prefer targeted search and file reads over broad scans. +""" \ No newline at end of file From 0c1fea0f40d075004a64e5c3250d479dd18a6f2b Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 19:30:10 +0000 Subject: [PATCH 09/11] feat: add drawny ECC bundle (.codex/agents/reviewer.toml) --- .codex/agents/reviewer.toml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .codex/agents/reviewer.toml diff --git a/.codex/agents/reviewer.toml b/.codex/agents/reviewer.toml new file mode 100644 index 0000000..b13ed9c --- /dev/null +++ b/.codex/agents/reviewer.toml @@ -0,0 +1,9 @@ +model = "gpt-5.4" +model_reasoning_effort = "high" +sandbox_mode = "read-only" + +developer_instructions = """ +Review like an owner. +Prioritize correctness, security, behavioral regressions, and missing tests. +Lead with concrete findings and avoid style-only feedback unless it hides a real bug. +""" \ No newline at end of file From f2eed38fea4dd2187bf70349de130b017e3b2acf Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 19:30:11 +0000 Subject: [PATCH 10/11] feat: add drawny ECC bundle (.codex/agents/docs-researcher.toml) --- .codex/agents/docs-researcher.toml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .codex/agents/docs-researcher.toml diff --git a/.codex/agents/docs-researcher.toml b/.codex/agents/docs-researcher.toml new file mode 100644 index 0000000..0daae57 --- /dev/null +++ b/.codex/agents/docs-researcher.toml @@ -0,0 +1,9 @@ +model = "gpt-5.4" +model_reasoning_effort = "medium" +sandbox_mode = "read-only" + +developer_instructions = """ +Verify APIs, framework behavior, and release-note claims against primary documentation before changes land. +Cite the exact docs or file paths that support each claim. +Do not invent undocumented behavior. +""" \ No newline at end of file From c03efda096de14d1674aae1b0bac9f51c70bf1ee Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 19:30:12 +0000 Subject: [PATCH 11/11] feat: add drawny ECC bundle (.claude/homunculus/instincts/inherited/drawny-instincts.yaml) --- .../instincts/inherited/drawny-instincts.yaml | 394 ++++++++++++++++++ 1 file changed, 394 insertions(+) create mode 100644 .claude/homunculus/instincts/inherited/drawny-instincts.yaml diff --git a/.claude/homunculus/instincts/inherited/drawny-instincts.yaml b/.claude/homunculus/instincts/inherited/drawny-instincts.yaml new file mode 100644 index 0000000..4740df1 --- /dev/null +++ b/.claude/homunculus/instincts/inherited/drawny-instincts.yaml @@ -0,0 +1,394 @@ +# Instincts generated from https://github.com/bugdisclose/drawny +# Generated: 2026-05-31T19:29:56.077Z +# Version: 2.0 +# NOTE: This file supplements (does not replace) any existing curated instincts. +# High-confidence manually curated instincts should be preserved alongside these. + +--- +id: drawny-commit-conventional +trigger: "when writing a commit message" +confidence: 0.85 +domain: git +source: repo-analysis +source_repo: https://github.com/bugdisclose/drawny +--- + +# Drawny Commit Conventional + +## Action + +Use conventional commit format with prefixes: fix + +## Evidence + +- 1 commits analyzed +- Detected conventional commit pattern +- Examples: fix: resolve iPad canvas rendering and drawing, extend chat reset to 7 days + +--- +id: drawny-commit-length +trigger: "when writing a commit message" +confidence: 0.6 +domain: git +source: repo-analysis +source_repo: https://github.com/bugdisclose/drawny +--- + +# Drawny Commit Length + +## Action + +Write moderate-length commit messages (~75 characters) + +## Evidence + +- Average commit message length: 75 chars +- Based on 1 commits + +--- +id: drawny-naming-files +trigger: "when creating a new file" +confidence: 0.8 +domain: code-style +source: repo-analysis +source_repo: https://github.com/bugdisclose/drawny +--- + +# Drawny Naming Files + +## Action + +Use camelCase naming convention + +## Evidence + +- Analyzed file naming patterns in repository +- Dominant pattern: camelCase + +--- +id: drawny-export-style +trigger: "when exporting from a module" +confidence: 0.7 +domain: code-style +source: repo-analysis +source_repo: https://github.com/bugdisclose/drawny +--- + +# Drawny Export Style + +## Action + +Prefer mixed exports + +## Evidence + +- Export pattern analysis +- Dominant style: mixed + +--- +id: drawny-arch-type-based +trigger: "when adding new code" +confidence: 0.8 +domain: architecture +source: repo-analysis +source_repo: https://github.com/bugdisclose/drawny +--- + +# Drawny Arch Type Based + +## Action + +Place code in the appropriate type folder (components/, services/, utils/, etc.) + +## Evidence + +- Type-based module organization detected +- Folders: app, lib + +--- +id: drawny-test-separate +trigger: "when writing tests" +confidence: 0.8 +domain: testing +source: repo-analysis +source_repo: https://github.com/bugdisclose/drawny +--- + +# Drawny Test Separate + +## Action + +Place tests in the tests/ or __tests__/ directory, mirroring src structure + +## Evidence + +- Separate test directory pattern detected +- Tests live in dedicated test folders + +--- +id: drawny-instinct-file-naming +trigger: "When creating a new file in the codebase" +confidence: 0.8 +domain: code-style +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct File Naming + +## Action + +Name the file using camelCase convention + +## Evidence + +- Pattern in files Y: namingConventions.files = camelCase + +--- +id: drawny-instinct-function-naming +trigger: "When defining a new function" +confidence: 0.8 +domain: code-style +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct Function Naming + +## Action + +Name the function using camelCase convention + +## Evidence + +- Pattern in files Y: namingConventions.functions = camelCase + +--- +id: drawny-instinct-class-naming +trigger: "When defining a new class" +confidence: 0.8 +domain: code-style +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct Class Naming + +## Action + +Name the class using PascalCase convention + +## Evidence + +- Pattern in files Y: namingConventions.classes = PascalCase + +--- +id: drawny-instinct-constant-naming +trigger: "When declaring a constant" +confidence: 0.8 +domain: code-style +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct Constant Naming + +## Action + +Name the constant using SCREAMING_SNAKE_CASE convention + +## Evidence + +- Pattern in files Y: namingConventions.constants = SCREAMING_SNAKE_CASE + +--- +id: drawny-instinct-import-style +trigger: "When importing modules" +confidence: 0.7 +domain: code-style +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct Import Style + +## Action + +Use either default or named imports as appropriate (mixed style) + +## Evidence + +- Pattern in files Y: importStyle = mixed + +--- +id: drawny-instinct-export-style +trigger: "When exporting modules" +confidence: 0.7 +domain: code-style +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct Export Style + +## Action + +Use either default or named exports as appropriate (mixed style) + +## Evidence + +- Pattern in files Y: exportStyle = mixed + +--- +id: drawny-instinct-commit-format +trigger: "When making a git commit" +confidence: 0.9 +domain: git +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct Commit Format + +## Action + +Format the commit message using the conventional commit style, starting with a prefix such as 'fix:' + +## Evidence + +- Seen in commit: 'fix: resolve iPad canvas rendering and drawing, extend chat reset to 7 days' +- Pattern: commits.type = conventional, prefixes = ['fix'] + +--- +id: drawny-instinct-commit-length +trigger: "When writing a commit message" +confidence: 0.7 +domain: git +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct Commit Length + +## Action + +Aim for a commit message length around 75 characters + +## Evidence + +- Pattern: commits.averageLength = 75 + +--- +id: drawny-instinct-try-catch-error-handling +trigger: "When handling errors in code" +confidence: 0.8 +domain: code-style +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct Try Catch Error Handling + +## Action + +Use try-catch blocks for error handling + +## Evidence + +- Pattern: errorHandling.style = try-catch + +--- +id: drawny-instinct-no-custom-error-classes +trigger: "When considering custom error classes" +confidence: 0.7 +domain: code-style +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct No Custom Error Classes + +## Action + +Avoid creating custom error classes; use standard Error objects + +## Evidence + +- Pattern: errorHandling.customErrorClasses = false + +--- +id: drawny-instinct-no-error-boundaries +trigger: "When considering error boundaries in code" +confidence: 0.7 +domain: code-style +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct No Error Boundaries + +## Action + +Do not implement error boundaries + +## Evidence + +- Pattern: errorHandling.errorBoundaries = false + +--- +id: drawny-instinct-no-global-error-handler +trigger: "When considering a global error handler" +confidence: 0.7 +domain: code-style +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct No Global Error Handler + +## Action + +Do not implement a global error handler + +## Evidence + +- Pattern: errorHandling.globalHandler = false + +--- +id: drawny-instinct-test-location +trigger: "When creating new tests" +confidence: 0.8 +domain: testing +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct Test Location + +## Action + +Place test files in a separate directory from source code + +## Evidence + +- Pattern: architecture.folderStructure.testLocation = separate + +--- +id: drawny-instinct-src-folder-usage +trigger: "When adding new source files" +confidence: 0.8 +domain: architecture +source: repo-analysis +source_repo: bugdisclose/drawny +--- + +# Drawny Instinct Src Folder Usage + +## Action + +Place them within the 'src' folder + +## Evidence + +- Pattern: architecture.folderStructure.commonFolders includes 'src' +