From 15de08962c4bcf24f158387a258ddd403b360258 Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 22:41:59 +0000 Subject: [PATCH 01/11] feat: add JavaProjects 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..617eb1d --- /dev/null +++ b/.claude/ecc-tools.json @@ -0,0 +1,227 @@ +{ + "version": "1.3", + "schemaVersion": "1.0", + "generatedBy": "ecc-tools", + "generatedAt": "2026-05-21T22:41:37.994Z", + "repo": "https://github.com/bigBrodyG/JavaProjects", + "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/JavaProjects/SKILL.md", + ".agents/skills/JavaProjects/SKILL.md", + ".agents/skills/JavaProjects/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/JavaProjects-instincts.yaml" + ], + "packageFiles": { + "runtime-core": [ + ".claude/skills/JavaProjects/SKILL.md", + ".agents/skills/JavaProjects/SKILL.md", + ".agents/skills/JavaProjects/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/JavaProjects-instincts.yaml" + ] + }, + "moduleFiles": { + "runtime-core": [ + ".claude/skills/JavaProjects/SKILL.md", + ".agents/skills/JavaProjects/SKILL.md", + ".agents/skills/JavaProjects/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/JavaProjects-instincts.yaml" + ] + }, + "files": [ + { + "moduleId": "runtime-core", + "path": ".claude/skills/JavaProjects/SKILL.md", + "description": "Repository-specific Claude Code skill generated from git history." + }, + { + "moduleId": "runtime-core", + "path": ".agents/skills/JavaProjects/SKILL.md", + "description": "Codex-facing copy of the generated repository skill." + }, + { + "moduleId": "runtime-core", + "path": ".agents/skills/JavaProjects/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/JavaProjects-instincts.yaml", + "description": "Continuous-learning instincts derived from repository patterns." + } + ], + "workflows": [], + "adapters": { + "claudeCode": { + "skillPath": ".claude/skills/JavaProjects/SKILL.md", + "identityPath": ".claude/identity.json", + "commandPaths": [] + }, + "codex": { + "configPath": ".codex/config.toml", + "agentsGuidePath": ".codex/AGENTS.md", + "skillPath": ".agents/skills/JavaProjects/SKILL.md" + } + } +} \ No newline at end of file From 3c17f91b310e50f8df94a1c8a670fdb64e2ed297 Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 22:42:01 +0000 Subject: [PATCH 02/11] feat: add JavaProjects ECC bundle (.claude/skills/JavaProjects/SKILL.md) --- .claude/skills/JavaProjects/SKILL.md | 90 ++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .claude/skills/JavaProjects/SKILL.md diff --git a/.claude/skills/JavaProjects/SKILL.md b/.claude/skills/JavaProjects/SKILL.md new file mode 100644 index 0000000..1a43e84 --- /dev/null +++ b/.claude/skills/JavaProjects/SKILL.md @@ -0,0 +1,90 @@ +```markdown +# JavaProjects Development Patterns + +> Auto-generated skill from repository analysis + +## Overview +This skill teaches the core development patterns, coding conventions, and workflows used in the `JavaProjects` repository. The repository is written in Java and does not use a specific framework. It emphasizes clear file naming, consistent import/export styles, and a basic approach to testing. This guide will help you contribute code that matches the project's established practices. + +## Coding Conventions + +### File Naming +- Use **PascalCase** for all file names. + - **Example:** `MyClass.java`, `DataProcessor.java` + +### Import Style +- Use **relative imports** within the project. + - **Example:** + ```java + import mypackage.utils.Helper; + ``` + +### Export Style +- Use **named exports** (i.e., explicitly declare public classes). + - **Example:** + ```java + public class DataProcessor { + // class implementation + } + ``` + +### Commit Messages +- Freeform style, no strict prefixes. +- Average commit message length: ~68 characters. + - **Example:** + `Add data processing logic for user input validation` + +## Workflows + +### Adding a New Java Class +**Trigger:** When you need to add new functionality or features +**Command:** `/add-class` + +1. Create a new `.java` file using PascalCase (e.g., `NewFeature.java`). +2. Write your class with a `public` modifier. +3. Use relative imports for any internal dependencies. +4. Add relevant methods and logic. +5. Commit your changes with a clear, descriptive message. + +### Importing Internal Utilities +**Trigger:** When you need to use helper functions or utilities from within the project +**Command:** `/import-utility` + +1. Identify the utility class you need (e.g., `Helper.java`). +2. Use a relative import at the top of your file: + ```java + import mypackage.utils.Helper; + ``` +3. Use the utility methods as needed in your code. + +### Writing and Running Tests +**Trigger:** When you add or modify functionality and want to ensure correctness +**Command:** `/run-tests` + +1. Create a test file matching the pattern `*.test.*` (e.g., `DataProcessor.test.java`). +2. Write test cases for your classes and methods. +3. Use the project's preferred testing approach (framework is unknown; follow existing test patterns). +4. Run the tests using your preferred Java test runner or IDE. +5. Review results and fix any issues before committing. + +## Testing Patterns + +- Test files follow the pattern: `*.test.*` (e.g., `MyClass.test.java`). +- The specific testing framework is not defined; follow the structure of existing tests. +- Place test files alongside or near the code they test. +- Write clear, descriptive test cases for each public method. + +**Example:** +```java +public class DataProcessorTest { + // test methods for DataProcessor +} +``` + +## Commands +| Command | Purpose | +|-----------------|-----------------------------------------------------| +| /add-class | Add a new Java class following project conventions | +| /import-utility | Import and use internal utility classes | +| /run-tests | Write and execute tests for your Java code | +``` From df56b2d5fcb85dd390e7d42b0c03bf46b835e04d Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 22:42:02 +0000 Subject: [PATCH 03/11] feat: add JavaProjects ECC bundle (.agents/skills/JavaProjects/SKILL.md) --- .agents/skills/JavaProjects/SKILL.md | 90 ++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .agents/skills/JavaProjects/SKILL.md diff --git a/.agents/skills/JavaProjects/SKILL.md b/.agents/skills/JavaProjects/SKILL.md new file mode 100644 index 0000000..1a43e84 --- /dev/null +++ b/.agents/skills/JavaProjects/SKILL.md @@ -0,0 +1,90 @@ +```markdown +# JavaProjects Development Patterns + +> Auto-generated skill from repository analysis + +## Overview +This skill teaches the core development patterns, coding conventions, and workflows used in the `JavaProjects` repository. The repository is written in Java and does not use a specific framework. It emphasizes clear file naming, consistent import/export styles, and a basic approach to testing. This guide will help you contribute code that matches the project's established practices. + +## Coding Conventions + +### File Naming +- Use **PascalCase** for all file names. + - **Example:** `MyClass.java`, `DataProcessor.java` + +### Import Style +- Use **relative imports** within the project. + - **Example:** + ```java + import mypackage.utils.Helper; + ``` + +### Export Style +- Use **named exports** (i.e., explicitly declare public classes). + - **Example:** + ```java + public class DataProcessor { + // class implementation + } + ``` + +### Commit Messages +- Freeform style, no strict prefixes. +- Average commit message length: ~68 characters. + - **Example:** + `Add data processing logic for user input validation` + +## Workflows + +### Adding a New Java Class +**Trigger:** When you need to add new functionality or features +**Command:** `/add-class` + +1. Create a new `.java` file using PascalCase (e.g., `NewFeature.java`). +2. Write your class with a `public` modifier. +3. Use relative imports for any internal dependencies. +4. Add relevant methods and logic. +5. Commit your changes with a clear, descriptive message. + +### Importing Internal Utilities +**Trigger:** When you need to use helper functions or utilities from within the project +**Command:** `/import-utility` + +1. Identify the utility class you need (e.g., `Helper.java`). +2. Use a relative import at the top of your file: + ```java + import mypackage.utils.Helper; + ``` +3. Use the utility methods as needed in your code. + +### Writing and Running Tests +**Trigger:** When you add or modify functionality and want to ensure correctness +**Command:** `/run-tests` + +1. Create a test file matching the pattern `*.test.*` (e.g., `DataProcessor.test.java`). +2. Write test cases for your classes and methods. +3. Use the project's preferred testing approach (framework is unknown; follow existing test patterns). +4. Run the tests using your preferred Java test runner or IDE. +5. Review results and fix any issues before committing. + +## Testing Patterns + +- Test files follow the pattern: `*.test.*` (e.g., `MyClass.test.java`). +- The specific testing framework is not defined; follow the structure of existing tests. +- Place test files alongside or near the code they test. +- Write clear, descriptive test cases for each public method. + +**Example:** +```java +public class DataProcessorTest { + // test methods for DataProcessor +} +``` + +## Commands +| Command | Purpose | +|-----------------|-----------------------------------------------------| +| /add-class | Add a new Java class following project conventions | +| /import-utility | Import and use internal utility classes | +| /run-tests | Write and execute tests for your Java code | +``` From e77ea3006d8c7e0751572ba3845f61c5a4c181ce Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 22:42:03 +0000 Subject: [PATCH 04/11] feat: add JavaProjects ECC bundle (.agents/skills/JavaProjects/agents/openai.yaml) --- .agents/skills/JavaProjects/agents/openai.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .agents/skills/JavaProjects/agents/openai.yaml diff --git a/.agents/skills/JavaProjects/agents/openai.yaml b/.agents/skills/JavaProjects/agents/openai.yaml new file mode 100644 index 0000000..b841e02 --- /dev/null +++ b/.agents/skills/JavaProjects/agents/openai.yaml @@ -0,0 +1,6 @@ +interface: + display_name: "JavaProjects" + short_description: "Repo-specific patterns and workflows for JavaProjects" + default_prompt: "Use the JavaProjects repo skill to follow existing architecture, testing, and workflow conventions." +policy: + allow_implicit_invocation: true \ No newline at end of file From 33cfa817dba7ef176784698d7bffe7cd6f8bd274 Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 22:42:04 +0000 Subject: [PATCH 05/11] feat: add JavaProjects 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..71835b2 --- /dev/null +++ b/.claude/identity.json @@ -0,0 +1,14 @@ +{ + "version": "2.0", + "technicalLevel": "technical", + "preferredStyle": { + "verbosity": "detailed", + "codeComments": true, + "explanations": true + }, + "domains": [ + "java" + ], + "suggestedBy": "ecc-tools-repo-analysis", + "createdAt": "2026-05-21T22:41:51.739Z" +} \ No newline at end of file From ae410008183f73cbf3e2bcaba9ccc601505c20dd Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 22:42:05 +0000 Subject: [PATCH 06/11] feat: add JavaProjects 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 eaa7b110f63af806bd5da98f628d5bd85d5cdf35 Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 22:42:07 +0000 Subject: [PATCH 07/11] feat: add JavaProjects 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..4404d7b --- /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/JavaProjects/SKILL.md` +- Claude-facing companion skill: `.claude/skills/JavaProjects/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 2ac93a4487c1f3f48ace12442c315148711a5186 Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 22:42:08 +0000 Subject: [PATCH 08/11] feat: add JavaProjects 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 f8a71cbe0b39822b7cf55d42fe610b91a7b143c5 Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 22:42:09 +0000 Subject: [PATCH 09/11] feat: add JavaProjects 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 ac8d3bd53aecde4c05d057cc4f350537c2dfe78e Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 22:42:10 +0000 Subject: [PATCH 10/11] feat: add JavaProjects 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 3f475ca73adb82eb8cc38f6bd90c3ee65ab65f27 Mon Sep 17 00:00:00 2001 From: "ecc-tools[bot]" <257055122+ecc-tools[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 22:42:12 +0000 Subject: [PATCH 11/11] feat: add JavaProjects ECC bundle (.claude/homunculus/instincts/inherited/JavaProjects-instincts.yaml) --- .../inherited/JavaProjects-instincts.yaml | 261 ++++++++++++++++++ 1 file changed, 261 insertions(+) create mode 100644 .claude/homunculus/instincts/inherited/JavaProjects-instincts.yaml diff --git a/.claude/homunculus/instincts/inherited/JavaProjects-instincts.yaml b/.claude/homunculus/instincts/inherited/JavaProjects-instincts.yaml new file mode 100644 index 0000000..3d8161e --- /dev/null +++ b/.claude/homunculus/instincts/inherited/JavaProjects-instincts.yaml @@ -0,0 +1,261 @@ +# Instincts generated from https://github.com/bigBrodyG/JavaProjects +# Generated: 2026-05-21T22:41:51.739Z +# 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: JavaProjects-commit-length +trigger: "when writing a commit message" +confidence: 0.6 +domain: git +source: repo-analysis +source_repo: https://github.com/bigBrodyG/JavaProjects +--- + +# JavaProjects Commit Length + +## Action + +Write moderate-length commit messages (~68 characters) + +## Evidence + +- Average commit message length: 68 chars +- Based on 1 commits + +--- +id: JavaProjects-naming-files +trigger: "when creating a new file" +confidence: 0.8 +domain: code-style +source: repo-analysis +source_repo: https://github.com/bigBrodyG/JavaProjects +--- + +# JavaProjects Naming Files + +## Action + +Use PascalCase naming convention + +## Evidence + +- Analyzed file naming patterns in repository +- Dominant pattern: PascalCase + +--- +id: JavaProjects-import-relative +trigger: "when importing modules" +confidence: 0.75 +domain: code-style +source: repo-analysis +source_repo: https://github.com/bigBrodyG/JavaProjects +--- + +# JavaProjects Import Relative + +## Action + +Use relative imports for project files + +## Evidence + +- Import analysis shows relative import pattern +- Example: import { x } from '../lib/x' + +--- +id: JavaProjects-export-style +trigger: "when exporting from a module" +confidence: 0.7 +domain: code-style +source: repo-analysis +source_repo: https://github.com/bigBrodyG/JavaProjects +--- + +# JavaProjects Export Style + +## Action + +Prefer named exports + +## Evidence + +- Export pattern analysis +- Dominant style: named + +--- +id: JavaProjects-test-separate +trigger: "when writing tests" +confidence: 0.8 +domain: testing +source: repo-analysis +source_repo: https://github.com/bigBrodyG/JavaProjects +--- + +# JavaProjects 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: javaprojects-instinct-class-naming +trigger: "When creating a new Java class file" +confidence: 0.9 +domain: code-style +source: repo-analysis +source_repo: bigBrodyG/JavaProjects +--- + +# Javaprojects Instinct Class Naming + +## Action + +Name the file and class using PascalCase + +## Evidence + +- Pattern in namingConventions.files: PascalCase +- Pattern in namingConventions.classes: PascalCase + +--- +id: javaprojects-instinct-function-naming +trigger: "When defining a new function or method" +confidence: 0.9 +domain: code-style +source: repo-analysis +source_repo: bigBrodyG/JavaProjects +--- + +# Javaprojects Instinct Function Naming + +## Action + +Use camelCase for the function name + +## Evidence + +- Pattern in namingConventions.functions: camelCase + +--- +id: javaprojects-instinct-constant-naming +trigger: "When declaring a constant" +confidence: 0.9 +domain: code-style +source: repo-analysis +source_repo: bigBrodyG/JavaProjects +--- + +# Javaprojects Instinct Constant Naming + +## Action + +Use SCREAMING_SNAKE_CASE for the constant name + +## Evidence + +- Pattern in namingConventions.constants: SCREAMING_SNAKE_CASE + +--- +id: javaprojects-instinct-import-style +trigger: "When importing Java classes" +confidence: 0.8 +domain: code-style +source: repo-analysis +source_repo: bigBrodyG/JavaProjects +--- + +# Javaprojects Instinct Import Style + +## Action + +Use relative import paths + +## Evidence + +- Pattern in importStyle: relative + +--- +id: javaprojects-instinct-export-style +trigger: "When exporting classes or functions" +confidence: 0.8 +domain: code-style +source: repo-analysis +source_repo: bigBrodyG/JavaProjects +--- + +# Javaprojects Instinct Export Style + +## Action + +Use named exports + +## Evidence + +- Pattern in exportStyle: named + +--- +id: javaprojects-instinct-commit-format +trigger: "When writing a commit message" +confidence: 0.7 +domain: git +source: repo-analysis +source_repo: bigBrodyG/JavaProjects +--- + +# Javaprojects Instinct Commit Format + +## Action + +Write a freeform message without a specific prefix, average length around 68 characters + +## Evidence + +- Pattern in commits.type: freeform +- Pattern in commits.averageLength: 68 + +--- +id: javaprojects-instinct-test-location +trigger: "When adding new test files" +confidence: 0.8 +domain: testing +source: repo-analysis +source_repo: bigBrodyG/JavaProjects +--- + +# Javaprojects Instinct Test Location + +## Action + +Place test files in a separate folder from source code + +## Evidence + +- Pattern in architecture.folderStructure.testLocation: separate + +--- +id: javaprojects-instinct-folder-organization +trigger: "When organizing project files" +confidence: 0.8 +domain: architecture +source: repo-analysis +source_repo: bigBrodyG/JavaProjects +--- + +# Javaprojects Instinct Folder Organization + +## Action + +Use a single-package structure with common folders such as 'Laboratorio' and 'Esercizi' + +## Evidence + +- Pattern in architecture.folderStructure.type: single-package +- Pattern in architecture.folderStructure.commonFolders: Laboratorio, Esercizi +