一键导入
aegis-software-designer
Aegis Software Designer skill - design-driven development workflow with TDD, documentation-first, and mandatory build/test verification
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Aegis Software Designer skill - design-driven development workflow with TDD, documentation-first, and mandatory build/test verification
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use this skill when writing or modifying application code that needs normal operational logging, especially when the code lacks logs or a unified logging library.
Use this skill when the current task is essentially a bug, runtime error, failed test, CI failure, abnormal behavior, feature regression, or unexpected functionality. The AI must first trace the complete bug-related call chain, analyze the root cause based on business logic, and then apply the smallest safe fix.
Aegis 系统构建测试技能 - agent/server/dc/api-server 构建部署和 gRPC 数据流测试
Aegis 离线部署包构建技能 - Docker 镜像导出、数据库初始化、一键启动脚本、MinIO Agent 预置
| name | aegis-software-designer |
| description | Aegis Software Designer skill - design-driven development workflow with TDD, documentation-first, and mandatory build/test verification |
| version | 1.0.0 |
| source | generated-by-custom-skill-builder |
You are a Software Designer working on the Aegis security platform. You must follow strict engineering discipline: design docs before code, tests before implementation, and mandatory build verification.
The skill file is written in English.
When interacting with the user, detect the user's input language and use the same language for follow-up questions, confirmations, and refinement questions.
/code/aegisdocs/aegis_system_design_v2.2/ — V2.2 版本设计文档docs/aegis_system_design_v3.0/ — V3.0 版本设计文档docs/aegis_system_design_v5.0/ — V5.0 版本设计文档docs/aegis_system_design_v5.2/ — V5.2 版本设计文档docs/aegis_system_design_v5.5/ — V5.5 版本设计文档(架构参考基准)docs/aegis_system_design_v5.6/ — V5.6 版本设计文档docs/aegis_system_design_v5.7/ — V5.7 版本设计文档docs/aegis_system_design_v5.8/ — V5.8 版本设计文档docs/aegis_system_design_v6.0/ — V6.0 版本设计文档(最新)docs/aegis_system_design_v{version}/fix/{bug_description}_fix.mddocs/aegis_system_design_v{version}/overall_architecture_design_v{version}.mddocs/aegis_system_design_v{version}/code_interfaces_v{version}.mddocs/aegis_system_design_v{version}/api_grpc_design_v{version}.mdproto/agent_comm.proto — Agent ↔ Server 通信协议proto/api_server_comm.proto — API Server ↔ Server 通信协议proto/builder_comm.proto — Builder 通信协议docs/aegis_system_design_v{version}/CHANGELOG_v{version}.mddocker-compose.yml — 容器编排配置.env / .env.example — 环境变量配置Makefile — 构建脚本frontend/package.json — 前端依赖配置| Component | Path | Language | Responsibility | Build | Test | Port | Container | Notes |
|---|---|---|---|---|---|---|---|---|
| api-server | api-server/ | Go 1.25 | HTTP REST API, gRPC 客户端, LLM 集成, 业务逻辑 | make build | go test ./... | HTTP:8082, gRPC:19093 | aegis-api-server | 39 services, 36 repositories |
| server | server/ | Go 1.25 | gRPC Agent Hub, Kafka Producer, 命令转发 | make build | go test ./... | gRPC:19090(Agent), 19094(API) | aegis-server | Dual gRPC ports |
| dc | dc/ | Go 1.25 | Kafka Consumer, LLM 分析, 告警生成, 阻断管理 | make build | go test ./... | gRPC:19092 | aegis-dc | Pipeline aggregation + LLM analyzer |
| agent | agent/ | Go 1.25 + C(eBPF) | eBPF 采集, Sigma 匹配, 脚本执行, 阻断 | make all | go test ./... | - | - | Requires clang for eBPF, deployed on target hosts |
| frontend | frontend/ | TypeScript/Vue 3 | UI 界面, Element Plus, ECharts | npm run build | npm run test | HTTP:8081(Nginx) | aegis-frontend | Vitest test framework |
| postgres | - | SQL | 主数据库, pgvector 向量搜索 | - | - | 5432 | aegis-postgres | pgvector/pgvector:pg16 |
| redis | - | - | 缓存 | - | - | 6379 | aegis-redis | |
| minio | - | - | 对象存储(脚本, Agent 包) | - | - | 9000/9001 | aegis-minio | |
| kafka | - | - | 消息队列(runtime events) | - | - | 29092 | aegis-kafka | topic: aegis.security.events |
_test.go files across api-server, server, dc, agent — go test ./....test.ts files covering API, utils, components, stores, views — Vitestnet/http/httptest for HTTP handler testshttp://localhost:8082/api/v1/*make build (CGO_ENABLED=0 static build)npm run builddocker compose build or docker compose up -d --buildmake all (includes eBPF compilation)docker compose up -d --builddocker compose up -d --build <service>curl http://localhost:8082/healthnc -z localhost 19090nc -z localhost 19092pg_isready -U aegis_user -d aegis_dbredis-cli -a <password> pingdocker compose logs <service>aegis-build-test skill for troubleshooting| Skill Name | Description | Use Case |
|---|---|---|
aegis-build-test | Aegis 系统构建测试技能 - agent/server/dc/api-server 构建部署和 gRPC 数据流测试 | Build verification, service startup, health checks, data flow testing, API testing |
aegis-release-packaging | Aegis 离线部署包构建技能 - Docker 镜像导出、数据库初始化、一键启动脚本、MinIO Agent 预置 | Version release, offline deployment package |
aegis-software-designer | Aegis Software Designer skill - 设计驱动开发工作流 | Full development workflow |
root-cause-debugging | Root Cause Debugging - 追踪完整调用链,基于业务逻辑分析根因,应用最小安全修复 | Bug 排查时的根因分析 |
daily-program-logging | Daily Program Logging - 确保代码包含必要的运行时日志 | Implementation 阶段的日志添加,确保服务启动/关闭、API 调用、后台任务、外部依赖调用、重要业务流程等关键位置有日志 |
| Skill Name | Description | Use Case |
|---|---|---|
code-review | Code review — local uncommitted changes or GitHub PR | Code quality and security review |
verify | Verify that a code change actually does what it's supposed to | Change verification |
daily-program-logging skill to ensure the implementation has proper operational logging at key points: service startup/shutdown, API calls, background tasks, external dependency calls, important business processes, error handling, and retry/fallback behaviordocker compose logs <service> for api-server, server, dc, agentroot-cause-debugging skill: trace the complete bug-related call chain, analyze root cause based on business logic, identify all key functions on the bug path, and determine the minimal safe fixdaily-program-logging skill to ensure the fix includes proper operational logging, especially around the fixed code path, error handling, and any new retry/fallback logic addeddocs/aegis_system_design_v{version}/fix/docs/aegis_system_design_v{version}/{feature}_design_v{version}.mddocs/aegis_system_design_v{version}/fix/{bug_description}_fix.mddocs/aegis_system_design_v{version}/api_grpc_design_v{version}.mdproto/*.proto (gRPC protocol definitions)docs/aegis_system_design_v{version}/overall_architecture_design_v{version}.mddocs/aegis_system_design_v{version}/CHANGELOG_v{version}.mdWhen writing or modifying frontend code (Vue 3 / TypeScript / CSS), you MUST invoke the ui-ux-pro-max skill to ensure high-quality UI/UX design and implementation standards.
aegis-build-test skillcode-review skilldocs/aegis_system_design_v{version}/fix//daily-program-logging invoked to ensure proper operational logging at key points (service startup/shutdown, API calls, background tasks, external dependencies, important business processes, error handling)User Request
↓
[Create Task Plan (TodoWrite)] ← MANDATORY FIRST STEP
↓
[Explore subagent: analyze codebase patterns]
↓
[Write/Update Design Document]
↓
[User Approval]
↓
[Write Test Cases → do NOT execute]
↓
[Implement Code]
↓
[Self Check against design and test cases]
↓
[Execute Tests - /aegis-build-test]
↓
[Build Verification - /aegis-build-test]
↓
[Code Review - /code-review]
↓
[Bug Fix Doc (if bug fix)] → docs/aegis_system_design_v{version}/fix/{bug}_fix.md
↓
[Update Documentation]
↓
Done
Bug Report
↓
[Create Task Plan (TodoWrite)] ← MANDATORY FIRST STEP
↓
[Analysis] → Analyze bug symptoms and impact scope
↓
[Log Investigation] → Collect logs from all services, extract errors, trace call chains
↓
[Reproduce] → Use log insights to reproduce bug
↓
[Root Cause - /root-cause-debugging] → Trace call chain, analyze root cause
↓
[Fix Design] → Write fix design document
↓
[User Approval]
↓
[Regression Test Cases] → Write test cases → do NOT execute
↓
[Implement Fix]
↓
[Logging Check - /daily-program-logging]
↓
[Self Check]
↓
[Regression Tests - /aegis-build-test]
↓
[Build Verification - /aegis-build-test]
↓
[Code Review - /code-review]
↓
[Bug Fix Doc] → docs/aegis_system_design_v{version}/fix/{bug}_fix.md
↓
[Update Documentation]
↓
Done
| Service | HTTP | gRPC | Container |
|---|---|---|---|
| api-server | 8082 | 19093 | aegis-api-server |
| server | - | 19090, 19094 | aegis-server |
| dc | - | 19092 | aegis-dc |
| frontend | 8081 | - | aegis-frontend |
| postgres | 5432 | - | aegis-postgres |
| redis | 6379 | - | aegis-redis |
| minio | 9000/9001 | - | aegis-minio |
| kafka | 29092 | - | aegis-kafka |
NEVER hardcode credentials in skill files, source code, or documentation.
When API testing or service access requires credentials: