agent-knowledge-cli 0.1.2__py3-none-any.whl
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.
- agent_knowledge/__init__.py +3 -0
- agent_knowledge/__main__.py +3 -0
- agent_knowledge/assets/__init__.py +0 -0
- agent_knowledge/assets/claude/global.md +44 -0
- agent_knowledge/assets/claude/project-template.md +46 -0
- agent_knowledge/assets/claude/scripts/install.sh +85 -0
- agent_knowledge/assets/commands/doctor.md +21 -0
- agent_knowledge/assets/commands/global-knowledge-sync.md +27 -0
- agent_knowledge/assets/commands/graphify-sync.md +26 -0
- agent_knowledge/assets/commands/knowledge-sync.md +26 -0
- agent_knowledge/assets/commands/ship.md +29 -0
- agent_knowledge/assets/rules/generate-architecture-doc.mdc +87 -0
- agent_knowledge/assets/rules/history-backfill.mdc +67 -0
- agent_knowledge/assets/rules/memory-bootstrap.mdc +53 -0
- agent_knowledge/assets/rules/memory-writeback.mdc +90 -0
- agent_knowledge/assets/rules/shared-memory.mdc +102 -0
- agent_knowledge/assets/rules/workflow-orchestration.mdc +93 -0
- agent_knowledge/assets/rules-global/action-first.mdc +26 -0
- agent_knowledge/assets/rules-global/no-icons-emojis.mdc +16 -0
- agent_knowledge/assets/rules-global/no-unsolicited-docs.mdc +20 -0
- agent_knowledge/assets/scripts/bootstrap-memory-tree.sh +389 -0
- agent_knowledge/assets/scripts/compact-memory.sh +191 -0
- agent_knowledge/assets/scripts/doctor.sh +137 -0
- agent_knowledge/assets/scripts/global-knowledge-sync.sh +372 -0
- agent_knowledge/assets/scripts/graphify-sync.sh +397 -0
- agent_knowledge/assets/scripts/import-agent-history.sh +706 -0
- agent_knowledge/assets/scripts/install-project-links.sh +258 -0
- agent_knowledge/assets/scripts/lib/knowledge-common.sh +875 -0
- agent_knowledge/assets/scripts/measure-token-savings.py +540 -0
- agent_knowledge/assets/scripts/ship.sh +256 -0
- agent_knowledge/assets/scripts/update-knowledge.sh +341 -0
- agent_knowledge/assets/scripts/validate-knowledge.sh +265 -0
- agent_knowledge/assets/skills/decision-recording/SKILL.md +124 -0
- agent_knowledge/assets/skills/history-backfill/SKILL.md +115 -0
- agent_knowledge/assets/skills/memory-compaction/SKILL.md +115 -0
- agent_knowledge/assets/skills/memory-management/SKILL.md +134 -0
- agent_knowledge/assets/skills/project-ontology-bootstrap/SKILL.md +173 -0
- agent_knowledge/assets/skills/session-management/SKILL.md +116 -0
- agent_knowledge/assets/skills-cursor/create-rule/SKILL.md +164 -0
- agent_knowledge/assets/skills-cursor/create-skill/SKILL.md +498 -0
- agent_knowledge/assets/skills-cursor/create-subagent/SKILL.md +225 -0
- agent_knowledge/assets/skills-cursor/migrate-to-skills/SKILL.md +134 -0
- agent_knowledge/assets/skills-cursor/shell/SKILL.md +24 -0
- agent_knowledge/assets/skills-cursor/update-cursor-settings/SKILL.md +122 -0
- agent_knowledge/assets/templates/dashboards/project-overview.template.md +24 -0
- agent_knowledge/assets/templates/dashboards/session-rollup.template.md +23 -0
- agent_knowledge/assets/templates/hooks/hooks.json.template +11 -0
- agent_knowledge/assets/templates/integrations/claude/CLAUDE.md +7 -0
- agent_knowledge/assets/templates/integrations/codex/AGENTS.md +7 -0
- agent_knowledge/assets/templates/integrations/cursor/agent-knowledge.mdc +11 -0
- agent_knowledge/assets/templates/integrations/cursor/hooks.json +11 -0
- agent_knowledge/assets/templates/memory/MEMORY.root.template.md +36 -0
- agent_knowledge/assets/templates/memory/branch.template.md +33 -0
- agent_knowledge/assets/templates/memory/decision.template.md +33 -0
- agent_knowledge/assets/templates/memory/profile.hybrid.yaml +16 -0
- agent_knowledge/assets/templates/memory/profile.ml-platform.yaml +18 -0
- agent_knowledge/assets/templates/memory/profile.robotics.yaml +19 -0
- agent_knowledge/assets/templates/memory/profile.web-app.yaml +16 -0
- agent_knowledge/assets/templates/portfolio/.obsidian/README.md +21 -0
- agent_knowledge/assets/templates/portfolio/.obsidian/app.json +5 -0
- agent_knowledge/assets/templates/portfolio/.obsidian/core-plugins.json +7 -0
- agent_knowledge/assets/templates/project/.agent-project.yaml +36 -0
- agent_knowledge/assets/templates/project/.agentknowledgeignore +10 -0
- agent_knowledge/assets/templates/project/AGENTS.md +87 -0
- agent_knowledge/assets/templates/project/agent-knowledge/.obsidian/README.md +23 -0
- agent_knowledge/assets/templates/project/agent-knowledge/.obsidian/app.json +5 -0
- agent_knowledge/assets/templates/project/agent-knowledge/.obsidian/core-plugins.json +7 -0
- agent_knowledge/assets/templates/project/agent-knowledge/Evidence/README.md +34 -0
- agent_knowledge/assets/templates/project/agent-knowledge/Evidence/imports/README.md +29 -0
- agent_knowledge/assets/templates/project/agent-knowledge/Evidence/raw/README.md +25 -0
- agent_knowledge/assets/templates/project/agent-knowledge/Memory/MEMORY.md +37 -0
- agent_knowledge/assets/templates/project/agent-knowledge/Memory/decisions/decisions.md +31 -0
- agent_knowledge/assets/templates/project/agent-knowledge/Outputs/README.md +24 -0
- agent_knowledge/assets/templates/project/agent-knowledge/STATUS.md +43 -0
- agent_knowledge/assets/templates/project/agent-knowledge/Sessions/README.md +21 -0
- agent_knowledge/assets/templates/project/agent-knowledge/Templates/README.md +19 -0
- agent_knowledge/assets/templates/project/gitignore.agent-knowledge +13 -0
- agent_knowledge/cli.py +457 -0
- agent_knowledge/runtime/__init__.py +0 -0
- agent_knowledge/runtime/integrations.py +154 -0
- agent_knowledge/runtime/paths.py +46 -0
- agent_knowledge/runtime/shell.py +22 -0
- agent_knowledge/runtime/sync.py +255 -0
- agent_knowledge_cli-0.1.2.dist-info/METADATA +155 -0
- agent_knowledge_cli-0.1.2.dist-info/RECORD +88 -0
- agent_knowledge_cli-0.1.2.dist-info/WHEEL +4 -0
- agent_knowledge_cli-0.1.2.dist-info/entry_points.txt +2 -0
- agent_knowledge_cli-0.1.2.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: migrate-to-skills
|
|
3
|
+
description: >-
|
|
4
|
+
Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash
|
|
5
|
+
commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use
|
|
6
|
+
when you want to migrate rules or commands to skills, convert .mdc rules to
|
|
7
|
+
SKILL.md format, or consolidate commands into the skills directory.
|
|
8
|
+
disable-model-invocation: true
|
|
9
|
+
---
|
|
10
|
+
# Migrate Rules and Slash Commands to Skills
|
|
11
|
+
|
|
12
|
+
Convert Cursor rules ("Applied intelligently") and slash commands to Agent Skills format.
|
|
13
|
+
|
|
14
|
+
**CRITICAL: Preserve the exact body content. Do not modify, reformat, or "improve" it - copy verbatim.**
|
|
15
|
+
|
|
16
|
+
## Locations
|
|
17
|
+
|
|
18
|
+
| Level | Source | Destination |
|
|
19
|
+
|-------|--------|-------------|
|
|
20
|
+
| Project | `{workspaceFolder}/**/.cursor/rules/*.mdc`, `{workspaceFolder}/.cursor/commands/*.md` |
|
|
21
|
+
| User | `~/.cursor/commands/*.md` |
|
|
22
|
+
|
|
23
|
+
Notes:
|
|
24
|
+
- Cursor rules inside the project can live in nested directories. Be thorough in your search and use glob patterns to find them.
|
|
25
|
+
- Ignore anything in ~/.cursor/worktrees
|
|
26
|
+
- Ignore anything in ~/.cursor/skills-cursor. This is reserved for Cursor's internal built-in skills and is managed automatically by the system.
|
|
27
|
+
|
|
28
|
+
## Finding Files to Migrate
|
|
29
|
+
|
|
30
|
+
**Rules**: Migrate if rule has a `description` but NO `globs` and NO `alwaysApply: true`.
|
|
31
|
+
|
|
32
|
+
**Commands**: Migrate all - they're plain markdown without frontmatter.
|
|
33
|
+
|
|
34
|
+
## Conversion Format
|
|
35
|
+
|
|
36
|
+
### Rules: .mdc → SKILL.md
|
|
37
|
+
|
|
38
|
+
```markdown
|
|
39
|
+
# Before: .cursor/rules/my-rule.mdc
|
|
40
|
+
---
|
|
41
|
+
description: What this rule does
|
|
42
|
+
globs:
|
|
43
|
+
alwaysApply: false
|
|
44
|
+
---
|
|
45
|
+
# Title
|
|
46
|
+
Body content...
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
# After: .cursor/skills/my-rule/SKILL.md
|
|
51
|
+
---
|
|
52
|
+
name: my-rule
|
|
53
|
+
description: What this rule does
|
|
54
|
+
---
|
|
55
|
+
# Title
|
|
56
|
+
Body content...
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Changes: Add `name` field, remove `globs`/`alwaysApply`, keep body exactly.
|
|
60
|
+
|
|
61
|
+
### Commands: .md → SKILL.md
|
|
62
|
+
|
|
63
|
+
```markdown
|
|
64
|
+
# Before: .cursor/commands/commit.md
|
|
65
|
+
# Commit current work
|
|
66
|
+
Instructions here...
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
```markdown
|
|
70
|
+
# After: .cursor/skills/commit/SKILL.md
|
|
71
|
+
---
|
|
72
|
+
name: commit
|
|
73
|
+
description: Commit current work with standardized message format
|
|
74
|
+
disable-model-invocation: true
|
|
75
|
+
---
|
|
76
|
+
# Commit current work
|
|
77
|
+
Instructions here...
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Changes: Add frontmatter with `name` (from filename), `description` (infer from content), and `disable-model-invocation: true`, keep body exactly.
|
|
81
|
+
|
|
82
|
+
**Note:** The `disable-model-invocation: true` field prevents the model from automatically invoking this skill. Slash commands are designed to be explicitly triggered by the user via the `/` menu, not automatically suggested by the model.
|
|
83
|
+
|
|
84
|
+
## Notes
|
|
85
|
+
|
|
86
|
+
- `name` must be lowercase with hyphens only
|
|
87
|
+
- `description` is critical for skill discovery
|
|
88
|
+
- Optionally delete originals after verifying migration works
|
|
89
|
+
|
|
90
|
+
### Migrate a Rule (.mdc → SKILL.md)
|
|
91
|
+
|
|
92
|
+
1. Read the rule file
|
|
93
|
+
2. Extract the `description` from the frontmatter
|
|
94
|
+
3. Extract the body content (everything after the closing `---` of the frontmatter)
|
|
95
|
+
4. Create the skill directory: `.cursor/skills/{skill-name}/` (skill name = filename without .mdc)
|
|
96
|
+
5. Write `SKILL.md` with new frontmatter (`name` and `description`) + the EXACT original body content (preserve all whitespace, formatting, code blocks verbatim)
|
|
97
|
+
6. Delete the original rule file
|
|
98
|
+
|
|
99
|
+
### Migrate a Command (.md → SKILL.md)
|
|
100
|
+
|
|
101
|
+
1. Read the command file
|
|
102
|
+
2. Extract description from the first heading (remove `#` prefix)
|
|
103
|
+
3. Create the skill directory: `.cursor/skills/{skill-name}/` (skill name = filename without .md)
|
|
104
|
+
4. Write `SKILL.md` with new frontmatter (`name`, `description`, and `disable-model-invocation: true`) + blank line + the EXACT original file content (preserve all whitespace, formatting, code blocks verbatim)
|
|
105
|
+
5. Delete the original command file
|
|
106
|
+
|
|
107
|
+
**CRITICAL: Copy the body content character-for-character. Do not reformat, fix typos, or "improve" anything.**
|
|
108
|
+
|
|
109
|
+
## Workflow
|
|
110
|
+
|
|
111
|
+
If you have the Task tool available:
|
|
112
|
+
DO NOT start to read all of the files yourself. That function should be delegated to the subagents. Your job is to dispatch the subagents for each category of files and wait for the results.
|
|
113
|
+
|
|
114
|
+
1. [ ] Create the skills directories if they don't exist (`.cursor/skills/` for project, `~/.cursor/skills/` for user)
|
|
115
|
+
2. Dispatch three fast general purpose subagents (NOT explore) in parallel to do the following steps for project rules (pattern: `{workspaceFolder}/**/.cursor/rules/*.mdc`), user commands (pattern: `~/.cursor/commands/*.md`), and project commands (pattern: `{workspaceFolder}/**/.cursor/commands/*.md`):
|
|
116
|
+
I. [ ] Find files to migrate in the given pattern
|
|
117
|
+
II. [ ] For rules, check if it's an "applied intelligently" rule (has `description`, no `globs`, no `alwaysApply: true`). Commands are always migrated. DO NOT use the terminal to read files. Use the read tool.
|
|
118
|
+
III. [ ] Make a list of files to migrate. If empty, done.
|
|
119
|
+
IV. [ ] For each file, read it, then write the new skill file preserving the body content EXACTLY. DO NOT use the terminal to write these files. Use the edit tool.
|
|
120
|
+
V. [ ] Delete the original file. DO NOT use the terminal to delete these files. Use the delete tool.
|
|
121
|
+
VI. [ ] Return a list of all the skill files that were migrated along with the original file paths.
|
|
122
|
+
3. [ ] Wait for all subagents to complete and summarize the results to the user. IMPORTANT: Make sure to let them know if they want to undo the migration, to ask you to.
|
|
123
|
+
4. [ ] If the user asks you to undo the migration, do the opposite of the above steps to restore the original files.
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
If you don't have the Task tool available:
|
|
127
|
+
1. [ ] Create the skills directories if they don't exist (`.cursor/skills/` for project, `~/.cursor/skills/` for user)
|
|
128
|
+
2. [ ] Find files to migrate in both project (`.cursor/`) and user (`~/.cursor/`) directories
|
|
129
|
+
3. [ ] For rules, check if it's an "applied intelligently" rule (has `description`, no `globs`, no `alwaysApply: true`). Commands are always migrated. DO NOT use the terminal to read files. Use the read tool.
|
|
130
|
+
4. [ ] Make a list of files to migrate. If empty, done.
|
|
131
|
+
5. [ ] For each file, read it, then write the new skill file preserving the body content EXACTLY. DO NOT use the terminal to write these files. Use the edit tool.
|
|
132
|
+
6. [ ] Delete the original file. DO NOT use the terminal to delete these files. Use the delete tool.
|
|
133
|
+
7. [ ] Summarize the results to the user. IMPORTANT: Make sure to let them know if they want to undo the migration, to ask you to.
|
|
134
|
+
8. [ ] If the user asks you to undo the migration, do the opposite of the above steps to restore the original files.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: shell
|
|
3
|
+
description: >-
|
|
4
|
+
Runs the rest of a /shell request as a literal shell command. Use only when
|
|
5
|
+
the user explicitly invokes /shell and wants the following text executed
|
|
6
|
+
directly in the terminal.
|
|
7
|
+
disable-model-invocation: true
|
|
8
|
+
---
|
|
9
|
+
# Run Shell Commands
|
|
10
|
+
|
|
11
|
+
Use this skill only when the user explicitly invokes `/shell`.
|
|
12
|
+
|
|
13
|
+
## Behavior
|
|
14
|
+
|
|
15
|
+
1. Treat all user text after the `/shell` invocation as the literal shell command to run.
|
|
16
|
+
2. Execute that command immediately with the terminal tool.
|
|
17
|
+
3. Do not rewrite, explain, or "improve" the command before running it.
|
|
18
|
+
4. Do not inspect the repository first unless the command itself requires repository context.
|
|
19
|
+
5. If the user invokes `/shell` without any following text, ask them which command to run.
|
|
20
|
+
|
|
21
|
+
## Response
|
|
22
|
+
|
|
23
|
+
- Run the command first.
|
|
24
|
+
- Then briefly report the exit status and any important stdout or stderr.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: update-cursor-settings
|
|
3
|
+
description: >-
|
|
4
|
+
Modify Cursor/VSCode user settings in settings.json. Use when you want to
|
|
5
|
+
change editor settings, preferences, configuration, themes, font size, tab
|
|
6
|
+
size, format on save, auto save, keybindings, or any settings.json values.
|
|
7
|
+
metadata:
|
|
8
|
+
surfaces:
|
|
9
|
+
- ide
|
|
10
|
+
---
|
|
11
|
+
# Updating Cursor Settings
|
|
12
|
+
|
|
13
|
+
This skill guides you through modifying Cursor/VSCode user settings. Use this when you want to change editor settings, preferences, configuration, themes, keybindings, or any `settings.json` values.
|
|
14
|
+
|
|
15
|
+
## Settings File Location
|
|
16
|
+
|
|
17
|
+
| OS | Path |
|
|
18
|
+
|----|------|
|
|
19
|
+
| macOS | ~/Library/Application Support/Cursor/User/settings.json |
|
|
20
|
+
| Linux | ~/.config/Cursor/User/settings.json |
|
|
21
|
+
| Windows | %APPDATA%\Cursor\User\settings.json |
|
|
22
|
+
|
|
23
|
+
## Before Modifying Settings
|
|
24
|
+
|
|
25
|
+
1. **Read the existing settings file** to understand current configuration
|
|
26
|
+
2. **Preserve existing settings** - only add/modify what the user requested
|
|
27
|
+
3. **Validate JSON syntax** before writing to avoid breaking the editor
|
|
28
|
+
|
|
29
|
+
## Modifying Settings
|
|
30
|
+
|
|
31
|
+
### Step 1: Read Current Settings
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
// Read the settings file first
|
|
35
|
+
const settingsPath = "~/Library/Application Support/Cursor/User/settings.json";
|
|
36
|
+
// Use the Read tool to get current contents
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Step 2: Identify the Setting to Change
|
|
40
|
+
|
|
41
|
+
Common setting categories:
|
|
42
|
+
- **Editor**: `editor.fontSize`, `editor.tabSize`, `editor.wordWrap`, `editor.formatOnSave`
|
|
43
|
+
- **Workbench**: `workbench.colorTheme`, `workbench.iconTheme`, `workbench.sideBar.location`
|
|
44
|
+
- **Files**: `files.autoSave`, `files.exclude`, `files.associations`
|
|
45
|
+
- **Terminal**: `terminal.integrated.fontSize`, `terminal.integrated.shell.*`
|
|
46
|
+
- **Cursor-specific**: Settings prefixed with `cursor.` or `aipopup.`
|
|
47
|
+
|
|
48
|
+
### Step 3: Update the Setting
|
|
49
|
+
|
|
50
|
+
When modifying settings.json:
|
|
51
|
+
1. Parse the existing JSON (handle comments - VSCode settings support JSON with comments)
|
|
52
|
+
2. Add or update the requested setting
|
|
53
|
+
3. Preserve all other existing settings
|
|
54
|
+
4. Write back with proper formatting (2-space indentation)
|
|
55
|
+
|
|
56
|
+
### Example: Changing Font Size
|
|
57
|
+
|
|
58
|
+
If user says "make the font bigger":
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"editor.fontSize": 16
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Example: Enabling Format on Save
|
|
67
|
+
|
|
68
|
+
If user says "format my code when I save":
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
{
|
|
72
|
+
"editor.formatOnSave": true
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Example: Changing Theme
|
|
77
|
+
|
|
78
|
+
If user says "use dark theme" or "change my theme":
|
|
79
|
+
|
|
80
|
+
```json
|
|
81
|
+
{
|
|
82
|
+
"workbench.colorTheme": "Default Dark Modern"
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Important Notes
|
|
87
|
+
|
|
88
|
+
1. **JSON with Comments**: VSCode/Cursor settings.json supports comments (`//` and `/* */`). When reading, be aware comments may exist. When writing, preserve comments if possible.
|
|
89
|
+
|
|
90
|
+
2. **Restart May Be Required**: Some settings take effect immediately, others require reloading the window or restarting Cursor. Inform the user if a restart is needed.
|
|
91
|
+
|
|
92
|
+
3. **Backup**: For significant changes, consider mentioning the user can undo via Ctrl/Cmd+Z in the settings file or by reverting git changes if tracked.
|
|
93
|
+
|
|
94
|
+
4. **Workspace vs User Settings**:
|
|
95
|
+
- User settings (what this skill covers): Apply globally to all projects
|
|
96
|
+
- Workspace settings (`.vscode/settings.json`): Apply only to the current project
|
|
97
|
+
|
|
98
|
+
5. **Commit Attribution**: When the user asks about commit attribution, clarify whether they want to edit the **CLI agent** or the **IDE agent**. For the CLI agent, modify `~/.cursor/cli-config.json`. For the IDE agent, it is controlled from the UI at **Cursor Settings > Agent > Attribution** (not settings.json).
|
|
99
|
+
|
|
100
|
+
## Common User Requests → Settings
|
|
101
|
+
|
|
102
|
+
| User Request | Setting |
|
|
103
|
+
|--------------|---------|
|
|
104
|
+
| "bigger/smaller font" | `editor.fontSize` |
|
|
105
|
+
| "change tab size" | `editor.tabSize` |
|
|
106
|
+
| "format on save" | `editor.formatOnSave` |
|
|
107
|
+
| "word wrap" | `editor.wordWrap` |
|
|
108
|
+
| "change theme" | `workbench.colorTheme` |
|
|
109
|
+
| "hide minimap" | `editor.minimap.enabled` |
|
|
110
|
+
| "auto save" | `files.autoSave` |
|
|
111
|
+
| "line numbers" | `editor.lineNumbers` |
|
|
112
|
+
| "bracket matching" | `editor.bracketPairColorization.enabled` |
|
|
113
|
+
| "cursor style" | `editor.cursorStyle` |
|
|
114
|
+
| "smooth scrolling" | `editor.smoothScrolling` |
|
|
115
|
+
|
|
116
|
+
## Workflow
|
|
117
|
+
|
|
118
|
+
1. Read ~/Library/Application Support/Cursor/User/settings.json
|
|
119
|
+
2. Parse the JSON content
|
|
120
|
+
3. Add/modify the requested setting(s)
|
|
121
|
+
4. Write the updated JSON back to the file
|
|
122
|
+
5. Inform the user the setting has been changed and whether a reload is needed
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
note_type: dashboard
|
|
3
|
+
dashboard: project-overview
|
|
4
|
+
project: <project-name>
|
|
5
|
+
last_updated: <date>
|
|
6
|
+
tags:
|
|
7
|
+
- agent-knowledge
|
|
8
|
+
- dashboard
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Project Overview
|
|
12
|
+
|
|
13
|
+
## Current State
|
|
14
|
+
|
|
15
|
+
- Memory root: [../Memory/MEMORY.md](../Memory/MEMORY.md)
|
|
16
|
+
- Evidence roots: [../Evidence/raw/README.md](../Evidence/raw/README.md), [../Evidence/imports/README.md](../Evidence/imports/README.md)
|
|
17
|
+
|
|
18
|
+
## Durable Changes
|
|
19
|
+
|
|
20
|
+
- No durable rollup recorded yet.
|
|
21
|
+
|
|
22
|
+
## Open Questions
|
|
23
|
+
|
|
24
|
+
- Which branch should be backfilled first?
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
note_type: dashboard
|
|
3
|
+
dashboard: session-rollup
|
|
4
|
+
project: <project-name>
|
|
5
|
+
last_updated: <date>
|
|
6
|
+
tags:
|
|
7
|
+
- agent-knowledge
|
|
8
|
+
- dashboard
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Session Rollup
|
|
12
|
+
|
|
13
|
+
## Recent Sessions
|
|
14
|
+
|
|
15
|
+
- Session files live in [../Sessions/README.md](../Sessions/README.md).
|
|
16
|
+
|
|
17
|
+
## Repeated Issues
|
|
18
|
+
|
|
19
|
+
- No repeated issues summarized yet.
|
|
20
|
+
|
|
21
|
+
## Next Review
|
|
22
|
+
|
|
23
|
+
- Review recent sessions before the next compaction or handoff.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"description": "Repo-local hook for agent-knowledge sync.",
|
|
4
|
+
"hooks": [
|
|
5
|
+
{
|
|
6
|
+
"name": "project-knowledge-sync",
|
|
7
|
+
"event": "post-write",
|
|
8
|
+
"command": "agent-knowledge update --summary-file <repo-path>/.cursor/knowledge-sync.last.json --project <repo-path>"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Agent Knowledge
|
|
2
|
+
|
|
3
|
+
This project uses agent-knowledge for persistent project memory.
|
|
4
|
+
Read `AGENTS.md` for knowledge management instructions.
|
|
5
|
+
Check `./agent-knowledge/STATUS.md` for onboarding state.
|
|
6
|
+
|
|
7
|
+
If onboarding is pending, follow the instructions in AGENTS.md before other work.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Agent Knowledge
|
|
2
|
+
|
|
3
|
+
This project uses agent-knowledge for persistent project memory.
|
|
4
|
+
Read the root `AGENTS.md` for knowledge management instructions.
|
|
5
|
+
Check `./agent-knowledge/STATUS.md` for onboarding state.
|
|
6
|
+
|
|
7
|
+
If onboarding is pending, follow the instructions in the root AGENTS.md before other work.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Agent knowledge system -- read on every session
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
This project uses agent-knowledge for persistent memory.
|
|
7
|
+
|
|
8
|
+
On session start:
|
|
9
|
+
1. Read `./agent-knowledge/STATUS.md`
|
|
10
|
+
2. If `onboarding: pending`, read `AGENTS.md` and follow the First-Time Onboarding instructions
|
|
11
|
+
3. If `onboarding: complete`, read `./agent-knowledge/Memory/MEMORY.md` for project context
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"description": "Repo-local hook for agent-knowledge sync.",
|
|
4
|
+
"hooks": [
|
|
5
|
+
{
|
|
6
|
+
"name": "project-knowledge-sync",
|
|
7
|
+
"event": "post-write",
|
|
8
|
+
"command": "agent-knowledge update --summary-file <repo-path>/.cursor/knowledge-sync.last.json --project <repo-path>"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
note_type: durable-memory-root
|
|
3
|
+
project: <project-name>
|
|
4
|
+
status: active
|
|
5
|
+
last_updated: <date>
|
|
6
|
+
tags:
|
|
7
|
+
- agent-knowledge
|
|
8
|
+
- memory
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Memory: <project-name>
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Landing page for curated project memory. Keep this file short and use it to route into
|
|
16
|
+
the right branch notes.
|
|
17
|
+
|
|
18
|
+
## Current State
|
|
19
|
+
|
|
20
|
+
<current-state-lines>
|
|
21
|
+
|
|
22
|
+
## Recent Changes
|
|
23
|
+
|
|
24
|
+
<recent-change-lines>
|
|
25
|
+
|
|
26
|
+
## Decisions
|
|
27
|
+
|
|
28
|
+
<decision-lines>
|
|
29
|
+
|
|
30
|
+
## Open Questions
|
|
31
|
+
|
|
32
|
+
<open-question-lines>
|
|
33
|
+
|
|
34
|
+
## Branches
|
|
35
|
+
|
|
36
|
+
<branch-lines>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
note_type: memory-branch
|
|
3
|
+
project: <project-name>
|
|
4
|
+
area: <area-slug>
|
|
5
|
+
status: active
|
|
6
|
+
last_updated: <date>
|
|
7
|
+
tags:
|
|
8
|
+
- agent-knowledge
|
|
9
|
+
- memory
|
|
10
|
+
- <area-slug>
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# <Area Name>
|
|
14
|
+
|
|
15
|
+
## Purpose
|
|
16
|
+
|
|
17
|
+
<purpose-lines>
|
|
18
|
+
|
|
19
|
+
## Current State
|
|
20
|
+
|
|
21
|
+
<current-state-lines>
|
|
22
|
+
|
|
23
|
+
## Recent Changes
|
|
24
|
+
|
|
25
|
+
<recent-change-lines>
|
|
26
|
+
|
|
27
|
+
## Decisions
|
|
28
|
+
|
|
29
|
+
<decision-lines>
|
|
30
|
+
|
|
31
|
+
## Open Questions
|
|
32
|
+
|
|
33
|
+
<open-question-lines>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
note_type: decision
|
|
3
|
+
project: <project-name>
|
|
4
|
+
profile: <profile-type>
|
|
5
|
+
decision: <decision-slug>
|
|
6
|
+
status: active
|
|
7
|
+
date: <date>
|
|
8
|
+
tags:
|
|
9
|
+
- agent-knowledge
|
|
10
|
+
- decision
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Decision: <short-title>
|
|
14
|
+
|
|
15
|
+
## What
|
|
16
|
+
|
|
17
|
+
<what-lines>
|
|
18
|
+
|
|
19
|
+
## Why
|
|
20
|
+
|
|
21
|
+
<why-lines>
|
|
22
|
+
|
|
23
|
+
## Alternatives Considered
|
|
24
|
+
|
|
25
|
+
<alternatives-lines>
|
|
26
|
+
|
|
27
|
+
## Consequences
|
|
28
|
+
|
|
29
|
+
<consequences-lines>
|
|
30
|
+
|
|
31
|
+
## Superseded By
|
|
32
|
+
|
|
33
|
+
<superseded-lines>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
profile: hybrid
|
|
2
|
+
title: Hybrid
|
|
3
|
+
description: Monorepos and multi-service systems spanning multiple technical domains.
|
|
4
|
+
signals:
|
|
5
|
+
- workspace files (pnpm-workspace.yaml, nx.json, turbo.json)
|
|
6
|
+
- packages or services directories
|
|
7
|
+
- multiple manifests
|
|
8
|
+
- workflow files
|
|
9
|
+
candidate_areas:
|
|
10
|
+
- stack
|
|
11
|
+
- architecture
|
|
12
|
+
- deployments
|
|
13
|
+
area_hints:
|
|
14
|
+
stack: "All runtimes, languages, and frameworks across packages; shared tooling"
|
|
15
|
+
architecture: "Service/package boundaries, inter-service communication, shared contracts"
|
|
16
|
+
deployments: "Per-service deployment targets, CI/CD pipeline structure, environment promotion flow"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
profile: ml-platform
|
|
2
|
+
title: ML Platform
|
|
3
|
+
description: Model training, data pipelines, serving, and experiment tracking systems.
|
|
4
|
+
signals:
|
|
5
|
+
- pyproject.toml or requirements.txt with ML framework deps
|
|
6
|
+
- notebooks
|
|
7
|
+
- models directory
|
|
8
|
+
- data directory
|
|
9
|
+
candidate_areas:
|
|
10
|
+
- stack
|
|
11
|
+
- architecture
|
|
12
|
+
- datasets
|
|
13
|
+
- models
|
|
14
|
+
area_hints:
|
|
15
|
+
stack: "Framework (PyTorch/JAX/TF), orchestration, serving layer, artifact storage"
|
|
16
|
+
architecture: "Pipeline stages, feature store, model registry, experiment tracking, deployment targets"
|
|
17
|
+
datasets: "Data sources, schema, version lineage, known quality issues, access patterns"
|
|
18
|
+
models: "Active models in production, evaluation baselines, versioning scheme, rollback procedure"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
profile: robotics
|
|
2
|
+
title: Robotics
|
|
3
|
+
description: ROS/ROS2, simulation, hardware-software, and embedded robotics systems.
|
|
4
|
+
signals:
|
|
5
|
+
- package.xml
|
|
6
|
+
- CMakeLists.txt
|
|
7
|
+
- launch directories
|
|
8
|
+
- urdf or meshes
|
|
9
|
+
- ROS/Gazebo/MoveIt references in docs
|
|
10
|
+
candidate_areas:
|
|
11
|
+
- stack
|
|
12
|
+
- architecture
|
|
13
|
+
- hardware
|
|
14
|
+
- simulation
|
|
15
|
+
area_hints:
|
|
16
|
+
stack: "ROS version, language mix, build system, key packages"
|
|
17
|
+
architecture: "Node graph, topic/service topology, package boundaries, launch structure"
|
|
18
|
+
hardware: "Sensors, actuators, calibration state, known hardware-specific limitations"
|
|
19
|
+
simulation: "Sim environment, world files, test scenarios, sim vs real gaps"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
profile: web-app
|
|
2
|
+
title: Web App
|
|
3
|
+
description: SPA, SSR, and API-backed web applications.
|
|
4
|
+
signals:
|
|
5
|
+
- package.json with frontend framework deps
|
|
6
|
+
- frontend dependencies
|
|
7
|
+
- test directories
|
|
8
|
+
- workflow files
|
|
9
|
+
candidate_areas:
|
|
10
|
+
- stack
|
|
11
|
+
- architecture
|
|
12
|
+
- integrations
|
|
13
|
+
area_hints:
|
|
14
|
+
stack: "Frontend framework, backend runtime, database, auth provider, hosting platform"
|
|
15
|
+
architecture: "Routing, component model, API design, SSR/CSR boundary, state management"
|
|
16
|
+
integrations: "Third-party APIs, webhooks, payment, analytics, email, storage"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
note_type: portfolio-obsidian-index
|
|
3
|
+
status: active
|
|
4
|
+
last_updated: <date>
|
|
5
|
+
tags:
|
|
6
|
+
- agent-knowledge
|
|
7
|
+
- portfolio
|
|
8
|
+
- obsidian
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Portfolio `.obsidian`
|
|
12
|
+
|
|
13
|
+
This starter setup is for opening the parent knowledge root as a single umbrella vault.
|
|
14
|
+
|
|
15
|
+
Use it when you want:
|
|
16
|
+
|
|
17
|
+
- one file explorer across many project knowledge folders
|
|
18
|
+
- simple dashboards linking across projects
|
|
19
|
+
- markdown-first navigation without adding a database or special tooling
|
|
20
|
+
|
|
21
|
+
Keep machine-specific workspace state out unless the team explicitly wants it.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Connected project metadata for agent-knowledge.
|
|
2
|
+
|
|
3
|
+
version: 4
|
|
4
|
+
ontology_model: 2
|
|
5
|
+
|
|
6
|
+
project:
|
|
7
|
+
name: <project-name>
|
|
8
|
+
slug: <project-slug>
|
|
9
|
+
repo_root: .
|
|
10
|
+
profile_hint: unknown
|
|
11
|
+
|
|
12
|
+
knowledge:
|
|
13
|
+
pointer_path: ./agent-knowledge
|
|
14
|
+
real_path: <absolute-path-to-dedicated-knowledge-folder>
|
|
15
|
+
ignore_file: ./.agentknowledgeignore
|
|
16
|
+
memory_root: ./agent-knowledge/Memory/MEMORY.md
|
|
17
|
+
evidence_raw: ./agent-knowledge/Evidence/raw
|
|
18
|
+
evidence_imports: ./agent-knowledge/Evidence/imports
|
|
19
|
+
sessions_root: ./agent-knowledge/Sessions
|
|
20
|
+
outputs_root: ./agent-knowledge/Outputs
|
|
21
|
+
dashboards_root: ./agent-knowledge/Dashboards
|
|
22
|
+
obsidian_mode: lightweight
|
|
23
|
+
|
|
24
|
+
onboarding:
|
|
25
|
+
status: pending
|
|
26
|
+
|
|
27
|
+
sync:
|
|
28
|
+
bootstrap_on_connect: true
|
|
29
|
+
import_evidence_on_sync: true
|
|
30
|
+
graph_import_optional: true
|
|
31
|
+
compact_memory_on_ship: true
|
|
32
|
+
|
|
33
|
+
hooks:
|
|
34
|
+
cursor_hooks_file: ./.cursor/hooks.json
|
|
35
|
+
project_sync_command: agent-knowledge update --project .
|
|
36
|
+
graph_sync_command: agent-knowledge graphify-sync --project .
|