isamu/claude/ci-enable
Claude Code and agent skill by isamu/claude
- community
Checking that the SKILL.md file is still in the repository.
Enable CI for a repository - add GitHub Actions workflow, .gitattributes, security alerts (optionally Dependabot updates), create PR, and fix until CI passes. Use when asked to set up CI/GitHub Actions for a repository (CI入れて, ciでできるものは全部, GitHub Actions設定して).
Install
npx vskill@latest install isamu/claude/ci-enableSKILL.md
CI Enable
Set up CI (GitHub Actions) for the current repository. Confirm with user before merging the PR.
Steps
1. Check prerequisites
- Verify
.github/workflows/does not already have a pull_request workflow - If one exists, ask the user how to proceed
2. Fetch template files
Download these two files:
- Workflow:
https://raw.githubusercontent.com/isamu/graphai_agent_template/refs/heads/main/.github/workflows/pull_request.yml - Save to
.github/workflows/pull_request.yml - Gitattributes:
https://raw.githubusercontent.com/isamu/graphai_agent_template/refs/heads/main/.gitattributes - Save to
.gitattributes
If the template URLs are unreachable, generate an equivalent workflow inline (checkout, setup-node, yarn install --frozen-lockfile, then the lint/build/test/format steps from step 3).
3. Adjust workflow steps based on package.json
Read package.json and check which scripts exist. Remove workflow steps that don't have a corresponding script:
| Workflow step | Required package.json script | |
|---|---|---|
yarn lint | lint | |
yarn build | build | |
yarn test | test (also remove if script is just echo "Error: no test specified" && exit 1) | |
yarn format | format |
Only keep steps that have a real corresponding script.
4. Standardize lint in package.json
- Ensure the
lintscript in package.json useseslint(e.g.,eslint ./srcoreslint src) - The workflow will call
yarn lint, so the script must exist and work
5. Fix cross-platform issues in package.json
- Remove single quotes around glob patterns in npm scripts (Windows compatibility)
- e.g.,
prettier --write 'src/**/*.ts'->prettier --write src/**/*.ts - Ensure glob patterns use forward slashes
6. Create branch and PR
Check for a branch-name collision first: if git rev-parse --verify ci succeeds, use ci-2, ci-3, ... instead.
- Add files individually (NEVER
git add .):
``bash git add .github/workflows/pull_request.yml git add .gitattributes git add package.json # only if modified ``
- Commit:
chore: add CI workflow - Push and create PR:
```bash git push -u origin ci gh pr create --title "add ci" --body "$(cat <<'EOF' ## Summary
- Add GitHub Actions CI workflow (lint, build, test, format)
- Add .gitattributes for Windows line ending compatibility
- Adjust scripts for cross-platform support
EOF )" ```
7. Fix CI until it passes
- Wait for CI to run:
gh pr checks <PR_NUMBER> --watch - If CI fails:
- Check the failure logs:
gh run view <RUN_ID> --log-failed - Fix the issue
- Add changed files individually and commit with descriptive message
- Push and repeat until CI passes
- Common fixes:
- Missing dependencies (add with
yarn add -D) - Glob quoting issues on Windows (remove single quotes)
- ESLint config issues (flat config vs legacy)
- Format differences (run
yarn formatand commit)
8. Merge the PR
After CI passes, confirm with the user, then merge with merge commit:
9. Enable security alerts
Enable vulnerability (security) alerts:
Check current status:
10. (Optional) Enable Dependabot
Ask the user first. If they want Dependabot:
- Enable automated security fixes:
``bash gh api -X PUT repos/{owner}/{repo}/automated-security-fixes ``
- Create
.github/dependabot.yml(commit via the same PR flow as above):
```yaml version: 2 updates:
- package-ecosystem: "npm"
directory: "/" schedule: interval: "weekly" ```
Important Rules
- NEVER use
git add .orgit add -A - NEVER use
git push --force - Always use
--merge(not squash) when merging - Confirm with user before merging
- Base the
cibranch onmain
Security
- Security scanPassed, 90 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 repositoryCheckingskills/ci_enable/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/isamu/claude/ci-enable)