jal-co/jalco-pi-mono/repo-ci
Claude Code and agent skill by jal-co/jalco-pi-mono
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Set up GitHub repo CI with Husky git hooks, commit-check-action, conventional commits, and conventional branch naming. Handles greenfield and existing repos intelligently — detects existing CI, package managers, and config before making changes. Use when setting up CI, adding git hooks, enforcing commit conventions, or standardizing branch naming. Examples: - user: "Set up CI for this repo" → assess repo, install husky + commit-check - user: "Add conventional commits" → configure local hooks + GitHub Action - user: "Enforce branch naming" → add commit-check branch validation - user: "/setup-ci" → full CI pipeline setup with interactive questions - user: "Add husky to this project" → install and configure husky hooks
Install
npx vskill@latest install jal-co/jalco-pi-mono/repo-ciSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as jal-co/jalco-pi-mono/repo-ci.
Repo CI Setup
Set up a complete GitHub repo CI pipeline: Husky local git hooks + commit-check-action for GitHub Actions, enforcing conventional commits and conventional branch naming.
Step 1: Assess the Repository
Before making ANY changes, gather context. Run these checks silently and analyze results:
Classification
Based on the assessment, classify the repo:
| Signal | Classification | |
|---|---|---|
No package.json | Non-JS project — skip Husky, use commit-check-action only | |
package.json exists, no .github/workflows/ | Greenfield — full setup | |
.github/workflows/ exists, no commit checks | Existing CI — add commit checks alongside | |
| Husky already installed | Partial setup — fill gaps only | |
commitlint present | Migration candidate — ask before replacing | |
commit-check.toml present | Already configured — verify and update if needed |
Step 2: Ask Clarifying Questions
Based on assessment, ask the user ONLY questions that are relevant. Do NOT ask questions whose answers are obvious from the repo state.
Always ask:
- Confirm the default branch name (main vs master vs develop)
Ask if ambiguous:
- Package manager preference (if no lockfile detected)
- Whether to replace existing commitlint with commit-check (if commitlint found)
- Whether to add PR comments from commit-check-action (adds permissions requirement)
- Whether existing workflows should be modified or a new workflow file created
- Whether to add lint-staged for pre-commit code formatting
Never ask:
- Whether to use conventional commits (that's the whole point)
- Whether to use Husky (yes, unless non-JS project)
Step 3: Install Husky (JS/TS Projects Only)
Skip this step entirely for non-JS projects.
Detect the package manager and use it consistently:
Install
This creates .husky/ directory and adds a prepare script to package.json.
Configure commit-msg Hook
Create .husky/commit-msg:
Make it executable:
Configure pre-push Hook (Branch Name Validation)
Create .husky/pre-push:
Make it executable:
Optional: pre-commit Hook with lint-staged
Only add if user requested or repo already uses lint-staged:
Create .husky/pre-commit:
Add lint-staged config to package.json:
Adjust glob patterns to match the project's actual tooling (eslint, biome, oxlint, etc.).
Step 4: Configure commit-check-action (GitHub Actions)
Create commit-check.toml
Place at repository root. See references/commit-check-toml.md for the full config reference.
Default config:
Adjust require_rebase_target to match the actual default branch.
Create GitHub Actions Workflow
Create .github/workflows/commit-check.yml:
Adjust the branches filter to match the actual default branch.
If user does NOT want PR comments, remove the pull-requests: write permission and set pr-comments: false.
Step 5: Final Checklist
After setup, verify:
- [ ]
.husky/commit-msgexists and is executable (JS projects) - [ ]
.husky/pre-pushexists and is executable (JS projects) - [ ]
commit-check.tomlexists at repo root - [ ]
.github/workflows/commit-check.ymlexists - [ ]
package.jsonhaspreparescript for husky (JS projects) - [ ]
.gitignoredoes NOT ignore.husky/directory - [ ] Test:
git commit -m "bad message"is rejected locally - [ ] Test:
git commit -m "feat: test message"is accepted locally
Summary Output
After completing setup, print a clear summary:
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpi/.pi/agent/skills/repo-ci/SKILL.md
Popularity
- Repository stars
- 33
- Repository forks
- 1
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jal-co/jalco-pi-mono/repo-ci)