@sylphx/flow 1.0.5 → 1.0.6
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/CHANGELOG.md +6 -0
- package/assets/agents/coder.md +162 -0
- package/assets/agents/orchestrator.md +416 -0
- package/assets/agents/reviewer.md +192 -0
- package/assets/agents/writer.md +364 -0
- package/assets/icons/flow-notification-icon.png +0 -0
- package/assets/icons/flow-notification-icon.svg +17 -0
- package/assets/knowledge/data/sql.md +216 -0
- package/assets/knowledge/guides/saas-template.md +85 -0
- package/assets/knowledge/guides/system-prompt.md +344 -0
- package/assets/knowledge/guides/tech-stack.md +92 -0
- package/assets/knowledge/guides/ui-ux.md +44 -0
- package/assets/knowledge/stacks/nextjs-app.md +165 -0
- package/assets/knowledge/stacks/node-api.md +220 -0
- package/assets/knowledge/stacks/react-app.md +232 -0
- package/assets/knowledge/universal/deployment.md +109 -0
- package/assets/knowledge/universal/performance.md +121 -0
- package/assets/knowledge/universal/security.md +79 -0
- package/assets/knowledge/universal/testing.md +111 -0
- package/assets/output-styles/silent.md +23 -0
- package/assets/rules/code-standards.md +346 -0
- package/assets/rules/core.md +189 -0
- package/assets/slash-commands/commit.md +23 -0
- package/assets/slash-commands/context.md +112 -0
- package/assets/slash-commands/explain.md +35 -0
- package/assets/slash-commands/review.md +39 -0
- package/assets/slash-commands/test.md +30 -0
- package/package.json +4 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Review code for quality, security, and best practices
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Code Review
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
$ARGUMENTS
|
|
10
|
+
|
|
11
|
+
## Your Task
|
|
12
|
+
|
|
13
|
+
Review the code above (or at the specified location) and provide feedback on:
|
|
14
|
+
|
|
15
|
+
1. **Code Quality**
|
|
16
|
+
- Readability and maintainability
|
|
17
|
+
- Code organization and structure
|
|
18
|
+
- Naming conventions
|
|
19
|
+
- Comments and documentation
|
|
20
|
+
|
|
21
|
+
2. **Security**
|
|
22
|
+
- Potential vulnerabilities
|
|
23
|
+
- Input validation
|
|
24
|
+
- Authentication/authorization issues
|
|
25
|
+
- Data exposure risks
|
|
26
|
+
|
|
27
|
+
3. **Performance**
|
|
28
|
+
- Algorithmic efficiency
|
|
29
|
+
- Resource usage
|
|
30
|
+
- Potential bottlenecks
|
|
31
|
+
- Scalability concerns
|
|
32
|
+
|
|
33
|
+
4. **Best Practices**
|
|
34
|
+
- Language-specific idioms
|
|
35
|
+
- Design patterns
|
|
36
|
+
- Error handling
|
|
37
|
+
- Testing coverage
|
|
38
|
+
|
|
39
|
+
Provide specific, actionable suggestions for improvement.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Write comprehensive tests for code
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Write Tests
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
$ARGUMENTS
|
|
10
|
+
|
|
11
|
+
## Your Task
|
|
12
|
+
|
|
13
|
+
Write comprehensive tests for the code above (or at the specified location) that include:
|
|
14
|
+
|
|
15
|
+
1. **Unit Tests**
|
|
16
|
+
- Test individual functions/methods
|
|
17
|
+
- Cover edge cases and boundary conditions
|
|
18
|
+
- Test error handling
|
|
19
|
+
|
|
20
|
+
2. **Integration Tests** (if applicable)
|
|
21
|
+
- Test component interactions
|
|
22
|
+
- Test with realistic data
|
|
23
|
+
|
|
24
|
+
3. **Test Coverage**
|
|
25
|
+
- Aim for high coverage of critical paths
|
|
26
|
+
- Include positive and negative test cases
|
|
27
|
+
- Test validation and error conditions
|
|
28
|
+
|
|
29
|
+
Use the project's existing testing framework and follow its conventions.
|
|
30
|
+
Ensure tests are readable, maintainable, and properly documented.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sylphx/flow",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "AI-powered development workflow automation with autonomous loop mode and smart configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"start": "bun src/index.ts",
|
|
15
15
|
"test": "vitest run",
|
|
16
16
|
"test:watch": "vitest",
|
|
17
|
-
"type-check": "tsc --noEmit"
|
|
17
|
+
"type-check": "tsc --noEmit",
|
|
18
|
+
"prepublishOnly": "rm -rf assets && cp -r ../../assets assets"
|
|
18
19
|
},
|
|
19
20
|
"dependencies": {
|
|
20
21
|
"commander": "^14.0.2",
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
},
|
|
39
40
|
"files": [
|
|
40
41
|
"src",
|
|
42
|
+
"assets",
|
|
41
43
|
"README.md",
|
|
42
44
|
"CHANGELOG.md",
|
|
43
45
|
"LOOP_MODE.md",
|