agent-ctx 1.0.0 → 2.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/README.md +56 -51
- package/dist/commands/add.d.ts +1 -1
- package/dist/commands/add.d.ts.map +1 -1
- package/dist/commands/add.js +1 -1
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/centralize.d.ts +3 -3
- package/dist/commands/centralize.d.ts.map +1 -1
- package/dist/commands/centralize.js +21 -21
- package/dist/commands/centralize.js.map +1 -1
- package/dist/commands/clean.d.ts +3 -3
- package/dist/commands/clean.d.ts.map +1 -1
- package/dist/commands/clean.js +31 -31
- package/dist/commands/clean.js.map +1 -1
- package/dist/commands/doctor.d.ts +3 -3
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +132 -50
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/init.d.ts +3 -3
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +97 -38
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/update.d.ts +3 -4
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +169 -52
- package/dist/commands/update.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -12
- package/dist/index.js.map +1 -1
- package/dist/lib/bridges.d.ts +8 -8
- package/dist/lib/bridges.d.ts.map +1 -1
- package/dist/lib/bridges.js +108 -108
- package/dist/lib/bridges.js.map +1 -1
- package/dist/lib/config.d.ts +18 -6
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +54 -18
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/i18n.d.ts.map +1 -1
- package/dist/lib/i18n.js +56 -6
- package/dist/lib/i18n.js.map +1 -1
- package/dist/lib/logger.d.ts +7 -7
- package/dist/lib/logger.d.ts.map +1 -1
- package/dist/lib/logger.js +17 -17
- package/dist/lib/logger.js.map +1 -1
- package/dist/lib/templates.d.ts +1 -5
- package/dist/lib/templates.d.ts.map +1 -1
- package/dist/lib/templates.js +28 -18
- package/dist/lib/templates.js.map +1 -1
- package/dist/lib/utils.d.ts +8 -8
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +49 -21
- package/dist/lib/utils.js.map +1 -1
- package/package.json +77 -63
- package/src/templates/en/skills/skill-agents.md +43 -18
- package/src/templates/en/skills/skill-memory.md +97 -0
- package/src/templates/es/skills/skill-agents.md +43 -18
- package/src/templates/es/skills/skill-memory.md +97 -0
- package/dist/bin/agentrc.d.ts +0 -7
- package/dist/bin/agentrc.d.ts.map +0 -1
- package/dist/bin/agentrc.js +0 -8
- package/dist/bin/agentrc.js.map +0 -1
- package/dist/lib/wizard.d.ts +0 -22
- package/dist/lib/wizard.d.ts.map +0 -1
- package/dist/lib/wizard.js +0 -197
- package/dist/lib/wizard.js.map +0 -1
- package/src/templates/en/skills/skill-api.md +0 -117
- package/src/templates/en/skills/skill-git.md +0 -109
- package/src/templates/en/skills/skill-react.md +0 -94
- package/src/templates/en/skills/skill-testing.md +0 -139
- package/src/templates/es/skills/skill-api.md +0 -117
- package/src/templates/es/skills/skill-git.md +0 -108
- package/src/templates/es/skills/skill-react.md +0 -94
- package/src/templates/es/skills/skill-testing.md +0 -139
package/package.json
CHANGED
|
@@ -1,63 +1,77 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "agent-ctx",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "CLI tool to initialize and manage AI agent context for your projects",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"ai",
|
|
7
|
-
"agent",
|
|
8
|
-
"context",
|
|
9
|
-
"cursor",
|
|
10
|
-
"antigravity",
|
|
11
|
-
"claude",
|
|
12
|
-
"copilot",
|
|
13
|
-
"cline",
|
|
14
|
-
"cli"
|
|
15
|
-
],
|
|
16
|
-
"author": "avicdro",
|
|
17
|
-
"license": "MIT",
|
|
18
|
-
"type": "module",
|
|
19
|
-
"bin": {
|
|
20
|
-
"agent-ctx": "./dist/bin/agent-ctx.js"
|
|
21
|
-
},
|
|
22
|
-
"main": "./dist/index.js",
|
|
23
|
-
"types": "./dist/index.d.ts",
|
|
24
|
-
"files": [
|
|
25
|
-
"dist",
|
|
26
|
-
"src/templates"
|
|
27
|
-
],
|
|
28
|
-
"scripts": {
|
|
29
|
-
"build": "tsc",
|
|
30
|
-
"dev": "tsx src/index.ts",
|
|
31
|
-
"test": "npm run build && node --test",
|
|
32
|
-
"lint": "eslint src/",
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "agent-ctx",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "CLI tool to initialize and manage AI agent context for your projects",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ai",
|
|
7
|
+
"agent",
|
|
8
|
+
"context",
|
|
9
|
+
"cursor",
|
|
10
|
+
"antigravity",
|
|
11
|
+
"claude",
|
|
12
|
+
"copilot",
|
|
13
|
+
"cline",
|
|
14
|
+
"cli"
|
|
15
|
+
],
|
|
16
|
+
"author": "avicdro",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"type": "module",
|
|
19
|
+
"bin": {
|
|
20
|
+
"agent-ctx": "./dist/bin/agent-ctx.js"
|
|
21
|
+
},
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"src/templates"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsc",
|
|
30
|
+
"dev": "tsx src/index.ts",
|
|
31
|
+
"test": "npm run build && node --test",
|
|
32
|
+
"lint": "eslint src/",
|
|
33
|
+
"lint:fix": "eslint src/ --fix",
|
|
34
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
35
|
+
"format:check": "prettier --check \"src/**/*.ts\"",
|
|
36
|
+
"prepublishOnly": "npm run build",
|
|
37
|
+
"prepare": "husky"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"chalk": "^5.3.0",
|
|
41
|
+
"commander": "^12.1.0",
|
|
42
|
+
"figlet": "^1.10.0",
|
|
43
|
+
"inquirer": "^9.2.23",
|
|
44
|
+
"ora": "^8.0.1",
|
|
45
|
+
"tar": "^7.5.7"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@commitlint/cli": "^20.4.1",
|
|
49
|
+
"@commitlint/config-conventional": "^20.4.1",
|
|
50
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
51
|
+
"@semantic-release/git": "^10.0.1",
|
|
52
|
+
"@types/figlet": "^1.7.0",
|
|
53
|
+
"@types/inquirer": "^9.0.9",
|
|
54
|
+
"@types/node": "^25.1.0",
|
|
55
|
+
"@types/tar": "^6.1.13",
|
|
56
|
+
"eslint": "^9.39.2",
|
|
57
|
+
"eslint-config-prettier": "^10.1.8",
|
|
58
|
+
"husky": "^9.1.7",
|
|
59
|
+
"lint-staged": "^16.2.7",
|
|
60
|
+
"prettier": "^3.8.1",
|
|
61
|
+
"semantic-release": "^25.0.3",
|
|
62
|
+
"tsx": "^4.21.0",
|
|
63
|
+
"typescript": "^5.9.3",
|
|
64
|
+
"typescript-eslint": "^8.54.0"
|
|
65
|
+
},
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">=20.0.0"
|
|
68
|
+
},
|
|
69
|
+
"repository": {
|
|
70
|
+
"type": "git",
|
|
71
|
+
"url": "https://github.com/avicdro/agent-ctx"
|
|
72
|
+
},
|
|
73
|
+
"bugs": {
|
|
74
|
+
"url": "https://github.com/avicdro/agent-ctx/issues"
|
|
75
|
+
},
|
|
76
|
+
"homepage": "https://github.com/avicdro/agent-ctx#readme"
|
|
77
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: managing-agents
|
|
3
|
-
description: Configure and
|
|
3
|
+
description: Configure and auto-sync AGENTS.md with .context/ files. Use when setting up agent context, modifying agent instructions, or after changes to rules/skills.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Managing Agents Context
|
|
@@ -10,16 +10,26 @@ Configure the AGENTS.md file that orients AI agents to your project.
|
|
|
10
10
|
## When to use
|
|
11
11
|
|
|
12
12
|
- Setting up AI agent context for a new project
|
|
13
|
-
-
|
|
14
|
-
-
|
|
13
|
+
- After adding new rules to `.context/rules/`
|
|
14
|
+
- After adding new skills to `.context/skills/`
|
|
15
|
+
- After updating architecture or project state
|
|
15
16
|
- Changing how agents should behave in your project
|
|
16
17
|
|
|
17
18
|
## AGENTS.md Purpose
|
|
18
19
|
|
|
19
|
-
The AGENTS.md file is the entry point for AI agents
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
20
|
+
The AGENTS.md file is the **universal entry point** for ALL AI agents:
|
|
21
|
+
- Cursor, Copilot, Claude, Gemini, Windsurf all read this file
|
|
22
|
+
- It provides a single source of truth for project context
|
|
23
|
+
- It indexes all content in `.context/`
|
|
24
|
+
|
|
25
|
+
## Auto-Sync Trigger
|
|
26
|
+
|
|
27
|
+
**After modifying any file in `.context/`**, check if AGENTS.md needs updating:
|
|
28
|
+
|
|
29
|
+
1. Scan `.context/rules/` for all `.md` files
|
|
30
|
+
2. Scan `.context/skills/` for all `SKILL.md` files
|
|
31
|
+
3. Update the Knowledge Index section if files changed
|
|
32
|
+
4. Keep AGENTS.md under 50 lines
|
|
23
33
|
|
|
24
34
|
## Standard Template
|
|
25
35
|
|
|
@@ -31,15 +41,29 @@ Your goal is to help build, refactor, and maintain code following our architectu
|
|
|
31
41
|
|
|
32
42
|
## Knowledge Index
|
|
33
43
|
|
|
34
|
-
|
|
44
|
+
| Area | Path | Description |
|
|
45
|
+
|------|------|-------------|
|
|
46
|
+
| Architecture | `.context/architecture.md` | Project structure |
|
|
47
|
+
| Rules | `.context/rules/` | Coding standards |
|
|
48
|
+
| Skills | `.context/skills/` | Reusable instructions |
|
|
49
|
+
| State | `.context/project_state.md` | Current work |
|
|
50
|
+
| Memory | `.context/memory/` | Session persistence |
|
|
51
|
+
|
|
52
|
+
## Active Rules
|
|
53
|
+
|
|
54
|
+
- [coding-standards](.context/rules/coding-standards.md)
|
|
55
|
+
|
|
56
|
+
## Available Skills
|
|
35
57
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
|
|
58
|
+
- [generating-skills](.context/skills/generating-skills/SKILL.md)
|
|
59
|
+
- [managing-agents](.context/skills/managing-agents/SKILL.md)
|
|
60
|
+
...
|
|
39
61
|
|
|
40
|
-
##
|
|
62
|
+
## Principles
|
|
41
63
|
|
|
42
|
-
|
|
64
|
+
- Follow all rules in `.context/rules/`
|
|
65
|
+
- Check project state before starting work
|
|
66
|
+
- Update memory bank at session end
|
|
43
67
|
```
|
|
44
68
|
|
|
45
69
|
## Best Practices
|
|
@@ -48,15 +72,15 @@ Check `.context/project_state.md` for current work status.
|
|
|
48
72
|
|
|
49
73
|
- Keep AGENTS.md concise (under 50 lines)
|
|
50
74
|
- Point to detailed files instead of duplicating content
|
|
51
|
-
- Update when
|
|
52
|
-
- Include
|
|
75
|
+
- Update when `.context/` structure changes
|
|
76
|
+
- Include table of contents to all context areas
|
|
53
77
|
|
|
54
78
|
### ❌ Avoid
|
|
55
79
|
|
|
56
80
|
- Putting detailed documentation in AGENTS.md
|
|
57
81
|
- Outdated file paths
|
|
58
82
|
- Generic instructions without project specifics
|
|
59
|
-
-
|
|
83
|
+
- Forgetting to list new rules or skills
|
|
60
84
|
|
|
61
85
|
## Placement
|
|
62
86
|
|
|
@@ -64,11 +88,12 @@ AGENTS.md should be at the project root:
|
|
|
64
88
|
|
|
65
89
|
```
|
|
66
90
|
project/
|
|
67
|
-
├── AGENTS.md # AI agent entry point
|
|
91
|
+
├── AGENTS.md # AI agent entry point (universal hub)
|
|
68
92
|
├── .context/ # Detailed context
|
|
69
93
|
│ ├── architecture.md
|
|
70
94
|
│ ├── project_state.md
|
|
71
95
|
│ ├── rules/
|
|
72
|
-
│
|
|
96
|
+
│ ├── skills/
|
|
97
|
+
│ └── memory/
|
|
73
98
|
└── src/
|
|
74
99
|
```
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: managing-memory
|
|
3
|
+
description: Maintain the Memory Bank files in .context/memory/. Use when updating project state, tracking progress, or persisting context between sessions.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Managing Memory Bank
|
|
7
|
+
|
|
8
|
+
Keep the Memory Bank files updated to maintain context persistence across AI sessions.
|
|
9
|
+
|
|
10
|
+
## When to use
|
|
11
|
+
|
|
12
|
+
- Starting a new development session (read memory files first)
|
|
13
|
+
- Completing a significant task (update progress)
|
|
14
|
+
- Changing project focus (update active context)
|
|
15
|
+
- Major architectural decisions (update tech context)
|
|
16
|
+
|
|
17
|
+
## Memory Bank Structure
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
.context/memory/
|
|
21
|
+
├── project_brief.md # Vision and goals (rarely changes)
|
|
22
|
+
├── tech_context.md # Stack and patterns (updates with tech changes)
|
|
23
|
+
├── active_context.md # Current focus (updates frequently)
|
|
24
|
+
└── progress.md # Milestones and changelog (updates per task)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## File Update Frequency
|
|
28
|
+
|
|
29
|
+
| File | Update Frequency | Trigger |
|
|
30
|
+
|------|------------------|---------|
|
|
31
|
+
| `project_brief.md` | Rarely | Major goal changes |
|
|
32
|
+
| `tech_context.md` | Occasionally | New tech, patterns |
|
|
33
|
+
| `active_context.md` | Every session | Focus changes |
|
|
34
|
+
| `progress.md` | Per task | Task completion |
|
|
35
|
+
|
|
36
|
+
## Update Guidelines
|
|
37
|
+
|
|
38
|
+
### active_context.md
|
|
39
|
+
|
|
40
|
+
Update at the START and END of each session:
|
|
41
|
+
|
|
42
|
+
```markdown
|
|
43
|
+
## Current Focus
|
|
44
|
+
[What you're working on NOW]
|
|
45
|
+
|
|
46
|
+
## Recent Changes
|
|
47
|
+
- [Most recent first]
|
|
48
|
+
|
|
49
|
+
## Next Steps
|
|
50
|
+
1. [ ] Immediate next action
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### progress.md
|
|
54
|
+
|
|
55
|
+
Update when completing significant work:
|
|
56
|
+
|
|
57
|
+
```markdown
|
|
58
|
+
### [DATE]
|
|
59
|
+
- Added: [new features]
|
|
60
|
+
- Changed: [modifications]
|
|
61
|
+
- Fixed: [bug fixes]
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### tech_context.md
|
|
65
|
+
|
|
66
|
+
Update when adding new dependencies or patterns:
|
|
67
|
+
|
|
68
|
+
```markdown
|
|
69
|
+
## Stack
|
|
70
|
+
| Technology | Version | Purpose |
|
|
71
|
+
|------------|---------|---------|
|
|
72
|
+
| [New tech] | [ver] | [why] |
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Best Practices
|
|
76
|
+
|
|
77
|
+
### ✅ Do
|
|
78
|
+
|
|
79
|
+
- Read ALL memory files at session start
|
|
80
|
+
- Update `active_context.md` before ending work
|
|
81
|
+
- Keep entries concise and scannable
|
|
82
|
+
- Use tables for structured data
|
|
83
|
+
- Include dates on progress entries
|
|
84
|
+
|
|
85
|
+
### ❌ Avoid
|
|
86
|
+
|
|
87
|
+
- Duplicating information across files
|
|
88
|
+
- Leaving outdated "Current Focus"
|
|
89
|
+
- Forgetting to update progress after completing tasks
|
|
90
|
+
- Writing paragraphs instead of bullet points
|
|
91
|
+
|
|
92
|
+
## Session Workflow
|
|
93
|
+
|
|
94
|
+
1. **Start**: Read all memory files for context
|
|
95
|
+
2. **Work**: Focus on current task
|
|
96
|
+
3. **Complete**: Update progress.md with changes
|
|
97
|
+
4. **End**: Update active_context.md with next steps
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: managing-agents
|
|
3
|
-
description: Configurar y
|
|
3
|
+
description: Configurar y sincronizar AGENTS.md con los archivos de .context/. Usar al configurar contexto de agente, modificar instrucciones, o después de cambios en rules/skills.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Gestionando Contexto de Agentes
|
|
@@ -10,16 +10,26 @@ Configurar el archivo AGENTS.md que orienta a los agentes AI en tu proyecto.
|
|
|
10
10
|
## Cuándo usar
|
|
11
11
|
|
|
12
12
|
- Configurar contexto de agente AI para un nuevo proyecto
|
|
13
|
-
-
|
|
14
|
-
-
|
|
13
|
+
- Después de añadir nuevas reglas a `.context/rules/`
|
|
14
|
+
- Después de añadir nuevas skills a `.context/skills/`
|
|
15
|
+
- Después de actualizar arquitectura o estado del proyecto
|
|
15
16
|
- Cambiar cómo deben comportarse los agentes en tu proyecto
|
|
16
17
|
|
|
17
18
|
## Propósito de AGENTS.md
|
|
18
19
|
|
|
19
|
-
El archivo AGENTS.md es el punto de entrada para agentes AI
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
20
|
+
El archivo AGENTS.md es el **punto de entrada universal** para TODOS los agentes AI:
|
|
21
|
+
- Cursor, Copilot, Claude, Gemini, Windsurf todos leen este archivo
|
|
22
|
+
- Proporciona una única fuente de verdad para el contexto del proyecto
|
|
23
|
+
- Indexa todo el contenido de `.context/`
|
|
24
|
+
|
|
25
|
+
## Disparador de Auto-Sync
|
|
26
|
+
|
|
27
|
+
**Después de modificar cualquier archivo en `.context/`**, verifica si AGENTS.md necesita actualización:
|
|
28
|
+
|
|
29
|
+
1. Escanear `.context/rules/` para todos los archivos `.md`
|
|
30
|
+
2. Escanear `.context/skills/` para todos los archivos `SKILL.md`
|
|
31
|
+
3. Actualizar la sección de Índice de Conocimiento si hay cambios
|
|
32
|
+
4. Mantener AGENTS.md bajo 50 líneas
|
|
23
33
|
|
|
24
34
|
## Plantilla Estándar
|
|
25
35
|
|
|
@@ -31,15 +41,29 @@ Tu objetivo es ayudar a construir, refactorizar y mantener código siguiendo nue
|
|
|
31
41
|
|
|
32
42
|
## Índice de Conocimiento
|
|
33
43
|
|
|
34
|
-
|
|
44
|
+
| Área | Ruta | Descripción |
|
|
45
|
+
|------|------|-------------|
|
|
46
|
+
| Arquitectura | `.context/architecture.md` | Estructura del proyecto |
|
|
47
|
+
| Reglas | `.context/rules/` | Estándares de código |
|
|
48
|
+
| Skills | `.context/skills/` | Instrucciones reutilizables |
|
|
49
|
+
| Estado | `.context/project_state.md` | Trabajo actual |
|
|
50
|
+
| Memoria | `.context/memory/` | Persistencia de sesión |
|
|
51
|
+
|
|
52
|
+
## Reglas Activas
|
|
53
|
+
|
|
54
|
+
- [coding-standards](.context/rules/coding-standards.md)
|
|
55
|
+
|
|
56
|
+
## Skills Disponibles
|
|
35
57
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
|
|
58
|
+
- [generating-skills](.context/skills/generating-skills/SKILL.md)
|
|
59
|
+
- [managing-agents](.context/skills/managing-agents/SKILL.md)
|
|
60
|
+
...
|
|
39
61
|
|
|
40
|
-
##
|
|
62
|
+
## Principios
|
|
41
63
|
|
|
42
|
-
|
|
64
|
+
- Seguir todas las reglas en `.context/rules/`
|
|
65
|
+
- Revisar estado del proyecto antes de empezar
|
|
66
|
+
- Actualizar memory bank al finalizar sesión
|
|
43
67
|
```
|
|
44
68
|
|
|
45
69
|
## Mejores prácticas
|
|
@@ -48,15 +72,15 @@ Consulta `.context/project_state.md` para el estado actual del trabajo.
|
|
|
48
72
|
|
|
49
73
|
- Mantener AGENTS.md conciso (menos de 50 líneas)
|
|
50
74
|
- Apuntar a archivos detallados en vez de duplicar contenido
|
|
51
|
-
- Actualizar cuando cambia la estructura
|
|
52
|
-
- Incluir
|
|
75
|
+
- Actualizar cuando cambia la estructura de `.context/`
|
|
76
|
+
- Incluir tabla de contenidos hacia todas las áreas de contexto
|
|
53
77
|
|
|
54
78
|
### ❌ Evitar
|
|
55
79
|
|
|
56
80
|
- Poner documentación detallada en AGENTS.md
|
|
57
81
|
- Rutas de archivo desactualizadas
|
|
58
82
|
- Instrucciones genéricas sin especificidad del proyecto
|
|
59
|
-
-
|
|
83
|
+
- Olvidar listar nuevas reglas o skills
|
|
60
84
|
|
|
61
85
|
## Ubicación
|
|
62
86
|
|
|
@@ -64,11 +88,12 @@ AGENTS.md debe estar en la raíz del proyecto:
|
|
|
64
88
|
|
|
65
89
|
```
|
|
66
90
|
proyecto/
|
|
67
|
-
├── AGENTS.md # Punto de entrada
|
|
91
|
+
├── AGENTS.md # Punto de entrada (hub universal)
|
|
68
92
|
├── .context/ # Contexto detallado
|
|
69
93
|
│ ├── architecture.md
|
|
70
94
|
│ ├── project_state.md
|
|
71
95
|
│ ├── rules/
|
|
72
|
-
│
|
|
96
|
+
│ ├── skills/
|
|
97
|
+
│ └── memory/
|
|
73
98
|
└── src/
|
|
74
99
|
```
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: managing-memory
|
|
3
|
+
description: Mantiene los archivos del Memory Bank en .context/memory/. Usar al actualizar el estado del proyecto, seguir el progreso o persistir contexto entre sesiones.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Gestión del Memory Bank
|
|
7
|
+
|
|
8
|
+
Mantén los archivos del Memory Bank actualizados para mantener el contexto entre sesiones de IA.
|
|
9
|
+
|
|
10
|
+
## Cuándo usar
|
|
11
|
+
|
|
12
|
+
- Al iniciar una nueva sesión de desarrollo (leer archivos primero)
|
|
13
|
+
- Al completar una tarea significativa (actualizar progreso)
|
|
14
|
+
- Al cambiar el foco del proyecto (actualizar contexto activo)
|
|
15
|
+
- Decisiones arquitectónicas importantes (actualizar contexto técnico)
|
|
16
|
+
|
|
17
|
+
## Estructura del Memory Bank
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
.context/memory/
|
|
21
|
+
├── project_brief.md # Visión y objetivos (cambia raramente)
|
|
22
|
+
├── tech_context.md # Stack y patrones (actualiza con cambios técnicos)
|
|
23
|
+
├── active_context.md # Foco actual (actualiza frecuentemente)
|
|
24
|
+
└── progress.md # Hitos y changelog (actualiza por tarea)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Frecuencia de Actualización
|
|
28
|
+
|
|
29
|
+
| Archivo | Frecuencia | Disparador |
|
|
30
|
+
|---------|------------|------------|
|
|
31
|
+
| `project_brief.md` | Rara vez | Cambios de objetivos importantes |
|
|
32
|
+
| `tech_context.md` | Ocasionalmente | Nueva tecnología, patrones |
|
|
33
|
+
| `active_context.md` | Cada sesión | Cambios de foco |
|
|
34
|
+
| `progress.md` | Por tarea | Completar tarea |
|
|
35
|
+
|
|
36
|
+
## Guías de Actualización
|
|
37
|
+
|
|
38
|
+
### active_context.md
|
|
39
|
+
|
|
40
|
+
Actualizar al INICIO y FIN de cada sesión:
|
|
41
|
+
|
|
42
|
+
```markdown
|
|
43
|
+
## Foco Actual
|
|
44
|
+
[En qué estás trabajando AHORA]
|
|
45
|
+
|
|
46
|
+
## Cambios Recientes
|
|
47
|
+
- [Más reciente primero]
|
|
48
|
+
|
|
49
|
+
## Próximos Pasos
|
|
50
|
+
1. [ ] Próxima acción inmediata
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### progress.md
|
|
54
|
+
|
|
55
|
+
Actualizar al completar trabajo significativo:
|
|
56
|
+
|
|
57
|
+
```markdown
|
|
58
|
+
### [FECHA]
|
|
59
|
+
- Añadido: [nuevas características]
|
|
60
|
+
- Cambiado: [modificaciones]
|
|
61
|
+
- Arreglado: [correcciones de bugs]
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### tech_context.md
|
|
65
|
+
|
|
66
|
+
Actualizar al añadir nuevas dependencias o patrones:
|
|
67
|
+
|
|
68
|
+
```markdown
|
|
69
|
+
## Stack
|
|
70
|
+
| Tecnología | Versión | Propósito |
|
|
71
|
+
|------------|---------|-----------|
|
|
72
|
+
| [Nueva tech] | [ver] | [por qué] |
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Mejores Prácticas
|
|
76
|
+
|
|
77
|
+
### ✅ Hacer
|
|
78
|
+
|
|
79
|
+
- Leer TODOS los archivos de memoria al inicio de la sesión
|
|
80
|
+
- Actualizar `active_context.md` antes de terminar el trabajo
|
|
81
|
+
- Mantener las entradas concisas y escaneables
|
|
82
|
+
- Usar tablas para datos estructurados
|
|
83
|
+
- Incluir fechas en las entradas de progreso
|
|
84
|
+
|
|
85
|
+
### ❌ Evitar
|
|
86
|
+
|
|
87
|
+
- Duplicar información entre archivos
|
|
88
|
+
- Dejar "Foco Actual" desactualizado
|
|
89
|
+
- Olvidar actualizar el progreso después de completar tareas
|
|
90
|
+
- Escribir párrafos en lugar de viñetas
|
|
91
|
+
|
|
92
|
+
## Flujo de Trabajo por Sesión
|
|
93
|
+
|
|
94
|
+
1. **Inicio**: Leer todos los archivos de memoria para contexto
|
|
95
|
+
2. **Trabajo**: Enfocarse en la tarea actual
|
|
96
|
+
3. **Completar**: Actualizar progress.md con los cambios
|
|
97
|
+
4. **Fin**: Actualizar active_context.md con próximos pasos
|
package/dist/bin/agentrc.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agentrc.d.ts","sourceRoot":"","sources":["../../src/bin/agentrc.ts"],"names":[],"mappings":";AAEA;;;GAGG"}
|
package/dist/bin/agentrc.js
DELETED
package/dist/bin/agentrc.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agentrc.js","sourceRoot":"","sources":["../../src/bin/agentrc.ts"],"names":[],"mappings":";AAEA;;;GAGG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,GAAG,EAAE,CAAC"}
|
package/dist/lib/wizard.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Wizard interactivo para configuración de proyectos
|
|
3
|
-
* @module lib/wizard
|
|
4
|
-
*/
|
|
5
|
-
type ProjectType = 'frontend' | 'backend' | 'fullstack' | 'library' | 'cli';
|
|
6
|
-
export interface ProjectConfig {
|
|
7
|
-
type: ProjectType;
|
|
8
|
-
framework: string;
|
|
9
|
-
typescript?: boolean;
|
|
10
|
-
styling?: string;
|
|
11
|
-
features?: string[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Ejecuta el wizard interactivo para configurar el proyecto
|
|
15
|
-
*/
|
|
16
|
-
export declare function runWizard(): Promise<ProjectConfig>;
|
|
17
|
-
/**
|
|
18
|
-
* Genera contenido de architecture.md basado en la configuración
|
|
19
|
-
*/
|
|
20
|
-
export declare function generateArchitecture(config: ProjectConfig): string;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=wizard.d.ts.map
|
package/dist/lib/wizard.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wizard.d.ts","sourceRoot":"","sources":["../../src/lib/wizard.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,KAAK,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,KAAK,CAAC;AAE5E,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AA4CD;;GAEG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,aAAa,CAAC,CAgExD;AAuBD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAiElE"}
|