uncamp 0.0.0 → 0.1.2

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.
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: uncamp
3
+ description: Manage uncamp for the current project, including setup, showing, editing or forgetting what uncamp remembers, clearing project memories, or removing uncamp from the project.
4
+ ---
5
+
6
+ # uncamp project workflow
7
+
8
+ Use uncamp MCP for every uncamp project operation. Do not read `.uncamp/` or uncamp runtime internals, and do not use another memory store as a fallback. If a required tool is missing, report a uncamp integration failure and stop the uncamp operation. Repair the integration by running `npx uncamp install` (or `node dist/cli.js install` from the uncamp source).
9
+
10
+ ## Set up this project
11
+
12
+ When the user asks to connect or set up uncamp for this project:
13
+
14
+ 1. Establish the current project root from the coding agent's workspace context and verify it is the intended repository.
15
+ 2. Identify the current host from your own runtime (Codex, Cursor, or Claude Code). Do not guess a different host.
16
+ 3. Call `uncamp_setup_project` with the exact root and host. Setup is idempotent and configures this project only; global agent/plugin installation is handled by `npx uncamp install`.
17
+ 4. Review the project with `uncamp_review_project` and inspect current source and project documentation with native read tools. Record Item / Actions guidance only when the repository provides reusable, evidence-backed instructions; do not invent a resource or action to make the project look populated.
18
+ 5. Report the project path, completed integration, and any guidance recorded. A project with no reusable guidance is a valid empty state.
19
+
20
+ In Codex, invoke this skill as `$uncamp setup` or ask Codex to set up uncamp. `/uncamp` opens the slash-command picker; it is not how Codex invokes this skill. Other hosts use their native skill invocation syntax.
21
+
22
+ ## View project memory
23
+
24
+ For Item / Actions, call `uncamp_get_project_guidance` with the current project path to read the catalogue of every current item and the situations it covers. Decide which items apply to the task, then call it again with those `item_ids` for the full recommendations. Verify situation, scope, conditions, rechecks, and current project evidence before relying on one. An empty catalogue means no guidance yet; use project sources and your own reasoning.
25
+
26
+ For recent outcomes, use `uncamp_review_project`. For session or workload questions, use `uncamp_get_session_status` and `uncamp_note_workload`. For preferences, use `uncamp_get_project_preferences` and `uncamp_update_project_preferences`.
27
+
28
+ For a resource you started, record its end-of-task decision (and any user correction of it) with `uncamp_record_resource_decision`. When other verified project learning changes guidance, use `uncamp_record_project_guidance`; when the user stated it, add their words as a source starting with `user:`. Pass the retrieved `event_id` as `base_event_id` when revising an existing item. For a completed, verified action, use `uncamp_record_verified_outcome`; it records the receipt and does not perform the action.
29
+
30
+ ## Show, edit or forget a memory entry
31
+
32
+ When the user asks what uncamp remembers, call `uncamp_list_memory` and summarise the entries in plain words; use `uncamp_view_memory` with an entry's `id` when they want the detail. Reading is always fine.
33
+
34
+ Change or forget an entry only when the user asks for that change in this conversation. Their words are the authority: pass them as a source starting with `user:` (for example `user: forget the preview server note`). Without such words the tools refuse; do not write one on the user's behalf, and do not edit or forget memory to make your own decision easier.
35
+ - To change an entry, call `uncamp_view_memory` first, then `uncamp_edit_memory` with its current `event_id` as `base_event_id` and the full new recommendations. The old version stays in the entry's history.
36
+ - To forget an entry, call `uncamp_delete_memory` with its `id`. It moves the entry's notes to the Trash; tell the user they can restore them from there.
37
+ - If the user's request is ambiguous about which entry, list the entries and ask which one.
38
+
39
+ ## Clear this project's memories
40
+
41
+ Only do this when the user explicitly asks to clear memories for this exact project. Call `uncamp_clear_project_memory` for the verified current project root. The tool moves only `.uncamp/memory` to macOS Trash. It preserves project setup, preferences, session history, global uncamp records, and other projects. Report the Trash result. Do not clear broader uncamp state unless the user names that scope.
42
+
43
+ ## Remove uncamp from this project
44
+
45
+ When the user asks to remove or disconnect uncamp from the current project, call `uncamp_remove_project`. This removes uncamp's project wiring and project registration but retains the project memory and session history so the user can reconnect later. Do not clear memories unless the user explicitly requests both operations.
46
+
47
+ ## Safety and missing tools
48
+
49
+ uncamp tools manage uncamp setup and records, and provide two mechanics: `uncamp_stop_workload` for a noted process and `uncamp_move_to_trash` for an approved path. Other resource actions use the project's native tools. Guidance is advisory and never authorizes cleanup. Follow the hygienic-setup and session-end skills for resource work. If any required uncamp MCP tool is unavailable, report an integration failure and do not switch to a CLI or another storage path.
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: uncamp-hygienic-setup
3
+ description: Inspect project setup and resource effects, use documented improvements, and record reusable decisions.
4
+ ---
5
+
6
+ # uncamp hygienic setup
7
+
8
+ Use before setup, builds, installs, environments or other resource-producing work. Work from the configured project root. Use uncamp MCP for project context, preferences, memory and the few mechanics it provides.
9
+
10
+ - Read preferences and the project memory catalogue (`uncamp_get_project_guidance`); honor suppressions.
11
+ - Find affected resources from project context and the project's own tools. Research unfamiliar resources yourself: exact identity and scope, purpose, consumers, source of truth, recreation risk and native lifecycle. Reason from these principles, not from a list of resource types.
12
+ - Prefer authorized setup changes that make repeat work cheaper. Verify their effects. When a setup decision is reusable, record it in memory with `uncamp_record_project_guidance`.
13
+ - For anything that keeps running or keeps holding CPU, memory or disk, follow the uncamp-session-end skill: note it, decide its end-of-task outcome from memory or your own investigation, and follow that decision before the final answer. Never assume a keep. Leave pre-existing resources alone unless the user directs that exact change. No whole-Mac scans.
14
+ - Research supports a recommendation, not permission. Remove anything on disk only after the user explicitly approves the exact path, using `uncamp_move_to_trash`; never delete permanently.
15
+ - If a required uncamp MCP tool is unavailable, report the integration failure.
16
+
17
+ Do not read uncamp runtime internals. Leave unconfigured or opted-out projects alone. Linked worktrees share the primary project's uncamp state.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: uncamp-memory-writer
3
+ description: Record evidence-backed project resource instructions and verified setup or cleanup outcomes.
4
+ ---
5
+
6
+ # uncamp memory writer
7
+
8
+ Use uncamp MCP tools for all uncamp Item / Actions reads and writes. Call `uncamp_get_project_guidance` with the project root to read the catalogue, decide which items concern the resource, and fetch those by `item_ids`; judge evidence, scope, conditions and rechecks yourself. If the resource has no item yet, use project sources and current evidence with your own reasoning. If a required uncamp MCP tool is unavailable, report that uncamp memory access is unavailable; do not switch to the CLI or another memory store.
9
+
10
+ Use `uncamp_record_project_guidance` for evidence-backed additions or revisions. Each resource instruction has one or more situation-specific recommendations; each recommendation includes `situation`, `recommendation`, `scope`, `conditions`, `rechecks`, `evidence`, and `sources`. Do not flatten guidance into a global action or `why` field. Revisions pass the latest `event_id` as `base_event_id`; on stale-write error, retrieve again. `uncamp_record_verified_outcome` records only completed, verified actions and requires a unique `cleanup.operation_id`. These tools write memory; they never act on resources.
11
+
12
+ - Research identity/scope, purpose, lifecycle, supersession, consumers, source-of-truth/recreation risk and conditions. Record guidance separately from outcomes. Never assume a keep: a keep needs an explicit user ask or a memory entry the user confirmed. When the user states or confirms a decision, add their words as a source starting with `user:`.
13
+ - Research is not permission. Remove only after approval for that exact action and immediate identity/consumer rechecks. Unknown stays unknown; age alone proves nothing.
14
+ - Record each completed action as a new `cleanup_outcome` with current session ID and unique operation ID. Agent stops use `outcome: stopped` with matching identity and location. Never report an unclear attempt as success.
15
+ - Record completed actions with `uncamp_record_verified_outcome`: the item, the `outcome`, a `summary` in your own words and the `evidence` you checked. For a stopped process, pass the `workload_pid` you noted with `uncamp_note_workload`; uncamp fills in its identity and confirms it is gone. A Trash move needs `trash_destination`; uncamp confirms the source is gone and the destination exists.
16
+ - Link evidence IDs, record reviewed/unreviewed coverage, and quantify impact only with reliable source, method, units and scope. Revise with a fresh event ID and prior head. Memory is context; never read runtime internals.
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: uncamp-session-end
3
+ description: Use whenever your work starts something that keeps running or keeps holding CPU, memory, or disk after the command that launched it (for example a server or preview started for a quick check), including side steps in unrelated tasks. Note it with uncamp right after launch, decide what happens to it when the work is done, and follow that decision before replying.
4
+ ---
5
+
6
+ # Resources your work starts
7
+
8
+ You make the decisions; uncamp remembers them per project and does the mechanics.
9
+
10
+ ## Right after launch
11
+
12
+ Call `uncamp_note_workload` in the same step as the launch, before you test, curl, or stop it. Pass the PID, or the port it listens on if you don't know the PID. The first note opens the uncamp session and returns its ID. **Read the response:** if `saved_memory` or `detail` says a saved entry covers this resource (for example "user confirmed keep for this resource"), that is what the user told uncamp earlier; follow it unless the user says otherwise now, and do not decide from scratch. For a resource that is not a process, track its exact identity yourself.
13
+
14
+ ## Decide its end-of-task outcome and record it
15
+
16
+ Every noted resource needs a recorded decision, `stop` or `keep`, or `uncamp_finish_session` will not close the session.
17
+
18
+ 1. Follow saved memory first. The note's response already lists the entry that matches this resource (same port, command or kind); also read project memory with `uncamp_get_project_guidance` for anything it missed. If an entry covers this resource and its conditions still hold, follow it and pass its `memory_event_id` to `uncamp_record_resource_decision`. uncamp refuses a decision that contradicts an entry the user confirmed, unless you pass the user's new words as a `user:` source.
19
+ 2. If none does, investigate: what started it (you, the user, or the project's own tooling), whether the user asked for it to stay, and what depends on it. Then call `uncamp_record_resource_decision` with the decision, what the resource is, your reason, and your sources.
20
+
21
+ **Never assume a keep.** A resource stays after the task only when the user explicitly asked for that (pass their words as a source starting with `user:`), or a memory entry the user confirmed says so. Asking for its address, URL, port, or status is not a keep request; being useful, being a server, or being started by you does not count. Without one of those two, the decision is `stop`. Leave alone what your task did not start.
22
+
23
+ **A request to see it running is not a keep.** Asking you to show, demo, or check something while you work is a request for the task, and it ends with the task. Only a request to leave something running after the task is done is a keep. If you think the user may want a resource left running but they did not clearly say so, do not decide for them: before your final answer, ask them in plain words whether to leave it running or stop it. Record `keep` only when their answer says to leave it running, and pass that answer, in their words, as the `user:` source. Record `stop` when they say to stop it, and also when they have not answered. Do not quote an earlier request as a keep unless it was itself a request to leave it running afterwards.
24
+
25
+ ## Before your final answer
26
+
27
+ Follow each decision. Stop task-started processes whose decision is `stop` with `uncamp_stop_workload` or the project's native lifecycle; recheck the exact identity first and verify the process is gone. Leave kept ones running and say so. Leave pre-existing, shared, and uncertain resources alone. Files go only to the Trash through `uncamp_move_to_trash`; only after the user's explicit approval for the exact path. Then call `uncamp_finish_session`. If it refuses, record the decisions it lists and call it again.
28
+
29
+ ## When the user corrects you
30
+
31
+ If the user says to keep something, stop it, or handle it differently next time, call `uncamp_record_resource_decision` again for that resource with the new decision and the user's own words as a `user:` source. That revises the memory entry, and uncamp follows the revised entry from then on.
32
+
33
+ If uncamp MCP is unavailable, report the integration failure and use native tools for project actions.