WW

waqasahmedwaseer/whmcs-dev-skills

Developer tools
19 stars Quality 61 Trend 22GPL-2.0

WHMCS Dev Skills: AI agent skill for WHMCS module development

Overview

🧠 WHMCS Dev Skills AI Agent Skill for WHMCS Module Development An industrial-grade skill file that turns any AI coding agent into a Senior WHMCS Developer & Architect . Quick Install • What It Covers • IDE Setup • Compatible Agents • Contributing That's it. The skill installs to the right location for your agent automatically. This repository contains a file — a comprehensive instruction set designed for AI coding agents. When loaded, it transforms the AI into a that writes production-ready, secure, and maintainable code following WHMCS 8.x / 9.x best practices. The skill follows the — the universal open standard for AI agent skills — making it compatible with every major AI coding agent. - 🔒 — Forces Capsule ORM, CSRF protection, credential scrubbing - 🆕 — Covers Smarty v4, Illuminate v9, PHP 8.

README

🧠 WHMCS Dev Skills AI Agent Skill for WHMCS Module Development

An industrial-grade skill file that turns any AI coding agent into a Senior WHMCS Developer & Architect.

Quick Install • What It Covers • IDE Setup • Compatible Agents • Contributing


⚡ Quick Install

npx ai-agent-skills install whmcs-dev-skills

That’s it. The skill installs to the right location for your agent automatically.

Install for a Specific Agent

# Claude Code (default)
npx ai-agent-skills install whmcs-dev-skills

# Cursor IDE
npx ai-agent-skills install whmcs-dev-skills --agent cursor

# VS Code / GitHub Copilot
npx ai-agent-skills install whmcs-dev-skills --agent vscode

# Windsurf
npx ai-agent-skills install whmcs-dev-skills --agent windsurf

# Amp
npx ai-agent-skills install whmcs-dev-skills --agent amp

# Goose
npx ai-agent-skills install whmcs-dev-skills --agent goose

# OpenCode
npx ai-agent-skills install whmcs-dev-skills --agent opencode

# Any project (generic)
npx ai-agent-skills install whmcs-dev-skills --agent project

Manual Install

# Clone the repository
git clone https://github.com/waqasahmedwaseer/whmcs-dev-skills.git

# Then copy to your agent's skills directory (see IDE Setup below)

📖 What Is This?

This repository contains a SKILL.md file — a comprehensive instruction set designed for AI coding agents. When loaded, it transforms the AI into a WHMCS expert that writes production-ready, secure, and maintainable code following WHMCS 8.x / 9.x best practices.

The skill follows the Agent Skills Specification — the universal open standard for AI agent skills — making it compatible with every major AI coding agent.


✨ What It Covers

Area Details
🔌 Addon Modules Config, activate, deactivate, upgrade, admin & client area output
🖥️ Provisioning Modules Create, suspend, unsuspend, terminate, renew, change package, usage updates
🌐 Domain Registrars Register, transfer, renew, sync, nameservers, WHOIS, DNS, EPP codes
💳 Payment Gateways Third-party, merchant, tokenised gateways, callbacks, refunds
🪝 Action Hooks All hook categories with 25+ quick-reference hook points
🔗 API Integration Internal API (localAPI) + External API (GuzzleHTTP) patterns
🗄️ Database Operations Laravel Capsule ORM patterns, schema creation, migrations
🎨 Templating & UI Smarty v4, native Bootstrap classes, admin & client templates
🔒 Security 13-point checklist: CSRF, binding, encryption, scrubbing, logging
🐛 Error Handling logModuleCall, logActivity, error return patterns
⚠️ Common Pitfalls 16+ documented anti-patterns with fixes
📁 Project Structures Templates for all 4 module types
📝 Code Snippets Production-ready snippets for security guards, hooks, language files

Key Highlights

  • 🔒 Security-first — Forces Capsule ORM, CSRF protection, credential scrubbing
  • 🆕 WHMCS 9.x ready — Covers Smarty v4, Illuminate v9, PHP 8.2+ breaking changes
  • 📋 Production-ready code — Every template is battle-tested, not hello-world
  • ⚠️ Anti-pattern protection — 16+ real-world failures developers actually make
  • 📁 Proper structure — Directory templates matching official WHMCS samples

🤖 Compatible Agents

This skill works with every major AI coding agent that supports the Agent Skills specification:

Agent Skills Directory Install Flag
Claude Code ~/.claude/skills/ --agent claude (default)
GitHub Copilot .github/skills/ --agent vscode
Cursor .cursor/skills/ --agent cursor
Windsurf .windsurf/skills/ --agent windsurf
Amp ~/.amp/skills/ --agent amp
Goose ~/.config/goose/skills/ --agent goose
OpenCode ~/.opencode/skills/ --agent opencode
Any Project .skills/ --agent project

🛠️ IDE Setup Guides

Claude Code

