Skip to content

feat(#233): add codebase conventions detection - #362

Merged
admarble merged 4 commits into
mainfrom
feature/233-feat-learning-adaptation-pattern-memory-and-co
Mar 13, 2026
Merged

admarble merged 4 commits into
mainfrom
feature/233-feat-learning-adaptation-pattern-memory-and-co

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Adds deterministic codebase convention detection during sequant init (detects 8+ conventions: test patterns, export style, async patterns, TypeScript strictness, indentation, semicolons, package manager, project structure)
  • Stores results in .sequant/conventions.json with manual override support
  • New sequant conventions CLI command to view, re-detect, or reset conventions
  • /exec skill template references conventions for style-aware code generation

AC Coverage

AC Status
AC-1: sequant init detects 5+ conventions ✅ MET (8 detected)
AC-2: Stored in .sequant/conventions.json ✅ MET
AC-3: /exec skill references conventions ✅ MET
AC-4: sequant conventions command ✅ MET
AC-5: User can manually edit ✅ MET

Verdict: READY_FOR_MERGE

Test plan

  • 21 unit tests covering all detectors, save/load, merge, format
  • sequant conventions --help shows usage
  • sequant conventions --detect detects 8 conventions
  • sequant conventions --reset clears detected, preserves manual
  • sequant conventions (no file) shows graceful message
  • Full test suite: 1532/1532 passing
  • Build clean (no type errors)

Closes #233

🤖 Generated with Claude Code

- Add conventions-detector.ts with 8 deterministic detectors:
  test patterns, export style, async patterns, TypeScript strictness,
  indentation, semicolons, package manager, project structure
- Integrate detection into `sequant init` workflow
- Add `sequant conventions` CLI command (--detect, --reset)
- Update /exec skill template to reference conventions.json
- Add comprehensive unit tests (21 tests)

Closes #233
Move conventions section to correct location (2.1b2 subsection)
and remove misplaced bullet from health check section.
- Remove unused imports (basename, readFile)
- Use {2} and {4} quantifiers instead of literal spaces in regex
- Remove unnecessary escape in character class
@admarble
admarble merged commit 795dc43 into main Mar 13, 2026
3 of 6 checks passed
@admarble
admarble deleted the feature/233-feat-learning-adaptation-pattern-memory-and-co branch March 13, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Learning & Adaptation - Pattern Memory and Codebase Conventions

1 participant