Cicd Git Deployment
Cicd Git Deployment is an code AI skill with a core value of Git workflows, branching strategies, GitHub Actions, Vercel/Netlify deployment, GitHub Pages with custom domains, Capacitor native builds, and release versioning. It
helps developers solve real-world problems in the code domain, boosting
efficiency, automating repetitive tasks, and optimizing workflows.
Git workflows, branching strategies, GitHub Actions, Vercel/Netlify deployment, GitHub Pages with custom domains, Capacitor native builds, and release versioning.
Quick Facts
mkdir -p ./skills/cicd-git-deployment && curl -sfL https://raw.githubusercontent.com/mayurrathi/awesome-agent-skills/main/skills/cicd-git-deployment/SKILL.md -o ./skills/cicd-git-deployment/SKILL.md Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).
Skill Content
# 2.4.1 Cicd Git Deployment
This skill defines the standard workflows for version control, continuous integration, deployment automation, and native app packaging across all projects.
1. Git Workflow & Branching Strategy
**Goal:** Clean, traceable history with minimal merge conflicts.
* **Branch Model:** Use a simplified trunk-based workflow:
- `main` — production-ready code. Protected branch with required status checks.
- `dev` — integration branch for active development. Merge to `main` via PR when stable.
- Feature branches: `feature/<short-name>` branched from `dev`. Short-lived (< 3 days).
- Hotfix branches: `hotfix/<issue-id>` branched from `main`. Merge back to both `main` and `dev`.
* **Commit Convention:** Follow Conventional Commits (`feat:`, `fix:`, `chore:`, `docs:`, `refactor:`, `perf:`, `test:`). Keep subject lines under 72 characters.
* **PR Discipline:** Every PR must have a description, link to any relevant issue, and pass all CI checks before merge. Squash-merge feature branches to keep `main` history clean.
2. GitHub Repository Setup
**Goal:** Consistent repository configuration across all projects.
* **`.gitignore`:** Include standard ignores for: `node_modules/`, `dist/`, `.env`, `.env.local`, `.DS_Store`, `*.log`, IDE configs (`.vscode/`, `.idea/`), and platform builds (`android/`, `ios/` if generated).
* **`README.md`:** Every repository must have: project name, one-line description, tech stack badges, setup instructions, available scripts, deployment URL, and license.
* **Branch Protection:** Enable on `main`: require PR reviews, require status checks to pass, disable force-push, enable auto-delete of head branches after merge.
* **Secrets Management:** Store API keys, Firebase configs, and deployment tokens in GitHub Settings → Secrets and variables → Actions. Never commit secrets to code.
3. GitHub Actions CI Pipeline
**Goal:** Automated quality gates on every push and PR.
* **Lint & Format Check:** Run ESLint and Prettier on all JS/TS/CSS files. Fail the build on any violations.
* **Build Verification:** Run `npm run build` to ensure the production bundle compiles without errors.
* **Unit Tests:** Run `npm test` if test suites exist. Report coverage.
* **Lighthouse CI:** Run Lighthouse against the built output for PWA, performance, accessibility, and SEO scores. Set score thresholds.
* **Workflow File:** Store in `.github/workflows/ci.yml`. Trigger on `push` to `main`/`dev` and on `pull_request`.
4. Deployment Targets
4a. Vercel (Primary for Web Apps)
* **Auto-Deploy:** Connect GitHub repo to Vercel. Configure `main` branch for Production deployment, `dev` for Preview.
* **Environment Variables:** Set Firebase/API keys in Vercel Project Settings → Environment Variables. Scope to Production/Preview/Development as needed.
* **Build Settings:** Framework preset: Vite. Build command: `npm run build`. Output directory: `dist`.
* **Custom Domains:** Add custom domain in Vercel Dashboard. Configure DNS CNAME record pointing to `cname.vercel-dns.com`.
4b. GitHub Pages (For Static Sites & Portals)
* **Configuration:** Enable in Settings → Pages. Source: Deploy from a branch (`main`, `/root` or `/docs`).
* **Custom Domain:** Add `CNAME` file to the repository root with the custom domain. Configure DNS A records (185.199.108-111.153) or CNAME to `<user>.github.io`.
* **HTTPS:** Enforce HTTPS in repository settings after DNS propagation is complete.
4c. Firebase Hosting (For Firebase-Integrated Apps)
* **Setup:** `firebase init hosting`. Set public directory to `dist`. Configure rewrites for SPA (`"source": "**", "destination": "/index.html"`).
* **Deploy:** `firebase deploy --only hosting`. Use `--project` flag for multi-environment setups.
5. Capacitor Native Builds
**Goal:** Package web apps as native Android & iOS apps.
* **Initialization:** `npx cap init <AppName> <AppID>`. Add platforms: `npx cap add android`, `
🎯 Best For
- UI designers
- Product designers
- Claude users
- Software engineers
- Development teams
💡 Use Cases
- Generating component mockups
- Creating design system tokens
- Code quality improvement
- Best practice enforcement
📖 How to Use This Skill
- 1
Install the Skill
Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.
- 2
Load into Your AI Assistant
Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.
- 3
Apply Cicd Git Deployment to Your Work
Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.
- 4
Review and Refine
Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.
❓ Frequently Asked Questions
Does this work with Figma?
Some design skills integrate with Figma plugins. Check the Works With section for supported tools.
Is Cicd Git Deployment compatible with Cursor and VS Code?
Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.
Do I need specific dependencies for Cicd Git Deployment?
Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.
How do I install Cicd Git Deployment?
Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/cicd-git-deployment/SKILL.md, ready to use.
Can I customize this skill for my team?
Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.
⚠️ Common Mistakes to Avoid
Skipping usability testing
AI-generated designs should be validated with real users before development.
Skipping validation
Always test AI-generated code changes, even for simple refactors.
Missing dependency updates
Check if the skill requires updated dependencies or new packages.