Skills-Agent / rules
Cursor rule4 starsChanged 33 days agoMITView on GitHub
Integrate provided sample code/snippets into the existing system with minimal changes and minimal risk. Use when the user gives a code mẫu and wants to merge it into current project. Triggers: integrate, merge snippet, gộp code mẫu, ghép code, áp code mẫu vào hệ thống.
We split this integrate.mdc into the rules it gives an agent
13 rules. About 0 are common, 9 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
START: Read .ai-memory.md from project root.
- Very specific: line 11
END: Update .ai-memory.md using Memory Compaction Rules with: integration points, files touched, behavior changes (if any), and …
- Distinctive: line 17
Before editing, verify these inputs exist.
- Distinctive: line 27
Do not reformat or restructure unrelated code.
- Distinctive: line 28
Prefer adapters/wrappers over rewriting existing modules.
- Distinctive: line 29
If the integration requires changing shared interfaces, introduce compatibility shims (or feature flag) instead of breaking changes.
- Distinctive: line 30
If uncertain about side effects, stop and ask rather than guessing.
- Distinctive: line 37
Prefer adding a thin adapter layer rather than changing existing call sites.
- Distinctive: line 38
Prefer dependency injection/config wiring over global edits.
- Very specific: line 40
Add new file(s) when that reduces risk (e.g., adapter/, integrations/).
- Distinctive: line 43
Run/adjust existing tests if present.
- Distinctive: line 44
Ensure no unrelated behavior changes.
- Very specific: line 56
All code snippets and example files referenced or produced by this skill must be UTF-8 encoded.
≈ “Common” is an estimate: at least 1 in 5 of the 6,350 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: "Integrate provided sample code/snippets into the existing system with minimal changes and minimal risk. Use when the user gives a code mẫu and wants to merge it into current project. Triggers: integrate, merge snippet, gộp code mẫu, ghép code, áp code mẫu vào hệ thống." encoding: "UTF-8" agents: [backend-specialist, frontend-specialist, debugger] globs: "" alwaysApply: false --- ## Memory Protocol **START**: Read `.ai-memory.md` from project root. Focus on: entry points, key directories, conventions, and any integration decisions already logged. **END**: Update `.ai-memory.md` using **Memory Compaction Rules** with: integration points, files touched, behavior changes (if any), and verification notes. ## Goal Merge the requested sample code into the current codebase **without broad refactors**, keeping behavior stable and avoiding changes to unrelated files. ## Socratic Gate (ask if missing) Before editing, verify these inputs exist. If any is missing or ambiguous, ASK: 1. The **sample code** to integrate (full snippet + expected behavior). 2. The **target location** in this project (file/module/feature area). 3. Constraints: must keep API stable? must keep UI stable? backward compatible? - [ ] Clean code chuẩn (Standard clean code applied) - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated) ## Rules (Blast-radius control) - Touch the **smallest** possible set of files. - Do **not** reformat or restructure unrelated code. - Prefer **adapters/wrappers** over rewriting existing modules. - If the integration requires changing shared interfaces, introduce compatibility shims (or feature flag) instead of breaking changes. - If uncertain about side effects, **stop and ask** rather than guessing. ## Workflow 1. **Read Memory** — Load `.ai-memory.md` for architecture + conventions. 2. **Locate Integration Point** — Identify the narrowest place to hook in (entry, router, service, component, util). 3. **Diff the Concepts** — Map sample code concepts → existing abstractions (types, services, routes, state). 4. **Design Minimal Bridge**: - Prefer adding a thin adapter layer rather than changing existing call sites. - Prefer dependency injection/config wiring over global edits. 5. **Implement in Small Steps**: - Add new file(s) when that reduces risk (e.g., `adapter/`, `integrations/`). - Modify existing files only where the integration connects. 6. **Verification**: - Run/adjust existing tests if present; otherwise add a minimal smoke test when feasible. - Ensure no unrelated behavior changes. 7. **Quality Gate** — Read `.kiro/skills/_scripts/checklist.md`. 8. **Update Memory** — Log only high-signal bullets (integration point, key decision, files touched, outcome). ## Output Format - Integration target (what feature/module) - Files touched (added/modified) - Minimal change strategy (1–3 bullets) - Verification performed (commands/tests) - Risks / follow-ups (if any) ## Encoding All code snippets and example files referenced or produced by this skill must be UTF-8 encoded. When applicable, include `encoding: "UTF-8"` in SKILL.md front-matter and ensure saved files use UTF-8 (no BOM).
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 3,978 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository96 other files it gives its agents.
- .cursor/rules/agents.mdcCursor rule
- .cursor/rules/brainstorm.mdcCursor rule
- .cursor/rules/clean.mdcCursor rule
- .cursor/rules/create.mdcCursor rule
- .cursor/rules/debug.mdcCursor rule
- .cursor/rules/deploy.mdcCursor rule
- .cursor/rules/enhance.mdcCursor rule
- .cursor/rules/explain.mdcCursor rule
- .cursor/rules/instructions.mdcCursor rule
- .cursor/rules/motion-ui.mdcCursor rule
- .cursor/rules/orchestrate.mdcCursor rule
- .cursor/rules/plan.mdcCursor rule
- .cursor/rules/preview.mdcCursor rule
- .cursor/rules/status.mdcCursor rule
- .cursor/rules/test.mdcCursor rule
- .cursor/rules/ui-ux-pro-max.mdcCursor rule
- agentsSkill
- brainstormSkill
- cleanSkill
- createSkill
- debugSkill
- deploySkill
- enhanceSkill
- explainSkill
- integrateSkill
- motion-uiSkill
- orchestrateSkill
- planSkill
- previewSkill
- statusSkill
- testSkill
- ui-ux-pro-maxSkill
- agentsSkill
- brainstormSkill
- cleanSkill
- createSkill
- debugSkill
- deploySkill
- enhanceSkill
- explainSkill
- integrateSkill
- motion-uiSkill
- orchestrateSkill
- planSkill
- previewSkill
- statusSkill
- testSkill
- ui-ux-pro-maxSkill
- agentsSkill
- brainstormSkill
- cleanSkill
- createSkill
- debugSkill
- deploySkill
- enhanceSkill
- explainSkill
- integrateSkill
- motion-uiSkill
- orchestrateSkill
- planSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

