mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-12 01:07:46 +00:00
- CLAUDE.md: drop the 5-step skill-approval workflow (skills auto-trigger and the approval loop blocked autonomous sessions), condense Verify-Don't- Guess to the repo-specific tooling pointers, remove references to the uncommitted /bugfix and /investigate skills, and replace the mandated emoji survey matrix with one-line guidance - android-expert / desktop-expert: add missing YAML frontmatter so the skills carry trigger descriptions and can actually auto-invoke - extract.md: fix stale shared-ui/ module name -> commons/ - delete skills/quartz-kmp.md breadcrumb (migration long complete) - gate the Stop spotlessApply hook on modified Kotlin files via hooks/stop-spotless.sh so Q&A-only turns skip the Gradle run - condense core-skills-plan.md to a historical changelog https://claude.ai/code/session_01EC7LdXjatFTh1CJSP4qKRn
13 lines
341 B
Bash
Executable File
13 lines
341 B
Bash
Executable File
#!/bin/bash
|
|
# Stop hook: format Kotlin sources, but only when the working tree actually
|
|
# has modified Kotlin files — skips the Gradle invocation on Q&A-only turns.
|
|
set -uo pipefail
|
|
|
|
cd "${CLAUDE_PROJECT_DIR:-.}" || exit 0
|
|
|
|
if git status --porcelain 2>/dev/null | grep -qE '[.]kts?$'; then
|
|
./gradlew spotlessApply 2>/dev/null
|
|
fi
|
|
|
|
exit 0
|