# Option 1: npx (recommended)
npx ai-agent-skills install whmcs-dev-skills

# Option 2: Manual
mkdir -p ~/.claude/skills/whmcs-dev-skills
cp SKILL.md ~/.claude/skills/whmcs-dev-skills/

The skill is automatically available in all Claude Code sessions.


GitHub Copilot (VS Code)

GitHub Copilot uses .github/copilot-instructions.md for repository-level instructions, and .github/skills/ for skill files.

# Option 1: npx
npx ai-agent-skills install whmcs-dev-skills --agent vscode

# Option 2: Manual — As a skill file
mkdir -p .github/skills/whmcs-dev-skills
cp SKILL.md .github/skills/whmcs-dev-skills/

# Option 3: Manual — As copilot instructions
# Copy the contents of SKILL.md into .github/copilot-instructions.md
cp SKILL.md .github/copilot-instructions.md

Tip: After adding the file, open VS Code, and Copilot will automatically apply these instructions to all suggestions in the repository.


Cursor IDE

Cursor supports skills in .cursor/skills/ (project-level) or ~/.cursor/skills/ (global).

# Option 1: npx
npx ai-agent-skills install whmcs-dev-skills --agent cursor

# Option 2: Manual — Project-level (recommended)
mkdir -p .cursor/skills/whmcs-dev-skills
cp SKILL.md .cursor/skills/whmcs-dev-skills/

# Option 3: Manual — Global (applies to all projects)
mkdir -p ~/.cursor/skills/whmcs-dev-skills
cp SKILL.md ~/.cursor/skills/whmcs-dev-skills/

# Option 4: As a Cursor Rule (.mdc format)
mkdir -p .cursor/rules
cp SKILL.md .cursor/rules/whmcs-dev-skills.mdc

Tip: You can also import directly via Cursor Settings → Rules, Commands → Add Rule → Remote Rule (GitHub) and point it to this repo.


Windsurf (Codeium)

Windsurf uses .windsurfrules for project rules and global_rules.md for global rules.

# Option 1: npx
npx ai-agent-skills install whmcs-dev-skills --agent windsurf

# Option 2: Manual — Project-level
mkdir -p .windsurf/rules
cp SKILL.md .windsurf/rules/whmcs-dev-skills.md

# Option 3: Manual — As project rules
cp SKILL.md .windsurfrules

# Option 4: Manual — Global rules
# Append to: ~/.codeium/windsurf/memories/global_rules.md
cat SKILL.md >> ~/.codeium/windsurf/memories/global_rules.md

Gemini (Google AI)

For Gemini-powered agents and Google’s AI tools:

# Project-level skill
mkdir -p .gemini/skills/whmcs-dev-skills
cp SKILL.md .gemini/skills/whmcs-dev-skills/

# Or as agent instructions
mkdir -p .agent/skills
cp SKILL.md .agent/skills/whmcs-dev-skills.md

Amp

# Option 1: npx
npx ai-agent-skills install whmcs-dev-skills --agent amp

# Option 2: Manual
mkdir -p ~/.amp/skills/whmcs-dev-skills
cp SKILL.md ~/.amp/skills/whmcs-dev-skills/

Any Other Agent

For any agent that supports the Agent Skills spec:

# Project-level (works with any agent)
mkdir -p .skills/whmcs-dev-skills
cp SKILL.md .skills/whmcs-dev-skills/

Or simply place the SKILL.md file in whatever directory your agent reads skill/instruction files from.


📁 Repository Structure

whmcs-dev-skills/
├── SKILL.md        # 📘 The comprehensive 1,600-line AI agent skill file
├── README.md       # 📖 This file — documentation & install guide
├── LICENSE         # ⚖️  GPL-2.0 License
└── .gitignore      # 🙈 Git ignore rules

🔬 Research-Backed

This skill file was built from deep research of:


❓ FAQ


🤝 Contributing

Contributions are welcome! Whether it’s fixing a typo, adding a new hook point, or documenting another anti-pattern:

  1. Fork this repository
  2. Create a feature branch: git checkout -b feature/awesome-improvement
  3. Make your changes to SKILL.md
  4. Commit: git commit -m "feat: add awesome improvement"
  5. Push: git push origin feature/awesome-improvement
  6. Open a Pull Request

Contribution Ideas

  • 📝 Add more WHMCS 9.x breaking changes as they’re discovered
  • 🪝 Document additional hook points with examples
  • 🔒 Add more security best practices
  • 🐛 Document common bugs and their fixes
  • 🌍 Add non-English language file examples

⭐ Star History

If this skill saved you time building WHMCS modules, please give it a ⭐!


📄 License

This project is licensed under the GNU GPL v2.0.


👤 Author


Built with ❤️ for the WHMCS developer community

If this helped you, consider giving it a ⭐ on GitHub!

View the full README on GitHub

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add waqasahmedwaseer/whmcs-dev-skills
New to MCP? Start with the mcpskill.org guide →