CONTRIBUTING.md
.codex/skills/compose-kotlin-agent-skills/CONTRIBUTING.md
1# Contributing to compose-kotlin-agent-skills23Thank you for helping keep this skill kit honest. The goal is simple: every rule in every `SKILL.md` must reflect what actually works in 2026 Android development — not what was correct three or four years ago.45---67## What you can contribute89| Type | Examples |10|------|---------|11| **New antipattern** | A wrong pattern your agent keeps generating that isn't in the banned list yet |12| **Stale rule fix** | A version pin, API call, or best practice that has become outdated |13| **New reference module** | A missing topic (e.g. `WorkManager`, `DataStore`, `Media3`) |14| **New agent install guide** | A `agents/<agent-name>.md` for a supported agent not yet covered |15| **CI / tooling** | Improvements to frontmatter linting or md5 lock scripts |16| **Typo / clarity** | Wording that confused you or your agent |1718---1920## Ground rules2122- **Every rule must be testable.** If you can't point to an agent output or a compiler error that proves the rule is needed, it probably doesn't belong.23- **Wrong pattern + correct fix, always together.** The banned-antipatterns table format exists so agents see both sides. Don't add a "don't do X" without a "do Y instead."24- **Version-pin everything.** Vague advice like "use the latest BOM" is useless. Pin the exact version.25- **No opinions without evidence.** Performance claims need a benchmark or a link to one.2627---2829## How to contribute3031### 1. Fork and clone3233```bash34git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git35cd compose-kotlin-agent-skills36```3738### 2. Make your change3940- Editing an existing skill → find the relevant `SKILL.md` and edit in place.41- Adding a new reference module → create `references/<topic>/SKILL.md` following the existing module structure.42- Adding a new agent guide → create `agents/<agent-name>.md` (install steps + verification).4344### 3. Run the CI checks locally4546```bash47# Validate frontmatter, links, and lock-file parity48python3 scripts/validate_skills.py --strict --lock-check api/skills.lock4950# Regenerate md5 locks after any SKILL.md edit51./scripts/update_lock.sh52```5354The validation command must pass with zero errors before you open a PR. If you55edit any `SKILL.md`, run `./scripts/update_lock.sh` and commit the updated lock56file too. CI will rerun validation on push — a red check means your PR won't be57merged.5859### 4. Open a pull request6061Use the template below as your PR description:6263```64## What changed65<!-- One-line summary -->6667## Why68<!-- What agent output, compiler error, or breaking change prompted this? -->6970## Evidence71<!-- Link, screenshot, or code snippet that proves the rule is correct -->7273## Checklist74- [ ] `python3 scripts/validate_skills.py --strict --lock-check api/skills.lock` passes locally75- [ ] If any `SKILL.md` changed: ran `./scripts/update_lock.sh` and committed `api/skills.lock`76- [ ] Wrong pattern and correct fix both present (if adding an antipattern)77- [ ] Version numbers are pinned, not "latest"78```7980---8182## SKILL.md structure8384Every `SKILL.md` must start with this frontmatter block:8586```yaml87---88skill: <slug>89version: <semver>90applies_to: [kotlin, compose, android] # adjust as needed91min_toolchain:92 kotlin: "2.1.x"93 agp: "9.x"94 compose_bom: "2026.x"95---96```9798After frontmatter, the expected sections in order:991001. **Purpose** — one sentence on what the agent learns from this file.1012. **Toolchain** — pinned versions used throughout the skill.1023. **Rules** — the positive patterns the agent must follow.1034. **Banned antipatterns** — two-column table: ❌ wrong | ✅ correct.1045. **References** — links to official docs, KotlinConf talks, or benchmarks that back the rules.105106---107108## Reporting a broken rule109110If an agent is following a rule in this kit and still producing bad output, open an issue using the **Broken Rule** template. Include:111112- The rule text (copy-paste from the `SKILL.md`)113- The agent and model version114- The prompt you gave115- What the agent output116- What it should have output instead117118---119120## Scope121122This repo covers **Kotlin + Jetpack Compose on Android**. Out of scope:123124- Kotlin Multiplatform desktop or web targets (open a separate issue to discuss)125- Framework-specific rules for non-Google libraries unless they're in widespread use126- General software engineering advice not specific to Android/Compose127128---129130## License131132By contributing you agree that your changes will be released under the [MIT License](./LICENSE) that covers this project.133