.claude/skills/AGI-FARM-PLUGIN/SKILL.md
```markdown # AGI-FARM-PLUGIN Development Patterns > Auto-generated skill from repository analysis ## Overview This skill covers development patterns for the AGI-FARM-PLUGIN, an Express.js-based plugin system with a React dashboard interface. The codebase follows a structured approach combining backend API development with frontend dashboard components, featuring server-sent events for real-time updates and a comprehensive build system for dashboard distribution. ## Coding Conventions ### F
npx skillsauth add oabdelmaksoud/agi-farm-plugin .claude/skills/AGI-FARM-PLUGINInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
# AGI-FARM-PLUGIN Development Patterns
> Auto-generated skill from repository analysis
## Overview
This skill covers development patterns for the AGI-FARM-PLUGIN, an Express.js-based plugin system with a React dashboard interface. The codebase follows a structured approach combining backend API development with frontend dashboard components, featuring server-sent events for real-time updates and a comprehensive build system for dashboard distribution.
## Coding Conventions
### File Naming
- Use **camelCase** for all file names
- Test files follow the pattern `*.test.js`
- Component files use `.jsx` extension for React components
- Service files are organized in `server/services/`
### Import/Export Style
```javascript
// Mixed import styles - adapt to context
import express from 'express';
const { someUtil } = require('../utils');
// Default exports preferred
export default MyComponent;
module.exports = myService;
feat:, fix:, docs:, chore:, release:feat: add new dashboard tab for system monitoring
fix: resolve security vulnerability in API validation
docs: update README with new installation steps
Trigger: When preparing a new release
Command: /release-version
package.jsonopenclaw.plugin.jsonCHANGELOG.md with release notes and new featuresdashboard-react/package.json versionpackage-lock.json is updated// package.json
{
"version": "2.1.0"
}
// openclaw.plugin.json
{
"version": "2.1.0"
}
Trigger: After modifying React dashboard components
Command: /rebuild-dashboard
dashboard-react/src/dashboard-dist/assets/*.js and *.css with new bundled filesdashboard-dist/index.html with new asset references# Typical build commands
cd dashboard-react
npm run build
# Copy build output to dashboard-dist/
Trigger: When adding new dashboard functionality
Command: /add-api-endpoint
server/dashboard.jsserver/services/dashboard-react/src/lib/api.js// server/dashboard.js
app.get('/api/new-feature', async (req, res) => {
const data = await newFeatureService.getData();
res.json(data);
});
// dashboard-react/src/lib/api.js
export const fetchNewFeatureData = () => {
return fetch('/api/new-feature').then(r => r.json());
};
Trigger: When security issues are discovered during code review
Command: /fix-security-issue
server/dashboard.js with validation fixes// Example security fix
app.post('/api/action', (req, res) => {
// Add input validation
if (!req.body.param || typeof req.body.param !== 'string') {
return res.status(400).json({ error: 'Invalid input' });
}
// Sanitize input
const cleanParam = sanitize(req.body.param);
// Process securely...
});
Trigger: After adding new features or making significant changes
Command: /update-docs
README.md with new features sectionCHANGELOG.md with detailed changes and breaking changespackage.json if scope changedTrigger: When adding new dashboard functionality
Command: /add-dashboard-tab
dashboard-react/src/components/tabs/dashboard-react/src/App.jsxserver/dashboard.jsdashboard-dist/ with new component// dashboard-react/src/components/tabs/NewTab.jsx
import React from 'react';
const NewTab = ({ data }) => {
return (
<div className="tab-content">
{/* Tab implementation */}
</div>
);
};
export default NewTab;
// dashboard-react/src/App.jsx
import NewTab from './components/tabs/NewTab';
// Add to tabs array
const tabs = [
// ... existing tabs
{ id: 'newtab', label: 'New Feature', component: NewTab }
];
Trigger: When syncing with upstream ECC repository
Command: /sync-ecc-resources
ecc-resources/ directory with new files from upstreamECC_VERSION tracking file with new versiontemplates/ to include new ECC sectionsconfig/ecc-mappings.json// ecc-resources/ECC_VERSION
v2.1.0-20240115
// Update templates to reference new resources
## ECC Integration
This plugin now supports ECC v2.1.0 features including:
- New resource templates
- Enhanced mappings
*.test.js patterntests/ directory// example.test.js
describe('API Endpoint Tests', () => {
test('should return valid data', async () => {
const response = await request(app)
.get('/api/endpoint')
.expect(200);
expect(response.body).toHaveProperty('data');
});
});
| Command | Purpose |
|---------|---------|
| /release-version | Update version across all package files and generate changelog |
| /rebuild-dashboard | Rebuild React dashboard distribution after UI changes |
| /add-api-endpoint | Create new API endpoint with frontend integration |
| /fix-security-issue | Address security vulnerabilities with proper validation |
| /update-docs | Update README and documentation with new features |
| /add-dashboard-tab | Create new dashboard tab with full integration |
| /sync-ecc-resources | Update ECC resources from upstream repository |
development
Interactive setup wizard that creates a fully working multi-agent AI team on OpenClaw. One command bootstraps agents, SOUL.md personas, comms infrastructure (inboxes/outboxes/broadcast), cron jobs, auto-dispatcher (HITL + rate-limit backoff + dependency checking), and a portable GitHub bundle — all customized to team name, size (3/5/11 agents), domain, and frameworks (autogen/crewai/langgraph). Includes a React + SSE live ops dashboard with file-watcher (~350ms push latency) and persistent macOS LaunchAgent. Model-selection guidance built in. Commands: setup | status | rebuild | export | dashboard | dispatch
documentation
Translate visa application documents (images) to English and create a bilingual PDF with original and translation
development
A comprehensive verification system for Claude Code sessions.
development
Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.