Skip to content

Commit 42830e5

Browse files
Align agent rules, skills, and workflows; centralize technical standards
1 parent af98d7d commit 42830e5

File tree

7 files changed

+16
-20
lines changed

7 files changed

+16
-20
lines changed

.agent/rules/PROJECT_RULES.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
# IDH-IDC Project Rules for AI Agents
2-
31
These rules define the technical standards, design patterns, and workflow requirements for the IDH-IDC project. All AI agents MUST follow these guidelines to ensure consistency and quality.
42

3+
## 0. Agent Asset Hierarchy
4+
To maintain alignment across agent resources, we follow this structural hierarchy:
5+
1. **Rules** (`.agent/rules/`): **The Law.** Universal technical standards, design constraints, and mandatory procedures.
6+
2. **Skills** (`.agent/skills/`): **Technical Knowledge.** Deep domain expertise and situational knowledge for specific subsystems.
7+
3. **Workflows** (`.agent/workflows/`): **Recipes.** Actionable, step-by-step procedures for common tasks (e.g., slash commands).
8+
59
## 1. Core Technology Stack
610

711
- **Frontend**: React (Create React App), Ant Design, echarts, pullstate.

.agent/skills/idc-core/SKILL.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ description: Core technology stack, environment setup, and basic usage for IDH-I
77

88
General technical information and basic environment operations for the IDH-IDC project.
99

10-
## Technology Stack
11-
12-
- **Backend**: FastAPI (Python), SQLAlchemy, Alembic, Pytest
13-
- **Frontend**: React (CRA), Ant Design, Pullstate, Jest
14-
- **Infra**: Docker, Docker Compose, Kubernetes
10+
Note: For the detailed technical standards and tech stack requirements, refer to [.agent/rules/PROJECT_RULES.md](file:///Users/galihpratama/Sites/IDH-IDC/.agent/rules/PROJECT_RULES.md).
1511

1612
## Environment Setup
1713

.agent/skills/idc-database/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: idc-database
3-
description: Database management, seeding, and migrations for IDH-IDC.
3+
description: Database management, seeding, and migrations for IDH-IDC. Refer to `/seed_data` workflow for step-by-step seeding instructions.
44
---
55

66
# IDC Database Skills

.agent/skills/idc-testing/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: idc-testing
3-
description: Testing and linting for IDH-IDC backend and frontend.
3+
description: Testing and linting for IDH-IDC backend and frontend. Use `/run_frontend_lint`, `/run_backend_test`, and `/run_frontend_test` for automated verification.
44
---
55

66
# IDC Testing Skills

.agent/workflows/plan_implementation.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,7 @@ description: Create a comprehensive implementation plan for a feature or bug fix
99
- **Goal**: Brief summary of the problem and what the change accomplishes.
1010
- **User Review Required**: Highlight breaking changes or design decisions.
1111
- **Proposed Changes**: Detailed breakdown by file.
12-
- **Frontend Standards**:
13-
- **Framework**: React (Functional Components + Hooks).
14-
- **UI Library**: Ant Design (antd).
15-
- **State Management**: Pullstate.
16-
- **Linting**: Must pass `docker compose exec frontend yarn lint` (ESLint).
17-
- **Testing**: `docker compose exec frontend yarn test:ci` or interactive `yarn test`.
18-
- **Backend Standards**:
19-
- **Framework**: FastAPI (Python).
20-
- **Database**: SQLAlchemy + Alembic migrations.
21-
- **Linting/Testing**: Must pass `./dc.sh exec backend ./check.sh` (includes `flake8` and `pytest`).
12+
- **Technical Standards**: All changes MUST strictly adhere to the technical standards and best practices defined in [.agent/rules/PROJECT_RULES.md](file:///Users/galihpratama/Sites/IDH-IDC/.agent/rules/PROJECT_RULES.md).
2213
- **Verification Plan**:
2314
- **Automated**: List specific commands to run (e.g., `yarn lint`, `./check.sh`).
2415
- **Manual**: Step-by-step browser verification instructions.

.agent/workflows/run_frontend_lint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ description: Run frontend linting using docker compose
33
---
44
1. Run the lint command
55
// turbo
6-
docker compose exec frontend yarn lint
6+
./dc.sh exec frontend yarn lint

GEMINI.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ Income Driver Calculator (IDC) is a web application designed to help companies t
188188
- **Technical Improvements & Workflows**:
189189
- **General Refactoring**: Split the monolithic `idc-antigravity-skills` into granular components: `idc-core`, `idc-database`, and `idc-testing`.
190190
- **Workflows**: Updated `check_time`, `commit_changes`, and `create_pr` workflows with automated branch detection; implemented `seed_data`, `view_logs`, and `run_frontend_test`.
191+
- **Asset Alignment & Centralized Rules**:
192+
- Unified Rules, Skills, and Workflows into a cohesive hierarchy (The Law > Knowledge > Recipes).
193+
- Standardized all container commands to use `./dc.sh` wrapper for consistency.
194+
- Streamlined workflows by centralizing technical standards in `PROJECT_RULES.md`.
195+
- Added cross-references between specialized skills and actionable workflows.
191196
- **Project Rules Implementation**:
192197
- Created comprehensive `.agent/rules/PROJECT_RULES.md` defining FE/BE coding standards and best practices.
193198
- Implemented technical linting rules (e.g., `exhaustive-deps`, `jsx-a11y`) and performance patterns (e.g., `useMemo`, `pullstate` functional updates).

0 commit comments

Comments
 (0)