sincron-plan 1.0.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/LICENSE +20 -0
- package/README.md +192 -0
- package/agents/mapeador.md +232 -0
- package/agents/pesquisador.md +198 -0
- package/agents/planejador.md +230 -0
- package/agents/questionador.md +156 -0
- package/bin/install.js +423 -0
- package/commands/sincron-map.md +190 -0
- package/commands/sincron-plan.md +412 -0
- package/docs/arquitetura.md +106 -0
- package/docs/fluxo.md +166 -0
- package/package.json +42 -0
- package/templates/PRD.md +101 -0
- package/templates/ROADMAP.md +101 -0
- package/templates/codebase/ARCHITECTURE.md +45 -0
- package/templates/codebase/CONCERNS.md +53 -0
- package/templates/codebase/STACK.md +34 -0
- package/templates/codebase/STRUCTURE.md +46 -0
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sincron-plan",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Plugin de planejamento estruturado e mapeamento de codebase para Claude Code. Do requisito ao PRD, com questionamento inteligente.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"sincron-plan": "bin/install.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"bin",
|
|
10
|
+
"commands",
|
|
11
|
+
"agents",
|
|
12
|
+
"templates",
|
|
13
|
+
"docs"
|
|
14
|
+
],
|
|
15
|
+
"keywords": [
|
|
16
|
+
"planejamento",
|
|
17
|
+
"prd",
|
|
18
|
+
"requisitos",
|
|
19
|
+
"codebase",
|
|
20
|
+
"mapeamento",
|
|
21
|
+
"documentacao",
|
|
22
|
+
"ia",
|
|
23
|
+
"inteligencia-artificial",
|
|
24
|
+
"claude-code",
|
|
25
|
+
"plugin"
|
|
26
|
+
],
|
|
27
|
+
"author": "Sincron Framework",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/MLTCorp/sincron-auto.git"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/MLTCorp/sincron-auto/tree/sincron-plan",
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/MLTCorp/sincron-auto/issues"
|
|
36
|
+
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=16.7.0"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {},
|
|
41
|
+
"devDependencies": {}
|
|
42
|
+
}
|
package/templates/PRD.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# PRD: [Project Name]
|
|
2
|
+
|
|
3
|
+
**Generated:** [YYYY-MM-DD]
|
|
4
|
+
**Source:** Sincron-Plan
|
|
5
|
+
|
|
6
|
+
## Executive Summary
|
|
7
|
+
[2-3 sentences describing what this is]
|
|
8
|
+
|
|
9
|
+
## Problem Statement
|
|
10
|
+
[What problem this solves]
|
|
11
|
+
|
|
12
|
+
## Target Users
|
|
13
|
+
[Who will use this]
|
|
14
|
+
|
|
15
|
+
### User Personas
|
|
16
|
+
| Persona | Description | Primary Goals |
|
|
17
|
+
|---------|-------------|---------------|
|
|
18
|
+
| [name] | [who they are] | [what they want] |
|
|
19
|
+
|
|
20
|
+
## Success Metrics
|
|
21
|
+
[How we know it's working]
|
|
22
|
+
|
|
23
|
+
| Metric | Target | How to Measure |
|
|
24
|
+
|--------|--------|----------------|
|
|
25
|
+
| [name] | [value] | [method] |
|
|
26
|
+
|
|
27
|
+
## Requirements
|
|
28
|
+
|
|
29
|
+
### v1 (MVP)
|
|
30
|
+
| ID | Requirement | Phase | Priority |
|
|
31
|
+
|----|-------------|-------|----------|
|
|
32
|
+
| REQ-001 | [description] | 1 | Must Have |
|
|
33
|
+
|
|
34
|
+
### v2 (Future)
|
|
35
|
+
| ID | Requirement | Rationale for Deferral |
|
|
36
|
+
|----|-------------|------------------------|
|
|
37
|
+
| REQ-010 | [description] | [why not v1] |
|
|
38
|
+
|
|
39
|
+
### Out of Scope
|
|
40
|
+
| Feature | Reason |
|
|
41
|
+
|---------|--------|
|
|
42
|
+
| [feature] | [why excluded] |
|
|
43
|
+
|
|
44
|
+
## Phases
|
|
45
|
+
|
|
46
|
+
### Phase 1: [Name]
|
|
47
|
+
**Goal**: [What this delivers]
|
|
48
|
+
**Requirements**: REQ-001, REQ-002, ...
|
|
49
|
+
**Success Criteria**:
|
|
50
|
+
1. [Observable behavior]
|
|
51
|
+
2. [Observable behavior]
|
|
52
|
+
|
|
53
|
+
**Deliverables**:
|
|
54
|
+
- [ ] [Deliverable 1]
|
|
55
|
+
- [ ] [Deliverable 2]
|
|
56
|
+
|
|
57
|
+
### Phase 2: [Name]
|
|
58
|
+
**Goal**: [What this delivers]
|
|
59
|
+
**Requirements**: REQ-003, REQ-004, ...
|
|
60
|
+
**Depends On**: Phase 1
|
|
61
|
+
**Success Criteria**:
|
|
62
|
+
1. [Observable behavior]
|
|
63
|
+
2. [Observable behavior]
|
|
64
|
+
|
|
65
|
+
## Technical Decisions
|
|
66
|
+
| Decision | Options Considered | Choice | Rationale |
|
|
67
|
+
|----------|-------------------|--------|-----------|
|
|
68
|
+
| [topic] | [options] | [chosen] | [why] |
|
|
69
|
+
|
|
70
|
+
## Constraints
|
|
71
|
+
| Type | Constraint | Impact |
|
|
72
|
+
|------|------------|--------|
|
|
73
|
+
| Technical | [limitation] | [how it affects design] |
|
|
74
|
+
| Business | [requirement] | [how it affects scope] |
|
|
75
|
+
|
|
76
|
+
## Risks
|
|
77
|
+
| Risk | Likelihood | Impact | Mitigation |
|
|
78
|
+
|------|------------|--------|------------|
|
|
79
|
+
| [risk] | High/Med/Low | High/Med/Low | [action] |
|
|
80
|
+
|
|
81
|
+
## Dependencies
|
|
82
|
+
| Dependency | Type | Status | Owner |
|
|
83
|
+
|------------|------|--------|-------|
|
|
84
|
+
| [what] | Internal/External | Resolved/Pending | [who] |
|
|
85
|
+
|
|
86
|
+
## Open Questions
|
|
87
|
+
| Question | Impact | Decision Deadline |
|
|
88
|
+
|----------|--------|-------------------|
|
|
89
|
+
| [question] | [what depends on it] | [when needed] |
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Appendix
|
|
94
|
+
|
|
95
|
+
### Glossary
|
|
96
|
+
| Term | Definition |
|
|
97
|
+
|------|------------|
|
|
98
|
+
| [term] | [meaning in this context] |
|
|
99
|
+
|
|
100
|
+
### References
|
|
101
|
+
- [Document/Link]
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Roadmap: [Project Name]
|
|
2
|
+
|
|
3
|
+
**Generated:** [YYYY-MM-DD]
|
|
4
|
+
**Source:** Sincron-Plan
|
|
5
|
+
|
|
6
|
+
## Vision
|
|
7
|
+
[One sentence describing the end state]
|
|
8
|
+
|
|
9
|
+
## Phases Overview
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
|
|
13
|
+
│ Phase 1 │────▶│ Phase 2 │────▶│ Phase 3 │
|
|
14
|
+
│ [Name] │ │ [Name] │ │ [Name] │
|
|
15
|
+
└─────────────┘ └─────────────┘ └─────────────┘
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Phase 1: [Name]
|
|
19
|
+
|
|
20
|
+
### Goal
|
|
21
|
+
[What this phase delivers in one sentence]
|
|
22
|
+
|
|
23
|
+
### Key Deliverables
|
|
24
|
+
- [ ] [Deliverable 1]
|
|
25
|
+
- [ ] [Deliverable 2]
|
|
26
|
+
- [ ] [Deliverable 3]
|
|
27
|
+
|
|
28
|
+
### Requirements Included
|
|
29
|
+
- REQ-001: [brief description]
|
|
30
|
+
- REQ-002: [brief description]
|
|
31
|
+
|
|
32
|
+
### Success Criteria
|
|
33
|
+
1. [Observable outcome]
|
|
34
|
+
2. [Observable outcome]
|
|
35
|
+
|
|
36
|
+
### Dependencies
|
|
37
|
+
- None (foundation phase)
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Phase 2: [Name]
|
|
42
|
+
|
|
43
|
+
### Goal
|
|
44
|
+
[What this phase delivers in one sentence]
|
|
45
|
+
|
|
46
|
+
### Key Deliverables
|
|
47
|
+
- [ ] [Deliverable 1]
|
|
48
|
+
- [ ] [Deliverable 2]
|
|
49
|
+
|
|
50
|
+
### Requirements Included
|
|
51
|
+
- REQ-003: [brief description]
|
|
52
|
+
- REQ-004: [brief description]
|
|
53
|
+
|
|
54
|
+
### Success Criteria
|
|
55
|
+
1. [Observable outcome]
|
|
56
|
+
2. [Observable outcome]
|
|
57
|
+
|
|
58
|
+
### Dependencies
|
|
59
|
+
- Phase 1 complete
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Phase 3: [Name]
|
|
64
|
+
|
|
65
|
+
### Goal
|
|
66
|
+
[What this phase delivers in one sentence]
|
|
67
|
+
|
|
68
|
+
### Key Deliverables
|
|
69
|
+
- [ ] [Deliverable 1]
|
|
70
|
+
- [ ] [Deliverable 2]
|
|
71
|
+
|
|
72
|
+
### Requirements Included
|
|
73
|
+
- REQ-005: [brief description]
|
|
74
|
+
|
|
75
|
+
### Success Criteria
|
|
76
|
+
1. [Observable outcome]
|
|
77
|
+
|
|
78
|
+
### Dependencies
|
|
79
|
+
- Phase 2 complete
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Future Considerations (v2+)
|
|
84
|
+
|
|
85
|
+
### Deferred Features
|
|
86
|
+
| Feature | Phase | Rationale |
|
|
87
|
+
|---------|-------|-----------|
|
|
88
|
+
| [feature] | v2 | [why deferred] |
|
|
89
|
+
|
|
90
|
+
### Potential Extensions
|
|
91
|
+
- [Extension idea 1]
|
|
92
|
+
- [Extension idea 2]
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Risk Checkpoints
|
|
97
|
+
|
|
98
|
+
| After Phase | Check | Action if Failed |
|
|
99
|
+
|-------------|-------|------------------|
|
|
100
|
+
| 1 | [validation criteria] | [pivot/adjust] |
|
|
101
|
+
| 2 | [validation criteria] | [pivot/adjust] |
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Architecture: [Project Name]
|
|
2
|
+
|
|
3
|
+
**Analysis Date:** [YYYY-MM-DD]
|
|
4
|
+
|
|
5
|
+
## Pattern Overview
|
|
6
|
+
[Architectural pattern: MVC, Layered, Microservices, etc]
|
|
7
|
+
|
|
8
|
+
## Layers
|
|
9
|
+
| Layer | Purpose | Key Files |
|
|
10
|
+
|-------|---------|-----------|
|
|
11
|
+
| [name] | [what it does] | `path/to/files` |
|
|
12
|
+
|
|
13
|
+
## Data Flow
|
|
14
|
+
[How data moves through the system]
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
[User Action]
|
|
18
|
+
│
|
|
19
|
+
▼
|
|
20
|
+
[Entry Point] ─────▶ [Processing Layer]
|
|
21
|
+
│ │
|
|
22
|
+
│ ▼
|
|
23
|
+
│ [Data Layer]
|
|
24
|
+
│ │
|
|
25
|
+
▼ ▼
|
|
26
|
+
[Response] ◀──────── [Output]
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Entry Points
|
|
30
|
+
- [Entry point]: `path/to/file`
|
|
31
|
+
|
|
32
|
+
## Key Abstractions
|
|
33
|
+
- [Concept]: [What it represents]
|
|
34
|
+
|
|
35
|
+
## State Management
|
|
36
|
+
- **Approach**: [How state is managed]
|
|
37
|
+
- **Location**: `path/to/state`
|
|
38
|
+
|
|
39
|
+
## External Integrations
|
|
40
|
+
| Service | Purpose | Integration Point |
|
|
41
|
+
|---------|---------|-------------------|
|
|
42
|
+
| [name] | [why] | `path/to/file` |
|
|
43
|
+
|
|
44
|
+
## Design Patterns Used
|
|
45
|
+
- [Pattern]: [Where and why]
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Concerns: [Project Name]
|
|
2
|
+
|
|
3
|
+
**Analysis Date:** [YYYY-MM-DD]
|
|
4
|
+
|
|
5
|
+
## Tech Debt
|
|
6
|
+
| Area | Issue | Impact | Fix Approach |
|
|
7
|
+
|------|-------|--------|--------------|
|
|
8
|
+
| `path` | [problem] | [impact] | [how to fix] |
|
|
9
|
+
|
|
10
|
+
## Known Issues
|
|
11
|
+
| Symptom | Trigger | Workaround |
|
|
12
|
+
|---------|---------|------------|
|
|
13
|
+
| [what happens] | [when/how] | [temporary fix] |
|
|
14
|
+
|
|
15
|
+
## Fragile Areas
|
|
16
|
+
| Location | Why Fragile | Safe Modification Approach |
|
|
17
|
+
|----------|-------------|---------------------------|
|
|
18
|
+
| `path/to/file` | [reason] | [how to change safely] |
|
|
19
|
+
|
|
20
|
+
## Security Considerations
|
|
21
|
+
| Risk | Current Mitigation | Recommendation |
|
|
22
|
+
|------|-------------------|----------------|
|
|
23
|
+
| [vulnerability] | [what's in place] | [what should be done] |
|
|
24
|
+
|
|
25
|
+
## Test Coverage Gaps
|
|
26
|
+
| What's Not Tested | Risk Level | Priority |
|
|
27
|
+
|-------------------|------------|----------|
|
|
28
|
+
| [area/feature] | High/Medium/Low | P1/P2/P3 |
|
|
29
|
+
|
|
30
|
+
## Performance Concerns
|
|
31
|
+
| Area | Issue | Impact | Recommendation |
|
|
32
|
+
|------|-------|--------|----------------|
|
|
33
|
+
| `path` | [problem] | [user impact] | [fix] |
|
|
34
|
+
|
|
35
|
+
## Deprecated Code
|
|
36
|
+
| Location | Status | Migration Path |
|
|
37
|
+
|----------|--------|----------------|
|
|
38
|
+
| `path` | [active/unused] | [how to remove] |
|
|
39
|
+
|
|
40
|
+
## Missing Documentation
|
|
41
|
+
| Area | What's Needed | Priority |
|
|
42
|
+
|------|---------------|----------|
|
|
43
|
+
| [component/feature] | [doc type] | P1/P2/P3 |
|
|
44
|
+
|
|
45
|
+
## Recommendations Summary
|
|
46
|
+
### High Priority
|
|
47
|
+
1. [Action item]
|
|
48
|
+
|
|
49
|
+
### Medium Priority
|
|
50
|
+
1. [Action item]
|
|
51
|
+
|
|
52
|
+
### Low Priority
|
|
53
|
+
1. [Action item]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Stack: [Project Name]
|
|
2
|
+
|
|
3
|
+
**Analysis Date:** [YYYY-MM-DD]
|
|
4
|
+
|
|
5
|
+
## Languages
|
|
6
|
+
- [Language] [Version] - [Where used]
|
|
7
|
+
|
|
8
|
+
## Runtime
|
|
9
|
+
- **Environment**: [Node.js/Python/etc] [Version]
|
|
10
|
+
- **Package Manager**: [npm/yarn/pip/etc]
|
|
11
|
+
|
|
12
|
+
## Frameworks
|
|
13
|
+
- **Core**: [Framework] [Version]
|
|
14
|
+
- **Testing**: [Framework]
|
|
15
|
+
- **Build**: [Tool]
|
|
16
|
+
|
|
17
|
+
## Key Dependencies
|
|
18
|
+
| Package | Version | Purpose |
|
|
19
|
+
|---------|---------|---------|
|
|
20
|
+
| [name] | [ver] | [why] |
|
|
21
|
+
|
|
22
|
+
## Configuration
|
|
23
|
+
- **Environment**: [.env pattern]
|
|
24
|
+
- **Build**: [config files]
|
|
25
|
+
|
|
26
|
+
## Development Tools
|
|
27
|
+
- **Linting**: [Tool]
|
|
28
|
+
- **Formatting**: [Tool]
|
|
29
|
+
- **Type Checking**: [Tool]
|
|
30
|
+
|
|
31
|
+
## Scripts Disponíveis
|
|
32
|
+
| Script | Comando | Descrição |
|
|
33
|
+
|--------|---------|-----------|
|
|
34
|
+
| [name] | [command] | [what it does] |
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Structure: [Project Name]
|
|
2
|
+
|
|
3
|
+
**Analysis Date:** [YYYY-MM-DD]
|
|
4
|
+
|
|
5
|
+
## Directory Layout
|
|
6
|
+
```
|
|
7
|
+
project/
|
|
8
|
+
├── src/
|
|
9
|
+
│ ├── [dir]/ # [purpose]
|
|
10
|
+
│ └── [dir]/ # [purpose]
|
|
11
|
+
├── tests/
|
|
12
|
+
└── [other]/
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Where to Add New Code
|
|
16
|
+
| Type | Location | Example |
|
|
17
|
+
|------|----------|---------|
|
|
18
|
+
| Component | `src/components/` | `Button.tsx` |
|
|
19
|
+
| API Route | `src/api/` | `users.ts` |
|
|
20
|
+
| Utility | `src/utils/` | `format.ts` |
|
|
21
|
+
| Type/Interface | `src/types/` | `user.ts` |
|
|
22
|
+
| Hook | `src/hooks/` | `useAuth.ts` |
|
|
23
|
+
| Service | `src/services/` | `api.ts` |
|
|
24
|
+
| Test | `tests/` | `*.test.ts` |
|
|
25
|
+
|
|
26
|
+
## Naming Conventions
|
|
27
|
+
- Files: [pattern]
|
|
28
|
+
- Functions: [pattern]
|
|
29
|
+
- Components: [pattern]
|
|
30
|
+
- Constants: [pattern]
|
|
31
|
+
- Types/Interfaces: [pattern]
|
|
32
|
+
|
|
33
|
+
## Import Conventions
|
|
34
|
+
- **Absolute imports**: [pattern]
|
|
35
|
+
- **Relative imports**: [when to use]
|
|
36
|
+
- **Barrel exports**: [index.ts pattern]
|
|
37
|
+
|
|
38
|
+
## Key Files
|
|
39
|
+
| File | Purpose | Notes |
|
|
40
|
+
|------|---------|-------|
|
|
41
|
+
| `path/to/file` | [what it does] | [important notes] |
|
|
42
|
+
|
|
43
|
+
## Module Boundaries
|
|
44
|
+
| Module | Depends On | Depended By |
|
|
45
|
+
|--------|------------|-------------|
|
|
46
|
+
| [name] | [modules] | [modules] |
|