ai-developer-skill-os 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/AGENTS.md +79 -46
- package/CHANGELOG.md +14 -0
- package/README.md +13 -6
- package/docs/GOVERNANCE.md +40 -0
- package/docs/SPEC.md +37 -0
- package/docs/adr/0001-intent-based-architecture.md +19 -0
- package/docs/adr/0002-kernel-freeze.md +21 -0
- package/docs/adr/0003-risk-based-verification.md +20 -0
- package/docs/adr/0004-progressive-evidence.md +19 -0
- package/docs/skill-classification.md +25 -0
- package/knowledge/backend/nodejs.md +52 -0
- package/knowledge/frontend/react.md +54 -0
- package/package.json +1 -1
- package/skills/qk-bug-resolution/SKILL.md +3 -1
- package/skills/qk-engineering-standard/SKILL.md +3 -1
- package/skills/qk-feature-delivery/SKILL.md +3 -1
- package/skills/qk-production-release/SKILL.md +3 -1
- package/skills/qk-project-health/SKILL.md +3 -1
- package/skills/qk-system-evolution/SKILL.md +3 -1
- package/skills/qk-ui-audit/SKILL.md +3 -1
- package/skills/qk-validation-gate/SKILL.md +3 -1
- package/skills.json +36 -40
- package/templates/skill-template.md +38 -0
package/.agents/AGENTS.md
CHANGED
|
@@ -1,48 +1,81 @@
|
|
|
1
1
|
# Global Agent Policies
|
|
2
2
|
|
|
3
|
-
These policies
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- **
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- **
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- **
|
|
48
|
-
- **
|
|
3
|
+
These policies act as the OS Kernel for all AI agents.
|
|
4
|
+
They establish the baseline behavior, engineering standards, and execution lifecycle.
|
|
5
|
+
Skills follow the standard classifications defined in `docs/skill-classification.md`.
|
|
6
|
+
|
|
7
|
+
## 1. Core Principles
|
|
8
|
+
**Rules:**
|
|
9
|
+
- **MUST** fix the root cause, not the symptom.
|
|
10
|
+
- **MUST NOT** fabricate facts, APIs, packages, or code that doesn't exist.
|
|
11
|
+
- **MUST NOT** guess the shape of APIs or data. Use evidence.
|
|
12
|
+
- **MUST NOT** redesign the system or overengineer unless explicitly requested.
|
|
13
|
+
- **MUST** preserve backward compatibility unless instructed otherwise.
|
|
14
|
+
|
|
15
|
+
**Guidelines:**
|
|
16
|
+
- **Prefer** solving today's problem over speculative future-proofing.
|
|
17
|
+
- **Prefer** keeping changes minimal and isolated.
|
|
18
|
+
|
|
19
|
+
## 2. Priority Resolution
|
|
20
|
+
If multiple objectives or skills overlap, resolve them in this order:
|
|
21
|
+
1. Safety
|
|
22
|
+
2. Correctness
|
|
23
|
+
3. User Request
|
|
24
|
+
4. Performance
|
|
25
|
+
5. Style
|
|
26
|
+
|
|
27
|
+
## 3. Planning & Context
|
|
28
|
+
**Rules:**
|
|
29
|
+
- **MUST** read before write. Always understand context before modifying code.
|
|
30
|
+
- **MUST NOT** read the whole project unless explicitly required.
|
|
31
|
+
|
|
32
|
+
**Guidelines:**
|
|
33
|
+
- **Context Budget:** Prefer reading `1 file` → `3 files` → `directory` → `project`.
|
|
34
|
+
- **Evidence Priority:** User input → Existing context → Source code → Types → Logs → Runtime → External knowledge.
|
|
35
|
+
|
|
36
|
+
## 4. Evidence Collection & Confidence
|
|
37
|
+
**Rules:**
|
|
38
|
+
- **MUST NOT** execute speculative actions.
|
|
39
|
+
- **Decision Confidence:** Proceed only when the next action is supported by sufficient evidence. Avoid speculative execution.
|
|
40
|
+
|
|
41
|
+
**Guidelines:**
|
|
42
|
+
- **Progressive Collection:** Collect incrementally. Do not gather all possible information upfront.
|
|
43
|
+
- **Stop early:** Stop collecting evidence as soon as there is sufficient confidence to proceed. If confidence is low, collect exactly *one* additional piece of evidence and repeat.
|
|
44
|
+
|
|
45
|
+
## 5. Tool Usage
|
|
46
|
+
**Rules:**
|
|
47
|
+
- **MUST** determine if the answer can be derived from the current context before calling any tool.
|
|
48
|
+
- **MUST NOT** use shell commands merely to explore the project (e.g., `pwd`, `ls`, `tree`, `find`) when structure is known.
|
|
49
|
+
|
|
50
|
+
**Guidelines:**
|
|
51
|
+
- **Order of Preference:** Current context → `read_file` → `grep_search` → `search_code` → `run_command`.
|
|
52
|
+
- **Batch Commands:** Batch related operations (e.g., `git status && git diff`).
|
|
53
|
+
- **Command Budget:** Maximum 3 shell commands before producing an initial diagnosis.
|
|
54
|
+
|
|
55
|
+
## 6. Execution & Repair Loop
|
|
56
|
+
**Rules:**
|
|
57
|
+
- **Repair Loop:** MUST follow: `Observe` → `Hypothesis` → `Evidence` → `Fix` → `Verify` → `Done`. Do NOT jump directly from Observe to Fix.
|
|
58
|
+
- **Escalation Policy:** If 2 consecutive attempts fail (e.g., build fail, permission denied): Stop. Explain the blocker. Request user confirmation before continuing.
|
|
59
|
+
- **Stopping Criteria:** Stop immediately when: Root cause identified, task completed, required evidence collected, or sufficient confidence reached.
|
|
60
|
+
|
|
61
|
+
**Guidelines:**
|
|
62
|
+
- **Cost Policy:** Optimize for: Correctness > Minimal Changes > Minimal Context > Minimal Tool Usage > Minimal Runtime.
|
|
63
|
+
|
|
64
|
+
## 7. Verification
|
|
65
|
+
**Rules:**
|
|
66
|
+
- **MUST** use the lowest verification level sufficient for the task.
|
|
67
|
+
- **MUST NOT** run build/test unless required by the task or needed for verification.
|
|
68
|
+
|
|
69
|
+
**Guidelines:**
|
|
70
|
+
- **Risk-based Verification:**
|
|
71
|
+
- **Level 0 (Low Risk):** Comment, typo, string changes. Static analysis only.
|
|
72
|
+
- **Level 1:** Read source code.
|
|
73
|
+
- **Level 2 (Medium Risk):** Logic changes. Run targeted test.
|
|
74
|
+
- **Level 3 (High Risk):** Auth, payment, database. Run full validation.
|
|
75
|
+
|
|
76
|
+
## 8. Output Policy
|
|
77
|
+
**Rules:**
|
|
78
|
+
- **MUST** use English for: Code, reasoning, architecture terms, file names, variables, technical decisions, Git commit messages, logs, and prompt logic (Workflow, Checklist).
|
|
79
|
+
- **MUST** use Vietnamese for: User-facing explanations, questions, summaries, progress updates, and the final report.
|
|
80
|
+
- **MUST NOT** translate: Code snippets, stack traces, file paths, shell commands, config keys, environment variables.
|
|
81
|
+
- **MUST** follow the required reporting structure (Summary, Changes, Reason, Verification, Risks, Next Action).
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,20 @@ All notable changes to the **AI Developer Skill OS** project will be documented
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.0.1] - 2026-07-02
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Updated skills.json version từ 1.0.1 → 3.0.1 để phản án version skills chính
|
|
12
|
+
- Thay đổi status các skill từ `planned` → `ready`
|
|
13
|
+
- Cập nhật `qk-bug-fix` → `qk-bug-resolution` với version 3.0.0
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
- Thêm `knowledge/backend/nodejs.md` - tài liệu kiến trúc backend Node.js
|
|
17
|
+
- Thêm categories registry cho dễ phân loại skills
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
- Sửa lỗi `qk-projects-bootstrap` → `qk-project-bootstrap` typo trong categories
|
|
21
|
+
|
|
8
22
|
## [1.0.1] - 2026-07-01
|
|
9
23
|
### Fixed
|
|
10
24
|
- Standardized Language rule across all 23 SKILL.md files for consistency.
|
package/README.md
CHANGED
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
# 🚀 AI Developer Skill OS (ai-developer-skill-os) v3.0
|
|
2
2
|
|
|
3
|
-
> Một hệ điều hành (AI-OS) và Nền tảng Kiến trúc Kỹ thuật (Engineering Platform) tối thượng dành cho AI Coding Agents (Claude Code, Cursor, Windsurf, Gemini).
|
|
3
|
+
> Một hệ điều hành (AI-OS) và Nền tảng Kiến trúc Kỹ thuật (Engineering Platform) tối thượng dành cho AI Coding Agents (Claude Code, Cursor, Windsurf, Gemini, Kilo).
|
|
4
4
|
|
|
5
5
|
Thay vì cung cấp các "công cụ rời rạc" (Toolbox) hoặc những prompt cồng kềnh, **AI Developer Skill OS v3.0** được thiết kế lại hoàn toàn theo chuẩn **Enterprise-ready Agentic Framework**. Nó biến Agent của bạn thành một **Senior Engineer / Chief Architect** thực thụ với khả năng tự suy luận bằng Tiếng Anh, nhưng lại báo cáo thân thiện bằng Tiếng Việt.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## ✨ Tính năng chính
|
|
10
|
+
- **23 Skills chuẩn Enterprise** cho Frontend, Backend, Engineering
|
|
11
|
+
- **Kiến trúc 5 tầng** giúp tối ưu Context Window
|
|
12
|
+
- **Pipeline tự động**: analyze → implement → validate → complete
|
|
13
|
+
- **Decision Tree** cho từng skill, đưa ra quyết định chuẩn xác
|
|
14
|
+
- **Knowledge RAG on-demand** - chỉ tải kiến thức khi cần thiết
|
|
15
|
+
|
|
9
16
|
## 🏗️ Kiến Trúc 5 Tầng (The 5-Tier Architecture)
|
|
10
17
|
|
|
11
18
|
Hệ thống được thiết kế decoupled (phân tách) hoàn hảo để chống tràn Context Window và tối ưu khả năng suy luận của LLM:
|
|
12
19
|
|
|
13
|
-
### 1.
|
|
14
|
-
|
|
15
|
-
- **
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
20
|
+
### 1. OS Kernel (`.agents/AGENTS.md`)
|
|
21
|
+
The core of the system is a lightweight, heavily optimized OS Kernel that dictates agent behavior across all tasks.
|
|
22
|
+
- **Intent-Based Policies:** Skills are classified into 4 groups (Static Analysis, Development, Validation, Maintenance) rather than micromanaged with individual exceptions.
|
|
23
|
+
- **Progressive Evidence Collection:** Agents collect context incrementally (1 file → 3 files) and stop at a 80% Confidence Threshold, eliminating "hallucination loops".
|
|
24
|
+
- **Risk-based Verification:** Tests and builds are only run based on the risk level of the change, strictly guided by the Cost and Escalation policies.
|
|
18
25
|
|
|
19
26
|
### 2. Core Templates (`templates/`)
|
|
20
27
|
Chứa các format báo cáo chuẩn (như `bug-report.md`, `feature-report.md`, `review-report.md`). AI không cần "học lại" cách viết báo cáo, giúp đầu ra luôn nhất quán 100%.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Project Governance
|
|
2
|
+
|
|
3
|
+
This document serves as the "Constitution" for the AI Developer Skill OS. It dictates how the project evolves, when core files can be modified, and how versions are incremented.
|
|
4
|
+
|
|
5
|
+
## 1. Core Philosophy
|
|
6
|
+
**Architecture-first, features-second.**
|
|
7
|
+
Before submitting any Pull Request, ask yourself:
|
|
8
|
+
1. *Does this change require modifying the OS Kernel (`AGENTS.md`)?*
|
|
9
|
+
2. *If not, can this be solved at the Skill, Knowledge, or Template layer?*
|
|
10
|
+
|
|
11
|
+
If the problem can be solved in a Skill, Knowledge document, or Template, **do not touch the Kernel**.
|
|
12
|
+
|
|
13
|
+
## 2. When to modify `AGENTS.md` (The Kernel)
|
|
14
|
+
The Kernel is **frozen**. Modifications to `AGENTS.md` are strictly prohibited unless:
|
|
15
|
+
- The change introduces a fundamentally new paradigm for ALL agents (e.g., a completely new approach to token management).
|
|
16
|
+
- A critical, framework-breaking hallucination loop is discovered that cannot be solved via Skill guidelines.
|
|
17
|
+
- **Requirement:** Any modification to `AGENTS.md` MUST be accompanied by a new Architecture Decision Record (ADR).
|
|
18
|
+
|
|
19
|
+
## 3. When to create an ADR (Architecture Decision Record)
|
|
20
|
+
ADRs (located in `docs/adr/`) must be created when:
|
|
21
|
+
- Modifying `AGENTS.md` or `SPEC.md`.
|
|
22
|
+
- Introducing a new lifecycle phase to the pipeline.
|
|
23
|
+
- Deprecating an existing core feature or standard tool.
|
|
24
|
+
|
|
25
|
+
## 4. Definition of a "Breaking Change"
|
|
26
|
+
A change is considered **Breaking** if it:
|
|
27
|
+
- Alters the required YAML frontmatter contract in `SPEC.md`.
|
|
28
|
+
- Changes the fundamental routing logic or expected `behavior` / `intent` mappings.
|
|
29
|
+
- Removes an existing global policy that downstream agents rely on.
|
|
30
|
+
|
|
31
|
+
## 5. Versioning Strategy (Semantic Versioning)
|
|
32
|
+
We strictly adhere to SemVer based on the framework's architecture, not just content.
|
|
33
|
+
- **MAJOR (e.g., v4.0.0 to v5.0.0):** Breaking changes to the Kernel (`AGENTS.md`), Metadata Contract (`SPEC.md`), or fundamental routing.
|
|
34
|
+
- **MINOR (e.g., v4.0.0 to v4.1.0):** Adding new Capabilities, new default Skills, new Knowledge docs, or new Templates.
|
|
35
|
+
- **PATCH (e.g., v4.0.0 to v4.0.1):** Fixing typos in docs, updating README, or minor bug fixes within an individual skill's SOP.
|
|
36
|
+
|
|
37
|
+
## 6. PR Review Process
|
|
38
|
+
1. **Architecture Compliance:** Does the PR violate the Kernel Freeze? Are all skills compliant with `SPEC.md`?
|
|
39
|
+
2. **Documentation Consistency:** Are the changes reflected in `CHANGELOG.md`?
|
|
40
|
+
3. **No Redundancy:** Ensure the PR does not re-introduce tool usage rules or verification overrides into individual skills.
|
package/docs/SPEC.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# AI Developer Skill OS - Specification (v4)
|
|
2
|
+
|
|
3
|
+
This document defines the strict contract and schema for developing Custom Skills in the AI Developer Skill OS. The metadata frontmatter is frozen to ensure cross-platform compatibility (Cursor, Claude Code, Windsurf, Gemini).
|
|
4
|
+
|
|
5
|
+
## 1. Frontmatter Contract (YAML)
|
|
6
|
+
|
|
7
|
+
Every `SKILL.md` must begin with this exact YAML structure. Do not add, remove, or rename fields.
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
---
|
|
11
|
+
name: qk-[skill-name]
|
|
12
|
+
version: X.Y.Z
|
|
13
|
+
updated: YYYY-MM-DD
|
|
14
|
+
description: Brief summary of what this skill accomplishes.
|
|
15
|
+
behavior: static-analysis | development | validation | maintenance
|
|
16
|
+
intent: review-code | fix-bug | implement-feature | validate | maintain
|
|
17
|
+
priority: low | medium | high | critical
|
|
18
|
+
tags: [tag1, tag2]
|
|
19
|
+
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
20
|
+
trigger: Natural language phrase that activates this skill.
|
|
21
|
+
inputs: [Required inputs]
|
|
22
|
+
outputs: [Expected outputs]
|
|
23
|
+
allowed_tools: [Tool1, Tool2]
|
|
24
|
+
pipeline: [analyze, plan, implement, validate, complete]
|
|
25
|
+
---
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 2. Skill Body Structure (Markdown)
|
|
29
|
+
|
|
30
|
+
The body of the `SKILL.md` file MUST contain the following sections:
|
|
31
|
+
|
|
32
|
+
1. **Goal:** The core objective of the skill.
|
|
33
|
+
2. **Chain of Thought (SOP):** The exact step-by-step reasoning the agent must follow.
|
|
34
|
+
3. **Constraints & Rules:** Hard boundaries and limits for this specific skill.
|
|
35
|
+
4. **Handoff Pipeline (Optional):** How this skill transitions to the next phase (e.g. passing to validation).
|
|
36
|
+
|
|
37
|
+
*Note: Skill documents MUST NOT declare Verification Levels or override Tool Efficiency policies. Those are exclusively managed by the Global Kernel (`AGENTS.md`).*
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# 1. Intent-Based Architecture
|
|
2
|
+
|
|
3
|
+
Date: 2026-07-02
|
|
4
|
+
|
|
5
|
+
## Status
|
|
6
|
+
Accepted
|
|
7
|
+
|
|
8
|
+
## Context
|
|
9
|
+
As the framework grew from 5 to 20+ skills, managing individual tool permissions and specific verification overrides within each `SKILL.md` became a maintenance nightmare (violating DRY). Agents were also suffering from "context bloat" because they had to read sprawling, repetitive rules across different skills.
|
|
10
|
+
|
|
11
|
+
## Decision
|
|
12
|
+
We transitioned from a "Rule-Based" architecture to an "Intent-Based" architecture.
|
|
13
|
+
- Skills no longer define their own verification exceptions or tool usage logic.
|
|
14
|
+
- Instead, skills declare their `behavior` and `intent` via frozen YAML metadata.
|
|
15
|
+
- The OS Kernel (`AGENTS.md`) intercepts these intents and automatically applies the correct global routing and execution constraints based on the categorized behavior.
|
|
16
|
+
|
|
17
|
+
## Consequences
|
|
18
|
+
- **Positive:** Massive reduction in skill file size. Easier to scale to 100+ skills. Centralized logic in the Kernel. Agent routing is drastically improved due to clear `intent` mapping.
|
|
19
|
+
- **Negative:** Less granular control over unique outliers, but this enforces better standardization.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# 2. Kernel Freeze
|
|
2
|
+
|
|
3
|
+
Date: 2026-07-02
|
|
4
|
+
|
|
5
|
+
## Status
|
|
6
|
+
Accepted
|
|
7
|
+
|
|
8
|
+
## Context
|
|
9
|
+
The Global Policy file (`AGENTS.md`), which acts as the OS Kernel, was continuously expanding. Policies like Language, Decision, Engineering, Output, Tool Efficiency, Context Budget, and Escapation were all piled into a single document, threatening to balloon past 1,000 lines. A bloated kernel leads to Agent Hallucinations (due to context window pressure) and conflicting priorities.
|
|
10
|
+
|
|
11
|
+
## Decision
|
|
12
|
+
We officially "Freeze" the Kernel (`AGENTS.md`) at v4.0.0. The file is strictly rewritten to under 100 lines using absolute Rules (MUST/MUST NOT) and Guidelines (Prefer/Avoid).
|
|
13
|
+
Moving forward, no new policies will be added to the Kernel. All future expansions must occur at the higher layers:
|
|
14
|
+
- New Capabilities
|
|
15
|
+
- New Skills
|
|
16
|
+
- New Knowledge documents
|
|
17
|
+
- New Templates
|
|
18
|
+
|
|
19
|
+
## Consequences
|
|
20
|
+
- **Positive:** The baseline ruleset is locked, highly token-efficient, and easily digestible by any LLM. The framework achieves enterprise stability.
|
|
21
|
+
- **Negative:** Feature requests that require global policy shifts will be rejected by default unless they fundamentally rewrite the OS paradigm.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# 3. Risk-based Verification
|
|
2
|
+
|
|
3
|
+
Date: 2026-07-02
|
|
4
|
+
|
|
5
|
+
## Status
|
|
6
|
+
Accepted
|
|
7
|
+
|
|
8
|
+
## Context
|
|
9
|
+
Previously, Verification Levels were hardcoded into the Skill Classification (e.g., Development skills automatically forced Level 2 Verification, meaning test suites were run regardless of the actual change). This caused conflicting behavior. For example, fixing a typo in a comment using the `qk-bug-resolution` skill would still trigger a test run, wasting time and resources.
|
|
10
|
+
|
|
11
|
+
## Decision
|
|
12
|
+
We completely decoupled Verification Levels from Skill Classifications.
|
|
13
|
+
Skills now only define their "Preferred Evidence Strategy". The actual depth of verification is determined strictly by the **Risk-based Verification Policy** in the Kernel (`AGENTS.md`).
|
|
14
|
+
- Level 0 (Low Risk): Comments, typos (Static Analysis only).
|
|
15
|
+
- Level 2 (Medium Risk): Logic changes (Targeted tests).
|
|
16
|
+
- Level 3 (High Risk): Auth, DB (Full validation).
|
|
17
|
+
|
|
18
|
+
## Consequences
|
|
19
|
+
- **Positive:** Agents no longer blindly run tests for trivial changes. Verification scales with the danger of the code being modified, vastly improving speed and token efficiency.
|
|
20
|
+
- **Negative:** Agents must use logic to evaluate the "Risk" of their own changes before deciding whether to run a test.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# 4. Progressive Evidence Collection
|
|
2
|
+
|
|
3
|
+
Date: 2026-07-02
|
|
4
|
+
|
|
5
|
+
## Status
|
|
6
|
+
Accepted
|
|
7
|
+
|
|
8
|
+
## Context
|
|
9
|
+
AI Agents frequently fall into "hallucination loops" or "over-exploration loops", running commands like `ls`, `tree`, or reading entire project directories just to find one file. This burns through context windows rapidly and leads to poor reasoning.
|
|
10
|
+
|
|
11
|
+
## Decision
|
|
12
|
+
We implemented a strict **Progressive Evidence Collection** pipeline inside the OS Kernel (`AGENTS.md`):
|
|
13
|
+
- **Context Budget:** Agents must start by reading 1 file, then 3 files, then a directory. They must never read the whole project unless explicitly required.
|
|
14
|
+
- **Sufficient Confidence:** Agents must stop collecting evidence the moment they reach an 80% confidence threshold to proceed.
|
|
15
|
+
- **Evidence Priority:** User input > Existing context > Source code > Types > Logs > Runtime > External knowledge.
|
|
16
|
+
|
|
17
|
+
## Consequences
|
|
18
|
+
- **Positive:** Drastically reduced unnecessary `run_command` usage. Agents act much more like senior developers who pinpoint issues via stack traces instead of blindly searching the filesystem.
|
|
19
|
+
- **Negative:** Requires rigorous enforcement in the Kernel to prevent agents from falling back to old habits.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Skill Classifications (Intent-Based Policies)
|
|
2
|
+
|
|
3
|
+
Skills are classified into behavioral groups that define their **Primary Objective** and **Preferred Evidence Strategy**.
|
|
4
|
+
|
|
5
|
+
*Note: Actual verification depth is NOT determined by the skill itself, but must strictly follow the **Risk-based Verification Policy** defined in `AGENTS.md`.*
|
|
6
|
+
|
|
7
|
+
## 1. Static Analysis Skills
|
|
8
|
+
*e.g., Code Review, Project Health, Architecture, Documentation*
|
|
9
|
+
- **Primary Goal:** Audit, analyze, or document without altering system behavior.
|
|
10
|
+
- **Preferred Behavior:** Prefer static analysis (`read_file`, `grep_search`). Do not execute code or run test suites unless explicitly requested to validate the audit.
|
|
11
|
+
|
|
12
|
+
## 2. Development Skills
|
|
13
|
+
*e.g., Feature Delivery, Refactor, Bug Resolution*
|
|
14
|
+
- **Primary Goal:** Modify existing behavior or implement new features safely.
|
|
15
|
+
- **Preferred Behavior:** Apply localized changes. Gather targeted evidence. Avoid speculative full-project validation; verify only what is affected.
|
|
16
|
+
|
|
17
|
+
## 3. Validation Skills
|
|
18
|
+
*e.g., Validation Gate, CI Check, Release*
|
|
19
|
+
- **Primary Goal:** Ensure code quality, security, and build stability before release.
|
|
20
|
+
- **Preferred Behavior:** Exhaustive scanning. Running automated checks and full builds is encouraged to satisfy the validation gate.
|
|
21
|
+
|
|
22
|
+
## 4. Maintenance Skills
|
|
23
|
+
*e.g., System Evolution, Dependency Update*
|
|
24
|
+
- **Primary Goal:** Upgrade system foundations safely with a rollback strategy.
|
|
25
|
+
- **Preferred Behavior:** Inspect changelogs and compatibility carefully before updating. Run full system verifications post-update to ensure stability.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: nodejs-knowledge-base
|
|
3
|
+
domain: backend
|
|
4
|
+
tags: [nodejs, express, api, middleware]
|
|
5
|
+
priority: high
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Node.js Backend Knowledge Base
|
|
9
|
+
|
|
10
|
+
## Architecture Patterns
|
|
11
|
+
- **Controller Layer:** Handle HTTP requests/responses, input validation, delegate to Service
|
|
12
|
+
- **Service Layer:** Business logic, data transformation, transaction management
|
|
13
|
+
- **Repository Layer:** Direct database queries, ORM interactions
|
|
14
|
+
- **Middleware:** Auth guards, logging, rate limiting, error handling
|
|
15
|
+
|
|
16
|
+
## Express Best Practices
|
|
17
|
+
```ts
|
|
18
|
+
// Controller pattern - thin, delegates to service
|
|
19
|
+
export async function createUser(req: Request, res: Response) {
|
|
20
|
+
const result = await userService.create(req.body);
|
|
21
|
+
res.status(201).json(result);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Service pattern - business logic
|
|
25
|
+
export async function create(userData: UserDto) {
|
|
26
|
+
// Validation
|
|
27
|
+
const validated = userSchema.parse(userData);
|
|
28
|
+
// Transaction
|
|
29
|
+
return db.user.create({ data: validated });
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Middleware pattern - reusable
|
|
33
|
+
export const requireAuth = (req: Request, res: Response, next: NextFunction) => {
|
|
34
|
+
const user = verifyToken(req.headers.authorization);
|
|
35
|
+
if (!user) return res.status(401).json({ error: 'Unauthorized' });
|
|
36
|
+
req.user = user;
|
|
37
|
+
next();
|
|
38
|
+
};
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Error Handling
|
|
42
|
+
- Never throw raw Errors. Use custom error classes.
|
|
43
|
+
- Always catch async errors in middleware.
|
|
44
|
+
- Return consistent error format: `{ error: string, code?: string }`
|
|
45
|
+
|
|
46
|
+
## Security Checklist
|
|
47
|
+
- Use helmet middleware for security headers
|
|
48
|
+
- Validate all inputs with Zod/Joi
|
|
49
|
+
- Never commit .env files
|
|
50
|
+
- Use parameterized queries to prevent SQL injection
|
|
51
|
+
- Rate limit public endpoints
|
|
52
|
+
- Log security events (failed logins, permission denied)
|
|
@@ -12,16 +12,70 @@ priority: high
|
|
|
12
12
|
- Use `useContext` or global stores (Zustand/Redux) when prop drilling exceeds 3 levels.
|
|
13
13
|
- Never store derived data in state. Compute it on the fly during render.
|
|
14
14
|
- Never store API responses in Redux if a Server State tool (React Query/SWR) is available.
|
|
15
|
+
- For forms: Use React Hook Form + Zod for validation, NOT useState for each field.
|
|
15
16
|
|
|
16
17
|
## Hooks Best Practices
|
|
17
18
|
- **useEffect:** Avoid using `useEffect` for data transformation or syncing state. Only use it for actual side effects (subscriptions, API calls, manual DOM mutations).
|
|
18
19
|
- **useMemo / useCallback:** Only use when passing props to heavily memoized child components or when the computation is extremely expensive. Do not use them blindly.
|
|
19
20
|
- **Custom Hooks:** Extract complex logic out of UI components into custom hooks. Prefix them with `use` (e.g., `useUserAuth`).
|
|
21
|
+
- **Custom Hook Pattern:**
|
|
22
|
+
```ts
|
|
23
|
+
// useApi.ts - Generic API hook
|
|
24
|
+
export function useApi<T>(url: string) {
|
|
25
|
+
const [data, setData] = useState<T | null>(null);
|
|
26
|
+
const [loading, setLoading] = useState(false);
|
|
27
|
+
const [error, setError] = useState<string | null>(null);
|
|
28
|
+
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
fetchData();
|
|
31
|
+
}, [url]);
|
|
32
|
+
}
|
|
33
|
+
```
|
|
20
34
|
|
|
21
35
|
## Component Boundaries
|
|
22
36
|
- Follow Single Responsibility Principle. A component should either handle logic (Container) or handle rendering UI (Presentational), ideally not both if it's complex.
|
|
23
37
|
- Keep files under 300 lines. If a file is larger, break it down.
|
|
38
|
+
- **Component Hierarchy:**
|
|
39
|
+
- `components/shared/` - Reusable, no business logic
|
|
40
|
+
- `features/<domain>/components/` - Feature-specific components
|
|
41
|
+
- `layouts/` - Page layouts and wrappers
|
|
24
42
|
|
|
25
43
|
## Performance Gotchas
|
|
26
44
|
- Stale Closures: Always include all reactive variables in the dependency array of `useEffect` or `useCallback`.
|
|
27
45
|
- Keys in Lists: Always use unique IDs for `key` props. Never use array indices unless the list is completely static.
|
|
46
|
+
- **Re-render Detection:**
|
|
47
|
+
```ts
|
|
48
|
+
// Use console.log inside component to detect renders
|
|
49
|
+
// Wrap child in React.memo if unnecessary re-renders occur
|
|
50
|
+
export const MemoizedChild = React.memo(ChildComponent);
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Error Handling Patterns
|
|
54
|
+
```ts
|
|
55
|
+
// API Error Boundary
|
|
56
|
+
class ErrorBoundary extends React.Component {
|
|
57
|
+
state = { hasError: false };
|
|
58
|
+
static getDerivedStateFromError() {
|
|
59
|
+
return { hasError: true };
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Hook error handling
|
|
64
|
+
const { data, error, isLoading } = useQuery(['key'], fetchFn);
|
|
65
|
+
if (error) return <ErrorMessage error={error} />;
|
|
66
|
+
if (isLoading) return <LoadingSpinner />;
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Testing Patterns
|
|
70
|
+
```tsx
|
|
71
|
+
// Component test with React Testing Library
|
|
72
|
+
import { render, screen, waitFor } from '@testing-library/react';
|
|
73
|
+
import userEvent from '@testing-library/user-event';
|
|
74
|
+
|
|
75
|
+
test('handles user interaction', async () => {
|
|
76
|
+
render(<LoginForm />);
|
|
77
|
+
const button = screen.getByRole('button', { name: /login/i });
|
|
78
|
+
await userEvent.click(button);
|
|
79
|
+
await waitFor(() => expect(mockSubmit).toHaveBeenCalled());
|
|
80
|
+
});
|
|
81
|
+
```
|
package/package.json
CHANGED
|
@@ -4,6 +4,8 @@ version: 3.0.0
|
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Fix bugs and prevent regressions.
|
|
6
6
|
category: engineering
|
|
7
|
+
behavior: development
|
|
8
|
+
intent: fix-bug
|
|
7
9
|
priority: high
|
|
8
10
|
tags: [bug, debug, regression]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -33,7 +35,7 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
|
|
|
33
35
|
- Provide steps to test the fix.
|
|
34
36
|
- Ensure backward compatibility.
|
|
35
37
|
|
|
36
|
-
## 🛡️
|
|
38
|
+
## 🛡️ 3. Constraints & Rules
|
|
37
39
|
- **No Guesses:** Do not assume the shape of an API response. Print it or read the type definitions first.
|
|
38
40
|
- **Minimal Fix:** Always prefer a 1-line fix over a 100-line refactor, unless the architecture is fundamentally broken.
|
|
39
41
|
- **Clean Up:** Remove any `console.log()` or debugger statements introduced during the debugging process.
|
|
@@ -4,6 +4,8 @@ version: 3.0.0
|
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Enforce SOLID, DRY, Clean Code, and Naming conventions.
|
|
6
6
|
category: standard
|
|
7
|
+
behavior: static-analysis
|
|
8
|
+
intent: review-code
|
|
7
9
|
priority: critical
|
|
8
10
|
tags: [clean-code, architecture, refactoring, solid]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -32,7 +34,7 @@ pipeline: [analyze, review, implement, validate, complete]
|
|
|
32
34
|
4. **Verify (Validation):**
|
|
33
35
|
- Ensure the refactoring did NOT change the business logic or behavior of the app (Regression check).
|
|
34
36
|
|
|
35
|
-
## 🛡️
|
|
37
|
+
## 🛡️ 3. Constraints & Rules
|
|
36
38
|
- **Code is for Humans:** Write code that junior developers can easily understand. Avoid overly clever or obscure syntax.
|
|
37
39
|
- **Scope Limit:** Do NOT refactor the entire project if the user only asked to review one file. Limit the scope to the current task context.
|
|
38
40
|
- **Preserve Behavior:** Refactoring must strictly preserve backward compatibility.
|
|
@@ -4,6 +4,8 @@ version: 3.0.0
|
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Develop new features end-to-end (Frontend & Backend).
|
|
6
6
|
category: engineering
|
|
7
|
+
behavior: development
|
|
8
|
+
intent: implement-feature
|
|
7
9
|
priority: high
|
|
8
10
|
tags: [feature, development, e2e, ui, api]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -32,7 +34,7 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
|
|
|
32
34
|
- Check if the UI is responsive.
|
|
33
35
|
- Ensure the API handles edge cases (empty states, loading, error).
|
|
34
36
|
|
|
35
|
-
## 🛡️
|
|
37
|
+
## 🛡️ 3. Constraints & Rules
|
|
36
38
|
- **Contract First:** Always define the Type/Interface contract before writing the implementation logic.
|
|
37
39
|
- **Component Reusability:** Do not create a new Button or Input if a Shared Component already exists in `src/components/shared/`.
|
|
38
40
|
- **DRY (Don't Repeat Yourself):** Extract inline styles or duplicate logic into hooks/utilities.
|
|
@@ -4,6 +4,8 @@ version: 3.0.0
|
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Prepare the codebase for a production release (Build, CI/CD, Security).
|
|
6
6
|
category: operations
|
|
7
|
+
behavior: validation
|
|
8
|
+
intent: validate
|
|
7
9
|
priority: high
|
|
8
10
|
tags: [deploy, release, build, production]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -29,7 +31,7 @@ pipeline: [analyze, review, implement, validate, complete]
|
|
|
29
31
|
4. **Complete (Deployment Plan):**
|
|
30
32
|
- Provide a manual checklist for the user to execute the final deployment.
|
|
31
33
|
|
|
32
|
-
## 🛡️
|
|
34
|
+
## 🛡️ 3. Constraints & Rules
|
|
33
35
|
- **No Rogue Deploys:** Never run commands like `firebase deploy` or `vercel --prod` without explicit, undeniable user approval.
|
|
34
36
|
- **Secret Safety:** Never hardcode URLs. Ensure they are injected via ENV.
|
|
35
37
|
|
|
@@ -4,6 +4,8 @@ version: 3.0.0
|
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Comprehensive audit of Code Smells, Tech Debt, and Architecture.
|
|
6
6
|
category: architecture
|
|
7
|
+
behavior: static-analysis
|
|
8
|
+
intent: review-code
|
|
7
9
|
priority: medium
|
|
8
10
|
tags: [audit, architecture, tech-debt, code-smell]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -30,7 +32,7 @@ pipeline: [analyze, review, validate, complete]
|
|
|
30
32
|
4. **Complete (Roadmap):**
|
|
31
33
|
- Generate a prioritized Refactor Roadmap (High, Medium, Low).
|
|
32
34
|
|
|
33
|
-
## 🛡️
|
|
35
|
+
## 🛡️ 3. Constraints & Rules
|
|
34
36
|
- **Audit Only - No Touch:** Do not modify any code. You are diagnosing, not performing surgery.
|
|
35
37
|
- **Evidence Based:** Provide concrete metrics (e.g., "Folder `components` has 45 files, making it hard to navigate").
|
|
36
38
|
|
|
@@ -4,6 +4,8 @@ version: 3.0.0
|
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Safely upgrade dependencies, migrate frameworks, and manage rollbacks.
|
|
6
6
|
category: operations
|
|
7
|
+
behavior: maintenance
|
|
8
|
+
intent: maintain
|
|
7
9
|
priority: high
|
|
8
10
|
tags: [upgrade, migration, devops, dependencies]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -33,7 +35,7 @@ pipeline: [analyze, plan, implement, validate, complete]
|
|
|
33
35
|
- Reinstall dependencies cleanly (`npm ci` or `yarn install`).
|
|
34
36
|
- Run the build process to ensure the system compiles.
|
|
35
37
|
|
|
36
|
-
## 🛡️
|
|
38
|
+
## 🛡️ 3. Constraints & Rules
|
|
37
39
|
- **Safety First:** Never run `npm update` blindly across all packages. Update only what was requested.
|
|
38
40
|
- **Lockfiles:** Do not delete `package-lock.json` or `yarn.lock` unless resolving extreme merge conflicts.
|
|
39
41
|
- **Always Rollback:** If the system produces >50 compilation errors after an upgrade and you cannot fix them in 1 turn, immediately trigger the Rollback Plan.
|
|
@@ -4,6 +4,8 @@ version: 3.0.0
|
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Audit UI for Consistency, Accessibility, Responsive, and Performance.
|
|
6
6
|
category: validation
|
|
7
|
+
behavior: static-analysis
|
|
8
|
+
intent: review-code
|
|
7
9
|
priority: medium
|
|
8
10
|
tags: [ui, audit, frontend, a11y, responsive]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -32,7 +34,7 @@ pipeline: [analyze, review, validate, complete]
|
|
|
32
34
|
4. **Complete (Report):**
|
|
33
35
|
- Calculate a rough score (0-100) based on violations.
|
|
34
36
|
|
|
35
|
-
## 🛡️
|
|
37
|
+
## 🛡️ 3. Constraints & Rules
|
|
36
38
|
- **Audit Only:** Do not modify the code automatically unless the user explicitly requests you to apply the fixes.
|
|
37
39
|
- **Evidence Based:** Point out the exact line number where the violation occurs.
|
|
38
40
|
|
|
@@ -4,6 +4,8 @@ version: 3.0.0
|
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Mandatory Quality Gate (Test, Lint, Security).
|
|
6
6
|
category: validation
|
|
7
|
+
behavior: validation
|
|
8
|
+
intent: validate
|
|
7
9
|
priority: critical
|
|
8
10
|
tags: [ci, testing, linting, security, gatekeeper]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -30,7 +32,7 @@ pipeline: [analyze, validate, complete]
|
|
|
30
32
|
- If minor lint errors exist, attempt an auto-fix (`npm run lint --fix`).
|
|
31
33
|
- If tests fail, report the exact failure to the user. Do NOT pretend it passed.
|
|
32
34
|
|
|
33
|
-
## 🛡️
|
|
35
|
+
## 🛡️ 3. Constraints & Rules
|
|
34
36
|
- **Zero Tolerance:** A failed test or a TypeScript error means the Gate is FAILED. Do not ignore errors.
|
|
35
37
|
- **No Force:** Never use `--force` or `--no-verify` flags.
|
|
36
38
|
- **Real Execution:** You MUST run the actual CLI commands using `run_command` and wait for the output.
|
package/skills.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "3.0.1",
|
|
3
3
|
"name": "AI Developer Skill OS",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Enterprise-ready Agentic Framework for AI Coding Agents — Engineering + Frontend + Backend",
|
|
5
5
|
"language": "en",
|
|
6
6
|
"author": "Quang Khánh",
|
|
7
7
|
"homepage": "https://github.com/phamquangkhanh2999/ai-developer-skill-os.git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"cursor",
|
|
28
28
|
"windsurf"
|
|
29
29
|
],
|
|
30
|
-
"status": "
|
|
30
|
+
"status": "ready",
|
|
31
31
|
"description": "Tra cứu danh sách toàn bộ kỹ năng (skills) hiện có và đọc các mẹo kết hợp để code hiệu quả."
|
|
32
32
|
},
|
|
33
33
|
{
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"cursor",
|
|
54
54
|
"windsurf"
|
|
55
55
|
],
|
|
56
|
-
"status": "
|
|
56
|
+
"status": "ready",
|
|
57
57
|
"description": "Phân tích yêu cầu, lên kế hoạch thực thi chi tiết và điều phối các tác vụ cho đúng skill. Không tự viết code."
|
|
58
58
|
},
|
|
59
59
|
{
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"cursor",
|
|
79
79
|
"windsurf"
|
|
80
80
|
],
|
|
81
|
-
"status": "
|
|
81
|
+
"status": "ready",
|
|
82
82
|
"description": "Xác định các file cần thiết, tóm tắt kiến trúc và quản lý bộ nhớ ngữ cảnh để tránh tràn bộ nhớ."
|
|
83
83
|
},
|
|
84
84
|
{
|
|
@@ -108,13 +108,13 @@
|
|
|
108
108
|
"cursor",
|
|
109
109
|
"windsurf"
|
|
110
110
|
],
|
|
111
|
-
"status": "
|
|
111
|
+
"status": "ready",
|
|
112
112
|
"description": "Kiểm toán toàn bộ dự án để phát hiện bug ẩn, rủi ro bảo mật, vấn đề hiệu năng và nợ kỹ thuật trước khi sửa code."
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
|
-
"name": "qk-bug-
|
|
116
|
-
"path": "skills/qk-bug-
|
|
117
|
-
"version": "
|
|
115
|
+
"name": "qk-bug-resolution",
|
|
116
|
+
"path": "skills/qk-bug-resolution/SKILL.md",
|
|
117
|
+
"version": "3.0.0",
|
|
118
118
|
"category": "engineering",
|
|
119
119
|
"priority": "P0",
|
|
120
120
|
"trigger": [
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"cursor",
|
|
137
137
|
"windsurf"
|
|
138
138
|
],
|
|
139
|
-
"status": "
|
|
139
|
+
"status": "ready",
|
|
140
140
|
"description": "Chẩn đoán và sửa lỗi an toàn. Tái hiện lỗi, tìm nguyên nhân gốc rễ và áp dụng bản sửa lỗi tối thiểu, có kiểm chứng."
|
|
141
141
|
},
|
|
142
142
|
{
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"cursor",
|
|
165
165
|
"windsurf"
|
|
166
166
|
],
|
|
167
|
-
"status": "
|
|
167
|
+
"status": "ready",
|
|
168
168
|
"description": "Tái cấu trúc và dọn dẹp mã nguồn để dễ bảo trì hơn mà không làm thay đổi logic hoạt động bên ngoài."
|
|
169
169
|
},
|
|
170
170
|
{
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"cursor",
|
|
193
193
|
"windsurf"
|
|
194
194
|
],
|
|
195
|
-
"status": "
|
|
195
|
+
"status": "ready",
|
|
196
196
|
"description": "Chuyển đổi tài liệu API (curl, swagger...) thành code tích hợp frontend chuẩn xác, có type an toàn và xử lý lỗi."
|
|
197
197
|
},
|
|
198
198
|
{
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
"cursor",
|
|
222
222
|
"windsurf"
|
|
223
223
|
],
|
|
224
|
-
"status": "
|
|
224
|
+
"status": "ready",
|
|
225
225
|
"description": "Nâng cấp dependency, chuyển đổi framework và thay thế thư viện một cách an toàn với chiến lược không downtime."
|
|
226
226
|
},
|
|
227
227
|
{
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
"cursor",
|
|
248
248
|
"windsurf"
|
|
249
249
|
],
|
|
250
|
-
"status": "
|
|
250
|
+
"status": "ready",
|
|
251
251
|
"description": "Viết commit message chuẩn Conventional Commits, mô tả Pull Request, Changelog và Release Notes chuyên nghiệp."
|
|
252
252
|
},
|
|
253
253
|
{
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
"cursor",
|
|
275
275
|
"windsurf"
|
|
276
276
|
],
|
|
277
|
-
"status": "
|
|
277
|
+
"status": "ready",
|
|
278
278
|
"description": "Phân tích cấu trúc thư mục frontend và quyết định vị trí đặt file chuẩn xác theo kiến trúc hiện tại."
|
|
279
279
|
},
|
|
280
280
|
{
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
"cursor",
|
|
303
303
|
"windsurf"
|
|
304
304
|
],
|
|
305
|
-
"status": "
|
|
305
|
+
"status": "ready",
|
|
306
306
|
"description": "Ép buộc sử dụng design system, component library và token hiện có, ngăn chặn việc viết HTML/CSS rác."
|
|
307
307
|
},
|
|
308
308
|
{
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
"cursor",
|
|
333
333
|
"windsurf"
|
|
334
334
|
],
|
|
335
|
-
"status": "
|
|
335
|
+
"status": "ready",
|
|
336
336
|
"description": "Xây dựng các màn hình và layout phức tạp từ yêu cầu, tái sử dụng component và đảm bảo responsive."
|
|
337
337
|
},
|
|
338
338
|
{
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
"cursor",
|
|
360
360
|
"windsurf"
|
|
361
361
|
],
|
|
362
|
-
"status": "
|
|
362
|
+
"status": "ready",
|
|
363
363
|
"description": "Tạo các UI Component độc lập, tái sử dụng được, có type an toàn và tuân thủ chuẩn design system."
|
|
364
364
|
},
|
|
365
365
|
{
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
"cursor",
|
|
389
389
|
"windsurf"
|
|
390
390
|
],
|
|
391
|
-
"status": "
|
|
391
|
+
"status": "ready",
|
|
392
392
|
"description": "Xác định và triển khai chiến lược quản lý state phù hợp (Zustand, Redux, React Query, Local State)."
|
|
393
393
|
},
|
|
394
394
|
{
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
"cursor",
|
|
419
419
|
"windsurf"
|
|
420
420
|
],
|
|
421
|
-
"status": "
|
|
421
|
+
"status": "ready",
|
|
422
422
|
"description": "Xây dựng Form chuẩn xác với quản lý trạng thái, validate dữ liệu (Zod, Yup) và xử lý hiển thị lỗi."
|
|
423
423
|
},
|
|
424
424
|
{
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
"cursor",
|
|
449
449
|
"windsurf"
|
|
450
450
|
],
|
|
451
|
-
"status": "
|
|
451
|
+
"status": "ready",
|
|
452
452
|
"description": "Tạo các bảng dữ liệu admin với đầy đủ tính năng phân trang, sắp xếp, lọc và thao tác thêm/sửa/xóa (CRUD)."
|
|
453
453
|
},
|
|
454
454
|
{
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
"cursor",
|
|
476
476
|
"windsurf"
|
|
477
477
|
],
|
|
478
|
-
"status": "
|
|
478
|
+
"status": "ready",
|
|
479
479
|
"description": "Chẩn đoán và sửa các lỗi đặc thù frontend như Hydration error, infinite re-render, stale closure và vỡ CSS."
|
|
480
480
|
},
|
|
481
481
|
{
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
"cursor",
|
|
505
505
|
"windsurf"
|
|
506
506
|
],
|
|
507
|
-
"status": "
|
|
507
|
+
"status": "ready",
|
|
508
508
|
"description": "Viết Unit, Component và E2E test bằng Jest, Vitest, RTL, Cypress. Tập trung vào hành vi người dùng."
|
|
509
509
|
},
|
|
510
510
|
{
|
|
@@ -532,7 +532,7 @@
|
|
|
532
532
|
"cursor",
|
|
533
533
|
"windsurf"
|
|
534
534
|
],
|
|
535
|
-
"status": "
|
|
535
|
+
"status": "ready",
|
|
536
536
|
"description": "Tối ưu hóa hiệu năng frontend: giảm kích thước bundle, chặn re-render thừa, lazy load và cải thiện Web Vitals."
|
|
537
537
|
},
|
|
538
538
|
{
|
|
@@ -560,7 +560,7 @@
|
|
|
560
560
|
"cursor",
|
|
561
561
|
"windsurf"
|
|
562
562
|
],
|
|
563
|
-
"status": "
|
|
563
|
+
"status": "ready",
|
|
564
564
|
"description": "Kiểm tra và sửa lỗi khả năng tiếp cận (a11y/WCAG). Đảm bảo hỗ trợ phím, screen reader và semantic HTML."
|
|
565
565
|
},
|
|
566
566
|
{
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
"cursor",
|
|
588
588
|
"windsurf"
|
|
589
589
|
],
|
|
590
|
-
"status": "
|
|
590
|
+
"status": "ready",
|
|
591
591
|
"description": "Kiểm soát cấu trúc backend, ép buộc tuân thủ mô hình Layer (Controller/Service/Repository) và vị trí file."
|
|
592
592
|
},
|
|
593
593
|
{
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
"cursor",
|
|
618
618
|
"windsurf"
|
|
619
619
|
],
|
|
620
|
-
"status": "
|
|
620
|
+
"status": "ready",
|
|
621
621
|
"description": "Thiết kế database schema, viết script migration và tối ưu truy vấn cho SQL/NoSQL bằng ORM (Prisma, Drizzle...)."
|
|
622
622
|
},
|
|
623
623
|
{
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
"cursor",
|
|
647
647
|
"windsurf"
|
|
648
648
|
],
|
|
649
|
-
"status": "
|
|
649
|
+
"status": "ready",
|
|
650
650
|
"description": "Triển khai tính năng đăng nhập (JWT, OAuth), phân quyền (RBAC) và bảo vệ app khỏi các lỗ hổng OWASP."
|
|
651
651
|
},
|
|
652
652
|
{
|
|
@@ -673,19 +673,15 @@
|
|
|
673
673
|
"cursor",
|
|
674
674
|
"windsurf"
|
|
675
675
|
],
|
|
676
|
-
"status": "
|
|
676
|
+
"status": "ready",
|
|
677
677
|
"description": "Cấu hình CI/CD pipelines, tạo Dockerfile và thiết lập môi trường để deploy lên Vercel, AWS hoặc VPS."
|
|
678
678
|
}
|
|
679
679
|
],
|
|
680
|
-
"
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
{
|
|
688
|
-
"path": "skills/qk-"
|
|
689
|
-
}
|
|
690
|
-
]
|
|
680
|
+
"categories": {
|
|
681
|
+
"orchestration": ["qk-orchestrator", "qk-context-loader", "qk-policy-engine", "qk-access-policy"],
|
|
682
|
+
"engineering": ["qk-feature-delivery", "qk-api-lifecycle", "qk-data-lifecycle", "qk-design-to-code", "qk-system-evolution", "qk-project-bootstrap"],
|
|
683
|
+
"validation": ["qk-validation-gate", "qk-engineering-standard", "qk-ui-audit", "qk-project-health", "qk-bug-resolution"],
|
|
684
|
+
"ops": ["qk-production-release", "qk-ai-builder", "qk-project-bootstrap", "qk-docs", "qk-documentation-system", "qk-project-memory"],
|
|
685
|
+
"knowledge": ["knowledge/frontend/react.md", "knowledge/backend/nodejs.md"]
|
|
686
|
+
}
|
|
691
687
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qk-[skill-name]
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
updated: YYYY-MM-DD
|
|
5
|
+
description: Brief, action-oriented description of what this skill does.
|
|
6
|
+
category: engineering # general category
|
|
7
|
+
behavior: static-analysis # static-analysis | development | validation | maintenance
|
|
8
|
+
intent: review-code # review-code | fix-bug | implement-feature | validate | maintain
|
|
9
|
+
priority: medium # low | medium | high | critical
|
|
10
|
+
tags: [tag1, tag2]
|
|
11
|
+
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
12
|
+
trigger: Natural language trigger phrase.
|
|
13
|
+
inputs: [List of required inputs]
|
|
14
|
+
outputs: [Expected output format]
|
|
15
|
+
allowed_tools: [read_file, write_to_file]
|
|
16
|
+
pipeline: [analyze, plan, implement, validate, complete]
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# 🛠️ qk-[skill-name] - Standard Operating Procedure
|
|
20
|
+
|
|
21
|
+
> **Goal:** [State the primary objective of this skill clearly]
|
|
22
|
+
|
|
23
|
+
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
1. **Analyze:**
|
|
25
|
+
- Step 1...
|
|
26
|
+
2. **Plan:**
|
|
27
|
+
- Step 2...
|
|
28
|
+
3. **Implement:**
|
|
29
|
+
- Step 3...
|
|
30
|
+
4. **Verify:**
|
|
31
|
+
- Step 4...
|
|
32
|
+
|
|
33
|
+
## 🛡️ 2. Constraints & Rules
|
|
34
|
+
- **Rule 1:** [Hard constraint 1]
|
|
35
|
+
- **Rule 2:** [Hard constraint 2]
|
|
36
|
+
|
|
37
|
+
## 🤝 3. Handoff Pipeline (Optional)
|
|
38
|
+
- Pass to `qk-validation-gate` upon completion if necessary.
|