youmd 0.6.21 → 0.6.27
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/dist/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +0 -1
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/chat.d.ts.map +1 -1
- package/dist/commands/chat.js +283 -184
- package/dist/commands/chat.js.map +1 -1
- package/dist/commands/export.d.ts +1 -0
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +5 -0
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +21 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/keys.d.ts.map +1 -1
- package/dist/commands/keys.js +3 -3
- package/dist/commands/keys.js.map +1 -1
- package/dist/commands/link.d.ts.map +1 -1
- package/dist/commands/link.js +3 -3
- package/dist/commands/link.js.map +1 -1
- package/dist/commands/login.d.ts +29 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +256 -127
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logs.js +0 -1
- package/dist/commands/logs.js.map +1 -1
- package/dist/commands/mcp.d.ts +14 -0
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +284 -28
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/okf.d.ts +12 -0
- package/dist/commands/okf.d.ts.map +1 -0
- package/dist/commands/okf.js +411 -0
- package/dist/commands/okf.js.map +1 -0
- package/dist/commands/private.d.ts.map +1 -1
- package/dist/commands/private.js +6 -5
- package/dist/commands/private.js.map +1 -1
- package/dist/commands/project.d.ts.map +1 -1
- package/dist/commands/project.js +9 -5
- package/dist/commands/project.js.map +1 -1
- package/dist/commands/publish.d.ts.map +1 -1
- package/dist/commands/publish.js +0 -1
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/pull.d.ts +24 -1
- package/dist/commands/pull.d.ts.map +1 -1
- package/dist/commands/pull.js +114 -14
- package/dist/commands/pull.js.map +1 -1
- package/dist/commands/push.d.ts +1 -0
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/push.js +33 -13
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/register.d.ts +6 -0
- package/dist/commands/register.d.ts.map +1 -1
- package/dist/commands/register.js +179 -79
- package/dist/commands/register.js.map +1 -1
- package/dist/commands/skill.d.ts.map +1 -1
- package/dist/commands/skill.js +121 -50
- package/dist/commands/skill.js.map +1 -1
- package/dist/commands/stack.d.ts +16 -0
- package/dist/commands/stack.d.ts.map +1 -0
- package/dist/commands/stack.js +863 -0
- package/dist/commands/stack.js.map +1 -0
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +25 -5
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.d.ts +23 -0
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +193 -12
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/whoami.d.ts.map +1 -1
- package/dist/commands/whoami.js +21 -16
- package/dist/commands/whoami.js.map +1 -1
- package/dist/create.js +0 -0
- package/dist/index.js +64 -7
- package/dist/index.js.map +1 -1
- package/dist/lib/api.d.ts +127 -5
- package/dist/lib/api.d.ts.map +1 -1
- package/dist/lib/api.js +142 -5
- package/dist/lib/api.js.map +1 -1
- package/dist/lib/ascii.d.ts +1 -0
- package/dist/lib/ascii.d.ts.map +1 -1
- package/dist/lib/ascii.js +9 -26
- package/dist/lib/ascii.js.map +1 -1
- package/dist/lib/canonical-json.d.ts +8 -0
- package/dist/lib/canonical-json.d.ts.map +1 -0
- package/dist/lib/canonical-json.js +29 -0
- package/dist/lib/canonical-json.js.map +1 -0
- package/dist/lib/capability-router.d.ts +58 -0
- package/dist/lib/capability-router.d.ts.map +1 -0
- package/dist/lib/capability-router.js +54 -0
- package/dist/lib/capability-router.js.map +1 -0
- package/dist/lib/compiler.d.ts +32 -0
- package/dist/lib/compiler.d.ts.map +1 -1
- package/dist/lib/compiler.js +150 -0
- package/dist/lib/compiler.js.map +1 -1
- package/dist/lib/config.d.ts +71 -35
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +334 -124
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/decompile.d.ts +6 -1
- package/dist/lib/decompile.d.ts.map +1 -1
- package/dist/lib/decompile.js +120 -11
- package/dist/lib/decompile.js.map +1 -1
- package/dist/lib/hash.d.ts.map +1 -1
- package/dist/lib/hash.js +2 -19
- package/dist/lib/hash.js.map +1 -1
- package/dist/lib/heartbeat.d.ts +38 -0
- package/dist/lib/heartbeat.d.ts.map +1 -0
- package/dist/lib/heartbeat.js +70 -0
- package/dist/lib/heartbeat.js.map +1 -0
- package/dist/lib/host-link.d.ts +123 -0
- package/dist/lib/host-link.d.ts.map +1 -0
- package/dist/lib/host-link.js +350 -0
- package/dist/lib/host-link.js.map +1 -0
- package/dist/lib/merge.d.ts +50 -0
- package/dist/lib/merge.d.ts.map +1 -0
- package/dist/lib/merge.js +167 -0
- package/dist/lib/merge.js.map +1 -0
- package/dist/lib/okf-bundle.d.ts +104 -0
- package/dist/lib/okf-bundle.d.ts.map +1 -0
- package/dist/lib/okf-bundle.js +473 -0
- package/dist/lib/okf-bundle.js.map +1 -0
- package/dist/lib/okf-health.d.ts +40 -0
- package/dist/lib/okf-health.d.ts.map +1 -0
- package/dist/lib/okf-health.js +152 -0
- package/dist/lib/okf-health.js.map +1 -0
- package/dist/lib/okf-stack.d.ts +47 -0
- package/dist/lib/okf-stack.d.ts.map +1 -0
- package/dist/lib/okf-stack.js +331 -0
- package/dist/lib/okf-stack.js.map +1 -0
- package/dist/lib/okf-view.d.ts +49 -0
- package/dist/lib/okf-view.d.ts.map +1 -0
- package/dist/lib/okf-view.js +197 -0
- package/dist/lib/okf-view.js.map +1 -0
- package/dist/lib/okf.d.ts +130 -0
- package/dist/lib/okf.d.ts.map +1 -0
- package/dist/lib/okf.js +263 -0
- package/dist/lib/okf.js.map +1 -0
- package/dist/lib/onboarding.d.ts +17 -0
- package/dist/lib/onboarding.d.ts.map +1 -1
- package/dist/lib/onboarding.js +224 -207
- package/dist/lib/onboarding.js.map +1 -1
- package/dist/lib/project.d.ts +5 -0
- package/dist/lib/project.d.ts.map +1 -1
- package/dist/lib/project.js +8 -0
- package/dist/lib/project.js.map +1 -1
- package/dist/lib/projectContext.d.ts +201 -0
- package/dist/lib/projectContext.d.ts.map +1 -0
- package/dist/lib/projectContext.js +597 -0
- package/dist/lib/projectContext.js.map +1 -0
- package/dist/lib/render.d.ts +38 -1
- package/dist/lib/render.d.ts.map +1 -1
- package/dist/lib/render.js +83 -18
- package/dist/lib/render.js.map +1 -1
- package/dist/lib/skill-catalog.d.ts.map +1 -1
- package/dist/lib/skill-catalog.js +22 -2
- package/dist/lib/skill-catalog.js.map +1 -1
- package/dist/lib/skills.d.ts +20 -5
- package/dist/lib/skills.d.ts.map +1 -1
- package/dist/lib/skills.js +116 -58
- package/dist/lib/skills.js.map +1 -1
- package/dist/lib/stackEval.d.ts +87 -0
- package/dist/lib/stackEval.d.ts.map +1 -0
- package/dist/lib/stackEval.js +233 -0
- package/dist/lib/stackEval.js.map +1 -0
- package/dist/lib/stackImprove.d.ts +49 -0
- package/dist/lib/stackImprove.d.ts.map +1 -0
- package/dist/lib/stackImprove.js +313 -0
- package/dist/lib/stackImprove.js.map +1 -0
- package/dist/lib/stackInstall.d.ts +59 -0
- package/dist/lib/stackInstall.d.ts.map +1 -0
- package/dist/lib/stackInstall.js +162 -0
- package/dist/lib/stackInstall.js.map +1 -0
- package/dist/lib/stackSafety.d.ts +126 -0
- package/dist/lib/stackSafety.d.ts.map +1 -0
- package/dist/lib/stackSafety.js +486 -0
- package/dist/lib/stackSafety.js.map +1 -0
- package/dist/lib/stackUpdate.d.ts +44 -0
- package/dist/lib/stackUpdate.d.ts.map +1 -0
- package/dist/lib/stackUpdate.js +256 -0
- package/dist/lib/stackUpdate.js.map +1 -0
- package/dist/lib/stream.d.ts +116 -0
- package/dist/lib/stream.d.ts.map +1 -0
- package/dist/lib/stream.js +368 -0
- package/dist/lib/stream.js.map +1 -0
- package/dist/lib/youstack.d.ts +219 -0
- package/dist/lib/youstack.d.ts.map +1 -0
- package/dist/lib/youstack.js +1049 -0
- package/dist/lib/youstack.js.map +1 -0
- package/dist/mcp/registry.d.ts +133 -0
- package/dist/mcp/registry.d.ts.map +1 -0
- package/dist/mcp/registry.js +833 -0
- package/dist/mcp/registry.js.map +1 -0
- package/dist/mcp/server.d.ts +106 -5
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +851 -498
- package/dist/mcp/server.js.map +1 -1
- package/dist/postinstall.js +11 -2
- package/dist/postinstall.js.map +1 -1
- package/dist/you.d.ts +1 -0
- package/dist/you.js +40 -4
- package/dist/you.js.map +1 -1
- package/examples/youstack-bamfstack-public/docs/quickstart.md +34 -0
- package/examples/youstack-bamfstack-public/prompts/creator-draft-starter.md +15 -0
- package/examples/youstack-bamfstack-public/skills/bamfstack-start/SKILL.md +36 -0
- package/examples/youstack-bamfstack-public/tests/smoke.md +19 -0
- package/examples/youstack-bamfstack-public/workflows/creator-growth-workflow.md +22 -0
- package/examples/youstack-bamfstack-public/youstack.json +172 -0
- package/examples/youstack-personal/docs/quickstart.md +10 -0
- package/examples/youstack-personal/skills/youstack-start/SKILL.md +9 -0
- package/examples/youstack-personal/tests/smoke.md +9 -0
- package/examples/youstack-personal/workflows/startup.md +7 -0
- package/examples/youstack-personal/youstack.json +123 -0
- package/package.json +3 -3
- package/skills/claude-md-generator.md +1 -1
- package/skills/meta-improve.md +8 -3
- package/skills/proactive-context-fill.md +1 -1
- package/skills/youstack-maintainer.md +128 -0
- package/skills/youstack-start.md +78 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Startup Workflow
|
|
2
|
+
|
|
3
|
+
1. Inspect the stack manifest.
|
|
4
|
+
2. Confirm host adapter and project context availability.
|
|
5
|
+
3. Read local public/static context.
|
|
6
|
+
4. Fetch protected context only through scoped You.md API/MCP grants.
|
|
7
|
+
5. State the next useful move and the boundaries before acting.
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "youstack/v1",
|
|
3
|
+
"kind": "youstack",
|
|
4
|
+
"slug": "personal-agent-start",
|
|
5
|
+
"name": "Personal Agent Start",
|
|
6
|
+
"domain": "personal-agent-ops",
|
|
7
|
+
"aliases": ["startup", "agent-start", "default-personal-stack"],
|
|
8
|
+
"tags": ["coding", "project-context", "agent-startup"],
|
|
9
|
+
"version": "0.1.0",
|
|
10
|
+
"description": "Local-first starter YouStack for Claude Code, Codex, and Cursor.",
|
|
11
|
+
"visibility": "private",
|
|
12
|
+
"compatibility": {
|
|
13
|
+
"hosts": ["claude-code", "codex", "cursor"],
|
|
14
|
+
"minYoumdCli": "0.6.0",
|
|
15
|
+
"requiresYoumdApi": false,
|
|
16
|
+
"requiresYoumdMcp": false
|
|
17
|
+
},
|
|
18
|
+
"brainScopes": [
|
|
19
|
+
{
|
|
20
|
+
"scope": "identity.public.read",
|
|
21
|
+
"required": true,
|
|
22
|
+
"reason": "Introduce the user and their working style to the host agent."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"scope": "preferences.agent.read",
|
|
26
|
+
"required": true,
|
|
27
|
+
"reason": "Apply communication, coding, and collaboration preferences."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"scope": "memories.search",
|
|
31
|
+
"required": false,
|
|
32
|
+
"reason": "Retrieve protected memories only when local static files are insufficient."
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"files": [
|
|
36
|
+
{
|
|
37
|
+
"path": "skills/youstack-start/SKILL.md",
|
|
38
|
+
"type": "skill",
|
|
39
|
+
"required": true
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "workflows/startup.md",
|
|
43
|
+
"type": "workflow",
|
|
44
|
+
"required": true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"path": "docs/quickstart.md",
|
|
48
|
+
"type": "docs",
|
|
49
|
+
"required": false
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"path": "tests/smoke.md",
|
|
53
|
+
"type": "test",
|
|
54
|
+
"required": false
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"adapters": {
|
|
58
|
+
"claude-code": {
|
|
59
|
+
"files": [".claude/skills/youstacks/personal-agent-start/SKILL.md"],
|
|
60
|
+
"bootstrap": "CLAUDE.md"
|
|
61
|
+
},
|
|
62
|
+
"codex": {
|
|
63
|
+
"files": [".codex/skills/youstacks/personal-agent-start/SKILL.md"],
|
|
64
|
+
"bootstrap": "AGENTS.md"
|
|
65
|
+
},
|
|
66
|
+
"cursor": {
|
|
67
|
+
"files": [".cursor/rules/youstacks-personal-agent-start.md"],
|
|
68
|
+
"bootstrap": ".cursor/rules"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"capabilities": [
|
|
72
|
+
{
|
|
73
|
+
"id": "startup",
|
|
74
|
+
"intent": "Load local identity, project context, active requests, TODOs, and host-safe next moves.",
|
|
75
|
+
"workflow": "workflows/startup.md",
|
|
76
|
+
"skill": "youstack-start",
|
|
77
|
+
"localOnly": true,
|
|
78
|
+
"mutationPolicy": "read_only"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "protected-memory-search",
|
|
82
|
+
"intent": "Search protected You.md memories through shared API/MCP when the local stack lacks enough context.",
|
|
83
|
+
"mcpTool": "you.search_memories",
|
|
84
|
+
"apiEndpoint": "POST /api/v1/stacks/{stack_id}/brain/search",
|
|
85
|
+
"requiredScopes": ["memories.search"],
|
|
86
|
+
"mutationPolicy": "read_only"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"accessPolicy": {
|
|
90
|
+
"defaultMode": "local_static",
|
|
91
|
+
"protectedByDefault": true,
|
|
92
|
+
"requiresApprovalFor": ["brain.write", "private_context.read", "connected_tool.write"]
|
|
93
|
+
},
|
|
94
|
+
"sharing": {
|
|
95
|
+
"allowedModes": ["private", "scoped-link", "public-open"],
|
|
96
|
+
"defaultMode": "private"
|
|
97
|
+
},
|
|
98
|
+
"repoSync": {
|
|
99
|
+
"enabled": false,
|
|
100
|
+
"provider": "github",
|
|
101
|
+
"path": "stacks/personal-agent-start"
|
|
102
|
+
},
|
|
103
|
+
"docs": {
|
|
104
|
+
"quickstart": "docs/quickstart.md"
|
|
105
|
+
},
|
|
106
|
+
"tests": {
|
|
107
|
+
"smoke": "tests/smoke.md"
|
|
108
|
+
},
|
|
109
|
+
"improvement": {
|
|
110
|
+
"mode": "propose",
|
|
111
|
+
"cadence": "after each meaningful agent session",
|
|
112
|
+
"signals": ["usage", "failures", "user corrections", "repo diffs", "smoke results"],
|
|
113
|
+
"evals": ["youmd stack smoke", "route startup requests to the expected capability"],
|
|
114
|
+
"appliesTo": ["skills", "workflows", "docs", "examples", "adapters"],
|
|
115
|
+
"approvalRequiredFor": ["brain.write", "private_context.read", "connected_tool.write", "remote_repo.write"]
|
|
116
|
+
},
|
|
117
|
+
"update": {
|
|
118
|
+
"channel": "manual",
|
|
119
|
+
"check": "youmd stack smoke",
|
|
120
|
+
"source": "user-owned GitHub repo or local stack folder",
|
|
121
|
+
"autoApply": false
|
|
122
|
+
}
|
|
123
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "youmd",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.27",
|
|
4
4
|
"description": "Identity context protocol for the agent internet — an MCP where the context is you. CLI for the You.md platform.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"you": "dist/you.js",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"start": "node dist/index.js",
|
|
20
20
|
"test": "vitest run",
|
|
21
21
|
"test:watch": "vitest",
|
|
22
|
-
"prepublishOnly": "npm run build",
|
|
23
|
-
"postinstall": "node dist/postinstall.js"
|
|
22
|
+
"prepublishOnly": "node scripts/check-version-exists.mjs && npm run build",
|
|
23
|
+
"postinstall": "node -e \"try{require('./dist/postinstall.js')}catch(e){if(e&&e.code!=='MODULE_NOT_FOUND')throw e}\""
|
|
24
24
|
},
|
|
25
25
|
"keywords": [
|
|
26
26
|
"identity",
|
|
@@ -19,7 +19,7 @@ Generate a CLAUDE.md for the current project, pre-loaded with your identity so e
|
|
|
19
19
|
## What This Skill Does
|
|
20
20
|
|
|
21
21
|
1. Detect project type (package.json, Cargo.toml, go.mod, pyproject.toml, etc.)
|
|
22
|
-
2. Read existing CLAUDE.md
|
|
22
|
+
2. Read existing CLAUDE.md and `project-context/` if present (especially `CURRENT_STATE.md`, `feature-requests-active.md`, and `TODO.md`)
|
|
23
23
|
3. Generate CLAUDE.md with:
|
|
24
24
|
- Your identity summary (who you are, what you're building)
|
|
25
25
|
- Your agent preferences (how coding agents should behave)
|
package/skills/meta-improve.md
CHANGED
|
@@ -18,17 +18,22 @@ The feedback loop that makes your identity smarter over time. Agents review what
|
|
|
18
18
|
## What This Skill Does
|
|
19
19
|
|
|
20
20
|
1. Read skill-metrics.json for usage data (which skills run, success/fail rates)
|
|
21
|
-
2.
|
|
21
|
+
2. Brain-aware preflight: if you are running inside a repo, skim `project-context/` first so you don’t propose generic changes the project already answered:
|
|
22
|
+
- `project-context/CURRENT_STATE.md`
|
|
23
|
+
- `project-context/feature-requests-active.md`
|
|
24
|
+
- `project-context/TODO.md`
|
|
25
|
+
- `project-context/reference-intelligence/TASKS.md`
|
|
26
|
+
3. Analyze patterns:
|
|
22
27
|
- Which skills get used most?
|
|
23
28
|
- Which identity fields get referenced most?
|
|
24
29
|
- Are there gaps? (skills that should exist but don't)
|
|
25
30
|
- Are there stale entries? (skills never used)
|
|
26
|
-
|
|
31
|
+
4. Propose changes:
|
|
27
32
|
- New directives based on repeated corrections
|
|
28
33
|
- Voice refinements based on agent interactions
|
|
29
34
|
- Skill additions based on detected workflow patterns
|
|
30
35
|
- Pruning of unused skills
|
|
31
|
-
|
|
36
|
+
5. Present proposals for user approval (never auto-apply)
|
|
32
37
|
|
|
33
38
|
## Metrics Tracked
|
|
34
39
|
|
|
@@ -23,7 +23,7 @@ Use this skill when starting a new session with a user who has a you.md identity
|
|
|
23
23
|
1. Scan the bundle on session start (read the relevant sections)
|
|
24
24
|
2. Build a list of detected gaps
|
|
25
25
|
3. Present the list to the user concisely
|
|
26
|
-
4. Offer YES/SKIP/ASK_LATER for each gap
|
|
26
|
+
4. Offer YES/SKIP/ASK_LATER for each gap (explicit consent; never auto-fill)
|
|
27
27
|
5. Execute the chosen actions in batches
|
|
28
28
|
6. Allow skipping individual sub-tasks (e.g. "scaffold all projects but skip BAMF.ai")
|
|
29
29
|
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: youstack-maintainer
|
|
3
|
+
description: Maintain, organize, update, and safely improve a user's YouStacks.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
scope: shared
|
|
6
|
+
identity_fields:
|
|
7
|
+
- profile.about
|
|
8
|
+
- preferences.agent
|
|
9
|
+
- directives.agent
|
|
10
|
+
- voice.overall
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# youstack-maintainer
|
|
14
|
+
|
|
15
|
+
Use this skill when the user asks to create, organize, improve, update, share, publish, or audit YouStacks.
|
|
16
|
+
|
|
17
|
+
## Core Rule
|
|
18
|
+
|
|
19
|
+
You.md is the brain. YouStacks are named execution packages built on top of that brain.
|
|
20
|
+
|
|
21
|
+
Keep stacks private by default. Never make a stack public, widen a scoped link, read private memory, write brain data, call connected tools, or push to a remote repo unless the user explicitly approves that exact action.
|
|
22
|
+
|
|
23
|
+
## Startup
|
|
24
|
+
|
|
25
|
+
1. If the You.md auto-upgrade helper exists, run it quietly before editing stack files:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
~/.youmd/bin/youmd-auto-upgrade --quiet || true
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
2. Discover stack manifests from the current repo, `youstacks/`, `.you/youstack.json`, or the user's chosen stack folder.
|
|
32
|
+
3. Run `youmd stack doctor --path <stack>`, then `youmd stack smoke --path <stack>` before trusting a manifest.
|
|
33
|
+
4. Read the stack's `improvement`, `update`, `sharing`, and `accessPolicy` blocks before changing anything.
|
|
34
|
+
5. Prefer local/static stack files first. Use You.md API/MCP only for protected brain retrieval, sync, tokens, grants, connected tools, hosted telemetry, or server-side actions.
|
|
35
|
+
6. Brain-aware preflight: before asking the user basic repo questions, skim the current repo context if present:
|
|
36
|
+
- `project-context/CURRENT_STATE.md`
|
|
37
|
+
- `project-context/feature-requests-active.md`
|
|
38
|
+
- `project-context/TODO.md`
|
|
39
|
+
- `project-context/reference-intelligence/TASKS.md`
|
|
40
|
+
7. Upstream-aware preflight: if a stack change touches shared agent rules, skills, scripts, prompts, host adapters, or distribution, check the current reference-intelligence task list for relevant GStack, GBrain, Agent Scripts, or The Library signals before designing the change.
|
|
41
|
+
|
|
42
|
+
## Organize A Stack
|
|
43
|
+
|
|
44
|
+
For each stack, make sure it has:
|
|
45
|
+
|
|
46
|
+
- A clear human name, stable slug, domain, aliases, and tags.
|
|
47
|
+
- Skills in `skills/<name>/SKILL.md`.
|
|
48
|
+
- Workflows in `workflows/`.
|
|
49
|
+
- Optional sub-agents in `subagents/`.
|
|
50
|
+
- Examples and golden prompts in `examples/` or `prompts/`.
|
|
51
|
+
- Smoke checks or eval notes in `tests/`.
|
|
52
|
+
- Docs in `docs/`.
|
|
53
|
+
- Host adapters for Claude Code, Codex, and Cursor.
|
|
54
|
+
- Optional pointer-catalog entries for repo-owned skills, prompts, scripts, agents, and examples that should stay canonical in their source repo instead of being copied.
|
|
55
|
+
- Typed dependencies between skills, sub-agents, prompts, scripts, and protected capabilities so install/use flows can pull prerequisites before the requested capability.
|
|
56
|
+
- A read-only diagnostic path for manifest bloat, route ambiguity, adapter drift, update hygiene, and public-readiness gaps.
|
|
57
|
+
- An improvement policy and update policy.
|
|
58
|
+
- A private/public/scoped sharing policy with `private` as the default.
|
|
59
|
+
|
|
60
|
+
## Improve A Stack
|
|
61
|
+
|
|
62
|
+
Use safe signals first:
|
|
63
|
+
|
|
64
|
+
- User corrections.
|
|
65
|
+
- Failed or ambiguous route choices.
|
|
66
|
+
- Smoke failures.
|
|
67
|
+
- Evals and golden prompt regressions.
|
|
68
|
+
- Repo diffs.
|
|
69
|
+
- Repeated manual edits.
|
|
70
|
+
- New docs or examples the user approves.
|
|
71
|
+
- Reference-intelligence tasks that are relevant:
|
|
72
|
+
- GStack for local-first skills, host adapters, evals, QA/review/release loops, and upgrade flows.
|
|
73
|
+
- GBrain for durable memory, retrieval, sync, provenance, privacy, and startup context.
|
|
74
|
+
- Agent Scripts for canonical shared AGENTS/skills/scripts/hooks, pointer-style downstream rules, skill validation, and portable helper ergonomics.
|
|
75
|
+
- The Library for private-first catalogs, reference-based installs, typed dependencies, and cross-device/team distribution.
|
|
76
|
+
|
|
77
|
+
Make the smallest useful improvement. Update skills, workflows, docs, examples, tests, and generated adapters together when the change affects more than one surface. Run `youmd stack smoke` again.
|
|
78
|
+
Run `youmd stack doctor` first when a change is triggered by route misses, bloat, stale adapters, memory/resource issues, or a reference-intelligence task.
|
|
79
|
+
|
|
80
|
+
## Source Of Truth Rules
|
|
81
|
+
|
|
82
|
+
- Prefer pointers over copies when a skill, prompt, script, or agent is owned by another repo and should improve there first.
|
|
83
|
+
- Use managed blocks or generated adapter files for downstream repos; preserve repo-local rules below the managed pointer.
|
|
84
|
+
- Keep helper scripts dependency-light and portable unless the manifest explicitly declares the runtime.
|
|
85
|
+
- Validate skill front matter after edits and before commit or publish.
|
|
86
|
+
- Never install public internet skills into a private stack without owner review.
|
|
87
|
+
- Pull dependencies first when a stack capability declares `skill:*`, `agent:*`, `prompt:*`, `script:*`, or `protected:*` requirements.
|
|
88
|
+
|
|
89
|
+
## Visibility
|
|
90
|
+
|
|
91
|
+
- `private`: default. Visible only to the owner and local agents with file access.
|
|
92
|
+
- `scoped-link`: share a bounded install/grant with a teammate, friend, or contractor.
|
|
93
|
+
- `team`: shared within an approved workspace/team.
|
|
94
|
+
- `public-open`: inspectable, forkable, installable public stack. Strip secrets, private memories, proprietary prompts, private examples, and internal tool details first.
|
|
95
|
+
|
|
96
|
+
When the user says "make this stack public", first prepare a public-readiness diff:
|
|
97
|
+
|
|
98
|
+
1. Confirm the stack name and slug.
|
|
99
|
+
2. List files that will become public.
|
|
100
|
+
3. List protected capabilities that remain behind You.md auth.
|
|
101
|
+
4. Remove or redact secrets, private memories, private context, private links, and proprietary prompts.
|
|
102
|
+
5. Run smoke checks.
|
|
103
|
+
6. Ask for final approval before publishing or pushing.
|
|
104
|
+
|
|
105
|
+
## BAMFStack Lighthouse Pattern
|
|
106
|
+
|
|
107
|
+
BAMFStack is the reference proof for an open YouStack:
|
|
108
|
+
|
|
109
|
+
- One curl install.
|
|
110
|
+
- Host-native skills and commands.
|
|
111
|
+
- Local helper CLI.
|
|
112
|
+
- Env-only API key handling.
|
|
113
|
+
- Auto-upgrade preamble.
|
|
114
|
+
- Capability discovery.
|
|
115
|
+
- Deterministic workflow routing.
|
|
116
|
+
- Read-only smoke test.
|
|
117
|
+
- Read-only stack doctor/diagnostic pass.
|
|
118
|
+
- Docs-quality examples.
|
|
119
|
+
- Sync rule: update stack files, docs, API/MCP references, prompts, and tests together.
|
|
120
|
+
|
|
121
|
+
Copy the pattern, not the private implementation. Keep proprietary prompts, product internals, credentials, private creator data, and sensitive actions behind authenticated BAMF or You.md API/MCP surfaces.
|
|
122
|
+
|
|
123
|
+
## External Inspiration Map
|
|
124
|
+
|
|
125
|
+
- GStack: product feel for installable agent operating systems.
|
|
126
|
+
- GBrain: product feel for a durable shared brain across agents.
|
|
127
|
+
- Agent Scripts: product feel for canonical shared rules, skills, scripts, hooks, and repo-owned skill symlinks that stay simple enough to maintain.
|
|
128
|
+
- The Library: product feel for a private-first catalog where agentic assets are referenced, pulled on demand, synced, and shared without forcing everything into a public marketplace.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: youstack-start
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
scope: shared
|
|
5
|
+
identity_fields: [profile.about, preferences.agent, directives.agent, voice.overall]
|
|
6
|
+
description: Start a local Claude/Codex/Cursor session with the user's identity, project state, active requests, installed skills, and next move.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# youstack-start
|
|
10
|
+
|
|
11
|
+
Use this skill at the beginning of a local-agent session, or when the user says "continue", "what should we do next", "use you.md", "use youstack", or asks you to make an existing repo smarter for agents.
|
|
12
|
+
|
|
13
|
+
YouStack is the you.md operating layer for local agents: identity, project context, skills, scripts, prompts, sub-agents, memory, activity logs, and safe additive repo bootstrapping.
|
|
14
|
+
|
|
15
|
+
## Identity Context
|
|
16
|
+
|
|
17
|
+
- **About:** {{profile.about}}
|
|
18
|
+
- **Agent preferences:** {{preferences.agent}}
|
|
19
|
+
- **Directives:** {{directives.agent}}
|
|
20
|
+
- **Voice:** {{voice.overall}}
|
|
21
|
+
|
|
22
|
+
## First Calls
|
|
23
|
+
|
|
24
|
+
If the You.md MCP server is available, call these in order:
|
|
25
|
+
|
|
26
|
+
1. `whoami`
|
|
27
|
+
2. `get_agent_brief` with `format: "markdown"`
|
|
28
|
+
3. `list_skills`
|
|
29
|
+
4. `use_skill` with `name: "youstack-start"` if the skill has not already been loaded
|
|
30
|
+
|
|
31
|
+
If MCP is not available but the CLI is installed, use:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
youmd whoami
|
|
35
|
+
youmd skill list
|
|
36
|
+
youmd skill use youstack-start
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
If neither is available, read the repo's normal instruction files first: `AGENTS.md`, `CLAUDE.md`, `.cursor/rules/`, `.you/`, and `project-context/`.
|
|
40
|
+
|
|
41
|
+
## Operating Loop
|
|
42
|
+
|
|
43
|
+
1. Read the entire user request and extract every actionable request.
|
|
44
|
+
2. Read local project instructions before designing or editing.
|
|
45
|
+
3. Check `project-context/feature-requests-active.md`, `project-context/CURRENT_STATE.md`, and `project-context/TODO.md` when present.
|
|
46
|
+
4. Pick the highest-value next move from real context, not a generic command list.
|
|
47
|
+
5. Act end-to-end: implement, verify, update trackers, and report what actually changed.
|
|
48
|
+
6. Prefer additive changes to generated agent layers (`.you/`, `.claude/skills/youmd/`, `.codex/skills/youmd/`) before rewriting mature human-owned docs.
|
|
49
|
+
7. When a repo already has canonical shared rules or skills elsewhere, add a pointer/managed block instead of duplicating the full text.
|
|
50
|
+
|
|
51
|
+
## Skill Routing
|
|
52
|
+
|
|
53
|
+
Use the available You.md skills as follows:
|
|
54
|
+
|
|
55
|
+
- `project-context-init` when a repo lacks a usable project-context spine.
|
|
56
|
+
- `claude-md-generator` when a host-specific agent entrypoint is missing or stale.
|
|
57
|
+
- `voice-sync` after voice or communication preferences change.
|
|
58
|
+
- `proactive-context-fill` when identity or project context is thin.
|
|
59
|
+
- `you-logs` when the user wants proof of which agents accessed context.
|
|
60
|
+
- `meta-improve` after repeated sessions to convert corrections into better identity or skill instructions.
|
|
61
|
+
- `youstack-maintainer` when a repo needs shared skills, scripts, prompts, sub-agents, source pointers, host adapters, or stack sync improved.
|
|
62
|
+
|
|
63
|
+
## Guardrails
|
|
64
|
+
|
|
65
|
+
- Do not ask the user to paste files you can read locally.
|
|
66
|
+
- Do not claim You.md pushed, published, linked, or wrote anything unless the tool or command actually succeeded.
|
|
67
|
+
- Do not overwrite existing `AGENTS.md`, `CLAUDE.md`, `.cursor/rules`, or project-context files wholesale. Merge or add a managed block.
|
|
68
|
+
- Do not copy repo-owned skills/prompts/scripts into a stack when a source pointer would keep the upstream repo canonical.
|
|
69
|
+
- Do not stop at "here is a plan" when the user asked you to continue improving the stack.
|
|
70
|
+
- Save durable learnings as memories or project notes when the host supports it.
|
|
71
|
+
|
|
72
|
+
## Done Means
|
|
73
|
+
|
|
74
|
+
- The current request is tracked.
|
|
75
|
+
- The relevant code, skill, MCP, API, or docs surface is actually updated.
|
|
76
|
+
- The change is tested with the smallest meaningful local verification.
|
|
77
|
+
- Project trackers reflect the state honestly.
|
|
78
|
+
- The final response names what changed and what still needs production/user verification.
|