Initial commit
This commit is contained in:
17
.claude-plugin/plugin.json
Normal file
17
.claude-plugin/plugin.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "web-development",
|
||||
"description": "Web全栈开发 - 前端/后端/DevOps",
|
||||
"version": "1.0.0",
|
||||
"author": "743175724",
|
||||
"skills": [
|
||||
"./plugins/web-development/skills/rest-api-design.md"
|
||||
],
|
||||
"agents": [
|
||||
"./plugins/web-development/agents/frontend-engineer.md",
|
||||
"./plugins/web-development/agents/backend-engineer.md",
|
||||
"./plugins/web-development/agents/devops-sre.md"
|
||||
],
|
||||
"commands": [
|
||||
"./plugins/web-development/commands/create-api-endpoint.md"
|
||||
]
|
||||
}
|
||||
61
plugin.lock.json
Normal file
61
plugin.lock.json
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"$schema": "internal://schemas/plugin.lock.v1.json",
|
||||
"pluginId": "gh:743175724/agents-project:plugins/web-development",
|
||||
"normalized": {
|
||||
"repo": null,
|
||||
"ref": "refs/tags/v20251128.0",
|
||||
"commit": "eb2569290352f88c53c0d40beac0bc36afd6b12d",
|
||||
"treeHash": "2d1e67db86edb638ab29980a0c18d4be309d83da3098a30dd7820c085bb06800",
|
||||
"generatedAt": "2025-11-28T10:24:44.570281Z",
|
||||
"toolVersion": "publish_plugins.py@0.2.0"
|
||||
},
|
||||
"origin": {
|
||||
"remote": "git@github.com:zhongweili/42plugin-data.git",
|
||||
"branch": "master",
|
||||
"commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390",
|
||||
"repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data"
|
||||
},
|
||||
"manifest": {
|
||||
"name": "web-development",
|
||||
"description": "Web全栈开发 - 前端/后端/DevOps",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"content": {
|
||||
"files": [
|
||||
{
|
||||
"path": "README.md",
|
||||
"sha256": "044bc2c8e1d46cd45c9aafea3772e569bff2a93991b410c4e4f0feb780c95392"
|
||||
},
|
||||
{
|
||||
"path": "plugins/web-development/agents/devops-sre.md",
|
||||
"sha256": "9ee0bb667c23381299e0313bec09d0360f7014a83d48a6ed46e3072933ed1d19"
|
||||
},
|
||||
{
|
||||
"path": "plugins/web-development/agents/frontend-engineer.md",
|
||||
"sha256": "e8524d99871d76c35bf91fc7e9d37147282eca60d0ddee99ad6d1c075b75b482"
|
||||
},
|
||||
{
|
||||
"path": "plugins/web-development/agents/backend-engineer.md",
|
||||
"sha256": "59e4c43219fb47c1bd97f038541f7d5552a394d6272895049c6b839016265bcc"
|
||||
},
|
||||
{
|
||||
"path": "plugins/web-development/commands/create-api-endpoint.md",
|
||||
"sha256": "e0b13032808387fd9b2859eed898d53d763c7a24566873bca6807bf922aaf973"
|
||||
},
|
||||
{
|
||||
"path": "plugins/web-development/skills/rest-api-design.md",
|
||||
"sha256": "97561e577e7490e8c850feefb1622e1df92417079d4777ba6d936890b279a20c"
|
||||
},
|
||||
{
|
||||
"path": ".claude-plugin/plugin.json",
|
||||
"sha256": "b328e4bb7744051f1add67a7f4f03c17dfba5b15f762a3a2b6ced0304bc5c5d0"
|
||||
}
|
||||
],
|
||||
"dirSha256": "2d1e67db86edb638ab29980a0c18d4be309d83da3098a30dd7820c085bb06800"
|
||||
},
|
||||
"security": {
|
||||
"scannedAt": null,
|
||||
"scannerVersion": null,
|
||||
"flags": []
|
||||
}
|
||||
}
|
||||
33
plugins/web-development/agents/backend-engineer.md
Normal file
33
plugins/web-development/agents/backend-engineer.md
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
name: 后端工程师
|
||||
description: API开发、数据库设计
|
||||
category: web-dev
|
||||
version: 1.0.0
|
||||
---
|
||||
|
||||
# 后端工程师(Backend Engineer)
|
||||
|
||||
## 角色定位
|
||||
开发后端API、数据库设计、业务逻辑实现。
|
||||
|
||||
## 核心职责
|
||||
- RESTful / GraphQL API
|
||||
- 数据库设计(PostgreSQL/MySQL/Redis)
|
||||
- 认证授权(JWT/OAuth2)
|
||||
- 日志和监控
|
||||
- 性能优化和缓存
|
||||
|
||||
## 核心技能
|
||||
- Go / Node.js / Python
|
||||
- SQL / NoSQL
|
||||
- Docker / Kubernetes
|
||||
- Redis缓存
|
||||
- 消息队列(RabbitMQ/Kafka)
|
||||
|
||||
## 绩效指标
|
||||
- API响应 <100ms (P95)
|
||||
- 可用性 ≥99.9%
|
||||
- QPS ≥10,000
|
||||
|
||||
---
|
||||
**版本**:v1.0
|
||||
33
plugins/web-development/agents/devops-sre.md
Normal file
33
plugins/web-development/agents/devops-sre.md
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
name: DevOps/SRE工程师
|
||||
description: CI/CD、容器化、监控运维
|
||||
category: web-dev
|
||||
version: 1.0.0
|
||||
---
|
||||
|
||||
# DevOps / SRE工程师
|
||||
|
||||
## 角色定位
|
||||
负责CI/CD、基础设施、监控和运维自动化。
|
||||
|
||||
## 核心职责
|
||||
- CI/CD流水线
|
||||
- 容器化和编排(Docker/K8s)
|
||||
- 监控和告警(Prometheus/Grafana)
|
||||
- 日志聚合(ELK/Loki)
|
||||
- 灰度发布和回滚
|
||||
|
||||
## 核心技能
|
||||
- Kubernetes
|
||||
- Terraform / Ansible
|
||||
- Jenkins / GitHub Actions
|
||||
- Linux系统管理
|
||||
- Shell / Python脚本
|
||||
|
||||
## 绩效指标
|
||||
- MTTR <30分钟
|
||||
- 部署频率 ≥每天1次
|
||||
- 发布成功率 ≥99%
|
||||
|
||||
---
|
||||
**版本**:v1.0
|
||||
34
plugins/web-development/agents/frontend-engineer.md
Normal file
34
plugins/web-development/agents/frontend-engineer.md
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
name: 前端工程师
|
||||
description: React/Vue开发
|
||||
category: web-dev
|
||||
version: 1.0.0
|
||||
---
|
||||
|
||||
# 前端工程师(Frontend Engineer)
|
||||
|
||||
## 角色定位
|
||||
开发Web管理后台、控制面板和数据可视化界面。
|
||||
|
||||
## 核心职责
|
||||
- React/Vue组件开发
|
||||
- 状态管理(Redux/Pinia)
|
||||
- RESTful API集成
|
||||
- 响应式设计
|
||||
- 性能优化
|
||||
|
||||
## 核心技能
|
||||
- React 18+ / Vue 3+
|
||||
- TypeScript
|
||||
- Tailwind CSS / Ant Design
|
||||
- Vite / Webpack
|
||||
- Axios / Fetch API
|
||||
|
||||
## 绩效指标
|
||||
- FCP <1.5s
|
||||
- TTI <3s
|
||||
- 错误率 <0.2%
|
||||
- Lighthouse评分 ≥90
|
||||
|
||||
---
|
||||
**版本**:v1.0
|
||||
22
plugins/web-development/commands/create-api-endpoint.md
Normal file
22
plugins/web-development/commands/create-api-endpoint.md
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
description: Create a new REST API endpoint
|
||||
---
|
||||
|
||||
# Create API Endpoint Command
|
||||
|
||||
Generate a new RESTful API endpoint with boilerplate code.
|
||||
|
||||
## Example (Go)
|
||||
```go
|
||||
// routes.go
|
||||
func SetupRoutes(r *gin.Engine) {
|
||||
api := r.Group("/api/v1")
|
||||
{
|
||||
api.GET("/users", GetUsers)
|
||||
api.POST("/users", CreateUser)
|
||||
api.GET("/users/:id", GetUser)
|
||||
api.PUT("/users/:id", UpdateUser)
|
||||
api.DELETE("/users/:id", DeleteUser)
|
||||
}
|
||||
}
|
||||
```
|
||||
67
plugins/web-development/skills/rest-api-design.md
Normal file
67
plugins/web-development/skills/rest-api-design.md
Normal file
@@ -0,0 +1,67 @@
|
||||
---
|
||||
name: REST API设计
|
||||
description: RESTful接口设计原则
|
||||
version: 1.0.0
|
||||
---
|
||||
|
||||
# RESTful API Design Principles
|
||||
|
||||
## Resource Naming
|
||||
```
|
||||
GET /api/v1/users # List users
|
||||
POST /api/v1/users # Create user
|
||||
GET /api/v1/users/:id # Get user
|
||||
PUT /api/v1/users/:id # Update user
|
||||
DELETE /api/v1/users/:id # Delete user
|
||||
|
||||
# Nested resources
|
||||
GET /api/v1/users/:id/posts
|
||||
```
|
||||
|
||||
## HTTP Status Codes
|
||||
- 200 OK: Success
|
||||
- 201 Created: Resource created
|
||||
- 204 No Content: Success, no body
|
||||
- 400 Bad Request: Invalid input
|
||||
- 401 Unauthorized: Not authenticated
|
||||
- 403 Forbidden: Authenticated but no permission
|
||||
- 404 Not Found: Resource doesn't exist
|
||||
- 500 Internal Server Error: Server error
|
||||
|
||||
## Response Format
|
||||
```json
|
||||
{
|
||||
"code": 200,
|
||||
"message": "success",
|
||||
"data": {
|
||||
"id": 123,
|
||||
"name": "John Doe"
|
||||
},
|
||||
"meta": {
|
||||
"page": 1,
|
||||
"total": 100
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Error Handling
|
||||
```json
|
||||
{
|
||||
"code": 400,
|
||||
"message": "Validation failed",
|
||||
"errors": [
|
||||
{
|
||||
"field": "email",
|
||||
"message": "Invalid email format"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Best Practices
|
||||
- Use nouns, not verbs in URLs
|
||||
- Version your API (/v1/, /v2/)
|
||||
- Use query parameters for filtering/sorting
|
||||
- Implement pagination
|
||||
- Support ETag for caching
|
||||
- Document with OpenAPI/Swagger
|
||||
Reference in New Issue
Block a user