simple-skills 1.3.1 → 1.3.2
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/README.md +1 -0
- package/package.json +1 -1
- package/skills/engineering/brainstorming/SKILL.md +41 -134
- package/skills/engineering/chart-generator/SKILL.md +0 -2
- package/skills/engineering/dispatching-parallel-agents/SKILL.md +30 -65
- package/skills/engineering/doc-coauthoring/SKILL.md +78 -240
- package/skills/engineering/finishing-a-development-branch/SKILL.md +12 -15
- package/skills/engineering/frontend-design/SKILL.md +18 -74
- package/skills/engineering/image-to-code/SKILL.md +61 -121
- package/skills/engineering/implement/SKILL.md +2 -0
- package/skills/engineering/skill-translator/SKILL.md +128 -0
- package/skills/engineering/subagent-driven-development/SKILL.md +32 -41
- package/skills/engineering/verification-before-completion/SKILL.md +0 -5
- package/skills/engineering/xlsx/SKILL.md +0 -1
- package/skills/engineering/software-architecture/SKILL.md +0 -76
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: xlsx
|
|
3
3
|
description: "当电子表格文件是主要输入或输出时使用此技能。适用于用户需要执行以下操作的任何任务:打开、读取、编辑或修复现有.xlsx、.xlsm、.csv或.tsv文件(例如添加列、计算公式、格式化、制作图表、清理杂乱数据);从零开始或从其他数据源创建新电子表格;或在表格类文件格式之间转换。尤其当用户通过名称或路径引用电子表格文件时——即使是随意提及(比如"我下载文件夹里的xlsx")——并且需要对其进行操作或基于其生成内容时触发。也适用于清理或重构杂乱的表格数据文件(格式错误的行、错位的表头、垃圾数据)为规范的电子表格。交付物必须是电子表格文件。当主要交付物是Word文档、HTML报告、独立Python脚本、数据库流水线或Google Sheets API集成时,即使涉及表格数据也不要触发此技能。"
|
|
4
|
-
license: 专有。完整条款见LICENSE.txt
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# 输出要求
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: software-architecture
|
|
3
|
-
description: Guide for quality focused software architecture. This skill should be used when users want to write code, design architecture, analyze code, in any case that relates to software development.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Software Architecture Development Skill
|
|
7
|
-
|
|
8
|
-
This skill provides guidance for quality focused software development and architecture. It is based on Clean Architecture and Domain Driven Design principles.
|
|
9
|
-
|
|
10
|
-
## Code Style Rules
|
|
11
|
-
|
|
12
|
-
### General Principles
|
|
13
|
-
|
|
14
|
-
- **Early return pattern**: Always use early returns when possible, over nested conditions for better readability
|
|
15
|
-
- Avoid code duplication through creation of reusable functions and modules
|
|
16
|
-
- Decompose long (more than 80 lines of code) components and functions into multiple smaller components and functions. If they cannot be used anywhere else, keep it in the same file. But if file longer than 200 lines of code, it should be split into multiple files.
|
|
17
|
-
- Use arrow functions instead of function declarations when possible
|
|
18
|
-
|
|
19
|
-
### Best Practices
|
|
20
|
-
|
|
21
|
-
#### Library-First Approach
|
|
22
|
-
|
|
23
|
-
- **ALWAYS search for existing solutions before writing custom code**
|
|
24
|
-
- Check npm for existing libraries that solve the problem
|
|
25
|
-
- Evaluate existing services/SaaS solutions
|
|
26
|
-
- Consider third-party APIs for common functionality
|
|
27
|
-
- Use libraries instead of writing your own utils or helpers. For example, use `cockatiel` instead of writing your own retry logic.
|
|
28
|
-
- **When custom code IS justified:**
|
|
29
|
-
- Specific business logic unique to the domain
|
|
30
|
-
- Performance-critical paths with special requirements
|
|
31
|
-
- When external dependencies would be overkill
|
|
32
|
-
- Security-sensitive code requiring full control
|
|
33
|
-
- When existing solutions don't meet requirements after thorough evaluation
|
|
34
|
-
|
|
35
|
-
#### Architecture and Design
|
|
36
|
-
|
|
37
|
-
- **Clean Architecture & DDD Principles:**
|
|
38
|
-
- Follow domain-driven design and ubiquitous language
|
|
39
|
-
- Separate domain entities from infrastructure concerns
|
|
40
|
-
- Keep business logic independent of frameworks
|
|
41
|
-
- Define use cases clearly and keep them isolated
|
|
42
|
-
- **Naming Conventions:**
|
|
43
|
-
- **AVOID** generic names: `utils`, `helpers`, `common`, `shared`
|
|
44
|
-
- **USE** domain-specific names: `OrderCalculator`, `UserAuthenticator`, `InvoiceGenerator`
|
|
45
|
-
- Follow bounded context naming patterns
|
|
46
|
-
- Each module should have a single, clear purpose
|
|
47
|
-
- **Separation of Concerns:**
|
|
48
|
-
- Do NOT mix business logic with UI components
|
|
49
|
-
- Keep database queries out of controllers
|
|
50
|
-
- Maintain clear boundaries between contexts
|
|
51
|
-
- Ensure proper separation of responsibilities
|
|
52
|
-
|
|
53
|
-
#### Anti-Patterns to Avoid
|
|
54
|
-
|
|
55
|
-
- **NIH (Not Invented Here) Syndrome:**
|
|
56
|
-
- Don't build custom auth when Auth0/Supabase exists
|
|
57
|
-
- Don't write custom state management instead of using Redux/Zustand
|
|
58
|
-
- Don't create custom form validation instead of using established libraries
|
|
59
|
-
- **Poor Architectural Choices:**
|
|
60
|
-
- Mixing business logic with UI components
|
|
61
|
-
- Database queries directly in controllers
|
|
62
|
-
- Lack of clear separation of concerns
|
|
63
|
-
- **Generic Naming Anti-Patterns:**
|
|
64
|
-
- `utils.js` with 50 unrelated functions
|
|
65
|
-
- `helpers/misc.js` as a dumping ground
|
|
66
|
-
- `common/shared.js` with unclear purpose
|
|
67
|
-
- Remember: Every line of custom code is a liability that needs maintenance, testing, and documentation
|
|
68
|
-
|
|
69
|
-
#### Code Quality
|
|
70
|
-
|
|
71
|
-
- Proper error handling with typed catch blocks
|
|
72
|
-
- Break down complex logic into smaller, reusable functions
|
|
73
|
-
- Avoid deep nesting (max 3 levels)
|
|
74
|
-
- Keep functions focused and under 50 lines when possible
|
|
75
|
-
- Keep files focused and under 200 lines of code when possible
|
|
76
|
-
```
|