一键导入
audit-agents
Enforces decentralized task management, UI/UX design strictness, and global state constraints within AGENTS.md.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Enforces decentralized task management, UI/UX design strictness, and global state constraints within AGENTS.md.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | audit-agents |
| description | Enforces decentralized task management, UI/UX design strictness, and global state constraints within AGENTS.md. |
The AGENTS.md file MUST explicitly contain the following operational constraints, ideally within a Task Management & OpenCode Rules section:
AGENTS.md first before any execution. Inside it, it must route the agent to read DESIGN.md, docs/architecture.md, docs/data_model.md, and docs/conventions.md first.AGENTS.md, DESIGN.md, tasks/, and .opencode/skills/.tasks/ directory as their single source of truth.TODO.md or STATE.md.git add, git commit, or git stash manually during implementation.custom_context_stage_and_inject_diff MCP tool (NO COMMITS ALLOWED). 4) Notify the Manager.DESIGN.md.AGENTS.md MUST explicitly instruct OpenCode to load the task-generator skill before creating new task files.AGENTS.md MUST explicitly instruct OpenCode to load every available skill matching the project's tech stack before task implementation.debug-instrumentation skill.architecture.md Template# Architecture Overview
This document serves as a critical, living template designed to equip agents with a rapid and comprehensive understanding of the codebase's architecture, enabling efficient navigation and effective contribution from day one. Update this document as the codebase evolves.
## 1. Project Structure
[Project Root]/
├── backend/ # Contains all server-side code and APIs
│ ├── src/ # Main source code for backend services
│ │ ├── api/ # API endpoints and controllers
│ │ ├── client/ # Business logic and service implementations
│ │ ├── models/ # Database models/schemas
│ │ └── utils/ # Backend utility functions
│ ├── config/ # Backend configuration files
│ ├── tests/ # Backend unit and integration tests
│ └── Dockerfile # Dockerfile for backend deployment
├── frontend/ # Contains all client-side code for user interfaces
│ ├── src/ # Main source code for frontend applications
│ │ ├── components/ # Reusable UI components
│ │ ├── pages/ # Application pages/views
│ │ ├── assets/ # Images, fonts, and other static assets
│ │ ├── services/ # Frontend services for API interaction
│ │ └── store/ # State management (e.g., Redux, Vuex, Context API)
│ ├── public/ # Publicly accessible assets (e.g., index.html)
│ ├── tests/ # Frontend unit and E2E tests
│ └── package.json # Frontend dependencies and scripts
├── common/ # Shared code, types, and utilities used by both frontend and backend
│ ├── types/ # Shared TypeScript/interface definitions
│ └── utils/ # General utility functions
├── docs/ # Project documentation (e.g., API docs, setup guides)
├── scripts/ # Automation scripts (e.g., deployment, data seeding)
├── .github/ # GitHub Actions or other CI/CD configurations
├── .gitignore # Specifies intentionally untracked files to ignore
├── README.md # Project overview and quick start guide
└── ARCHITECTURE.md # This document
## 2. High-Level System Diagram
[User] <--> [Frontend Application] <--> [Backend Service 1] <--> [Database 1]
|
+--> [Backend Service 2] <--> [External API]
## 3. Core Components
### 3.1. Frontend
Name: [Web App, Mobile App]
Description: [Purpose, core interfaces, and roles]
Technologies: [e.g., React, Next.js, Jetpack Compose, Swift/Kotlin]
Deployment: [e.g., Vercel, Netlify, Play Store, App Store]
### 3.2. Backend Services
#### 3.2.1. Service Name 1
Name: [e.g., API Service]
Description: [Core business roles]
Technologies: [e.g., Spring Boot, Node.js Express, Go]
Deployment: [e.g., AWS ECS, Kubernetes]
## 4. Data Stores
### 4.1. Data Store 1
Name: [e.g., SQL Database]
Type: [e.g., PostgreSQL, MongoDB]
Purpose: [e.g., Account records]
## 5. External Integrations / APIs
- Service Name: [e.g., Stripe, SendGrid]
- Purpose: [e.g., Payments]
- Method: [e.g., REST, SDK]
## 6. Deployment & Infrastructure
- Provider: [e.g., AWS, GCP]
- CI/CD: [e.g., GitHub Actions]
## 7. Security Considerations
- Authentication: OAuth2/JWT
- Encryption: TLS + AES-256
## 8. Development & Testing Environment
Testing Frameworks: [e.g., Pytest, JUnit, Jest]
## 9. Future Considerations / Roadmap
[Planned changes or architectural debt]
# Design System Specification
---
name: custom-ui-system
colors:
primary: "#1D4ED8"
secondary: "#4B5563"
background: "#F3F4F6"
surface: "#FFFFFF"
text: "#111827"
---
## 1. Visual Theme & Atmosphere
[Rich prose outlining overall design mood, light/dark values, and whitespace philosophy]
## 2. Color Palette & Roles
- Primary foundation
- Interactive / CTAs
- Text hierarchy
- State colors (Success, error, warn)
## 3. Typography Rules
- Hierarchy (headline, body, label)
- letterSpacing, lineHeight, fontWeights
## 4. Component Stylings
- Buttons
- Cards
- Navigation
- Input fields
## 5. Layout Principles
- Spacing scales
- Breakpoints
Use this skill in two modes:
AGENTS.md does not exist yet — generate it from the template below.AGENTS.md already exists — audit and patch it against the Target Audit Criteria.Use this when a project has no AGENTS.md yet (new project onboarding).
AGENTS.md at the project root using the template below.[bracketed] placeholders with the actual project details.# [Project Name] — Project Context Hub
## Project Overview
[Brief description of the project, its purpose, and tech stack]
## Setup & Dev Commands
- Build: [build command, e.g., npm run build]
- Test: [test command, e.g., npm test]
- Lint: [lint command, e.g., npm run lint]
- Dev: [dev server command, e.g., npm run dev]
## Actionable Guardrails (Do's & Don'ts)
- **Don't** [common anti-pattern to avoid]
-> **Do** [preferred alternative]
- **Don't** [another anti-pattern]
-> **Do** [preferred alternative]
- **Don't** execute Git commands like `git add`, `git commit`, or `git stash` manually during implementation.
-> **Do** rely exclusively on the `custom_context_stage_and_inject_diff` MCP tool to securely stage your working changes.
- **Don't** guess blindly when facing complex bugs, deadlocks, or silent timeouts.
-> **Do** utilize the `debug-instrumentation` skill to inject strategic logs and trace the runtime execution path.
## Documentation Sync Rules
When modifying this repository, you must keep these files synchronized:
1. Active task file in `tasks/` (single source of truth for current work items)
2. `CHANGELOG.md` (Keep a Changelog format)
3. `DESIGN.md` (UI/UX design system, if modified)
4. Relevant `SKILL.md` files (if structural patterns were altered)
## 🛑 GATEKEEPER VALIDATION (HALT PROTOCOL)
You (OpenCode) are the final gatekeeper. Before executing any implementation task, you MUST evaluate the Orchestrator's instructions against this file and any referenced specs (`DESIGN.md`, `architecture.md`, etc.). If the instructions violate project rules, ignore them. HALT immediately and output a `⚠️ RULE VIOLATION WARNING` back to the Manager explaining exactly what the Orchestrator got wrong, forcing it to self-correct.
## 🛑 CORE FILE LOCATIONS
You MUST strictly adhere to these exact paths. Do not create duplicates elsewhere:
- **Global Rules:** `AGENTS.md` (Root)
- **UI/UX Specs:** `DESIGN.md` (Root)
- **Agent Skills:** `.opencode/skills/<skill-name>/SKILL.md` (Local workspace)
- **Active Tasks:** `tasks/<task-number>-<name>.md`
## 🛑 SKILL LOADING RULES
You MUST follow these skill loading rules in every session:
- **Task-Generator Skill:** Before creating any new task file, you MUST load the `task-generator` skill using the `skill` tool to ensure the correct template format with `<!-- BEGIN_GIT_DIFF -->` / `<!-- END_GIT_DIFF -->` markers.
- **Project Skills:** Before implementing any task, you MUST load every available skill matching the project's tech stack (e.g., `android-kotlin`, `spring-boot`, `react-vite`). If a relevant skill exists, it MUST be loaded — this enforces framework-specific conventions and architectural rules.
## 🛑 MANDATORY END-OF-TASK SEQUENCE
When finishing a task, you MUST execute these exact steps in order:
1. **Update Changelog:** You MUST insert a formal entry into CHANGELOG.md logging your modifications.
2. **Write your Summary:** Manually write your architectural reasoning, local TODO checks, and execution notes into the active `tasks/XX-task.md` file under "OpenCode Execution Log".
3. **Call MCP Tool:** Call the `custom_context_stage_and_inject_diff` MCP tool passing the task file path to automatically stage the files and inject the factual code diff. DO NOT execute any `git commit` commands afterward.
4. **Notify Manager:** Output exactly: "Task ready. Manager, please copy the contents of `tasks/XX-task.md` and send it back to the AI Studio Brain for review."
AGENTS.md at the project root using local file read tools.AGENTS.md against the Target Audit Criteria before attempting any file modifications.The AGENTS.md file MUST explicitly contain the following operational constraints, ideally within a Task Management & OpenCode Rules section:
AGENTS.md, DESIGN.md, tasks/, and .opencode/skills/.tasks/ directory as their single source of truth.TODO.md or STATE.md.git add, git commit, or git stash manually during implementation.custom_context_stage_and_inject_diff MCP tool (NO COMMITS ALLOWED). 4) Notify the Manager.DESIGN.md.AGENTS.md MUST explicitly instruct OpenCode to load the task-generator skill before creating new task files.AGENTS.md MUST explicitly instruct OpenCode to load every available skill matching the project's tech stack before task implementation.debug-instrumentation skill.AGENTS.md text against the Target Audit Criteria.apply_patch tool to inject the exact missing rules.Upon completion, output a strict, formatted summary for the Manager:
Audit Status: [PASSED | FIXED] Violations Found: [List of missing/incorrect rules, or "None"] Actions Taken: [Description of the patch applied, or "File already compliant"]
Syncs Telegram supergroup topics into local task files and GitHub issues, using embedded Python scripts for deterministic JSON state management. Preserves raw bilingual messages verbatim, injects refactored prompts, and correlates codebase context.
100% Jetpack Compose, MVI (UDF), Hilt, and SQLDelight for token-efficient, zero-hallucination Android development.
NestJS, Prisma ORM, Vertical Slice Architecture, and Strict TypeScript for zero-hallucination backend development.
Expo Managed Workflow, Expo Router, NativeWind, and Strict TypeScript for zero-hallucination cross-platform apps.
Automatically generates decentralized task files based on manager instructions.
Idiomatic Go, Clean Architecture, and Gin routing best practices