Skip to content
Back to skills

Plans

ASecurity

> **For agentic workers:** REQUIRED SUB-SKILL: superpowers:subagent-driven-development. `- [ ]` checkboxes. **Goal:** Deliver the dreaming playbook as the `pensieve-dreaming` skill to the spawned Claude CLI via the filesystem (`<cwd>/.claude/skills/`), replacing the hardcoded `dreaming_prompt()`. No `claude_cli.rs` change (uses the existing `cwd` param). Agent-agnostic; safe fallback. **Spec:** `docs/superpowers/specs/2026-06-09-dreaming-via-skill-design.md`. **Co-working note:** the user is ...

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 3, 2026
ai-agentsrustgo

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned September 3, 2026

npx -y skills add shakedaskayo/pensieve --skill plans --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plans?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Plans
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shakedaskayo-plans/badge)](https://www.skillsdirectory.com/skills/shakedaskayo-plans)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Dreaming via the Pensieve Skill — Implementation Plan

> **For agentic workers:** REQUIRED SUB-SKILL: superpowers:subagent-driven-development. `- [ ]` checkboxes.

**Goal:** Deliver the dreaming playbook as the `pensieve-dreaming` skill to the spawned Claude CLI via the filesystem (`<cwd>/.claude/skills/`), replacing the hardcoded `dreaming_prompt()`. No `claude_cli.rs` change (uses the existing `cwd` param). Agent-agnostic; safe fallback.

**Spec:** `docs/superpowers/specs/2026-06-09-dreaming-via-skill-design.md`.

**Co-working note:** the user is editing `claude_cli.rs` (binary-location). Piece 2 must NOT touch it. Never stage other uncommitted files.

---

### Task 1: `skill_delivery` module — materialize skills into a workdir

**Files:** `crates/pensieve-server/src/agent/skill_delivery.rs` (new), `agent/mod.rs` (`pub mod`), maybe `Cargo.toml` (`tempfile`).

- [ ] **Step 1** — Confirm `tempfile` is a dep of `pensieve-server` (`grep tempfile crates/pensieve-server/Cargo.toml`; if absent, add it — check the root `[workspace.dependencies]` and use `tempfile.workspace = true` if present, else the version a sibling uses).
- [ ] **Step 2** — Failing test (`skill_delivery.rs` `#[cfg(test)]`):
  ```rust
  #[tokio::test]
  async fn writes_each_skill_under_claude_skills() {
      let skills = vec![
          SkillDoc { name: "pensieve-dreaming".into(), body: "---\nname: pensieve-dreaming\n---\nbody".into() },
          SkillDoc { name: "pensieve-memory".into(), body: "x".into() },
      ];
      let d = deliver_to_workdir(&skills).await.unwrap();
      let p = d.workdir.path().join(".claude/skills/pensieve-dreaming/SKILL.md");
      assert!(p.exists());
      assert!(std::fs::read_to_string(&p).unwrap().contains("name: pensieve-dreaming"));
      assert!(d.workdir.path().join(".claude/skills/pensieve-memory/SKILL.md").exists());
  }
  ```
  Run `cargo test -p pensieve-server skill_delivery` → FAIL.
- [ ] **Step 3** — Implement:
  ```rust
  pub struct SkillDoc { pub name: String, pub body: String }
  pub struct DeliveredSkills { pub workdir: tempfile::TempDir }
  /// Write `<workdir>/.claude/skills/<name>/SKILL.md` for each skill. The
  /// returned workdir must outlive the spawned CLI (drop cleans it up).
  pub async fn deliver_to_workdir(skills: &[SkillDoc]) -> anyhow::Result<DeliveredSkills> {
      let workdir = tempfile::tempdir()?;
      for s in skills {
          let dir = workdir.path().join(".claude/skills").join(&s.name);
          tokio::fs::create_dir_all(&dir).await?;
          tokio::fs::write(dir.join("SKILL.md"), &s.body).await?;
      }
      Ok(DeliveredSkills { workdir })
  }
  ```
  Add `pub mod skill_delivery;` to `agent/mod.rs`.
- [ ] **Step 4** — `cargo test -p pensieve-server skill_delivery` (pass) + build. Commit: `feat(agent): filesystem skill-delivery for the Claude CLI (workdir/.claude/skills)`.

---

### Task 2: the `pensieve-dreaming` skill (embedded const + parse test)

**Files:** `crates/pensieve-server/src/agent/dreaming_skill.rs` (new) + `agent/mod.rs`.

- [ ] **Step 1** — Read `dreaming.rs::dreaming_prompt` (~252-347) to capture the EXACT procedure (PHASE 1 review, PHASE 2 gap-fill with connector-read budget, PHASE 3 graph wiring / entity maintenance / conflict resolution) and which MCP tools each phase uses.
- [ ] **Step 2** — Failing test (`dreaming_skill.rs` `#[cfg(test)]`): `pensieve_dreaming_skill()` returns a string whose frontmatter has `name: pensieve-dreaming` and a `description:`, and whose body contains the three phase markers + "connector_read" budget rule. Assert it parses with the crate's skill frontmatter parser if one is reachable (`skills::` parse fn); else assert the `---`-delimited frontmatter + required substrings.
- [ ] **Step 3** — Implement: `pub fn pensieve_dreaming_skill() -> &'static str` returning a `SKILL.md` const — developer voice, frontmatter (`name: pensieve-dreaming`, one-line `description`), then the dreaming procedure rewritten as instructions to the agent ("Use `recall_memory`/`run_kql` to survey recent memories + `claude_code_events`… Use `connector_read` (READ-ONLY, budget N) to fill gaps… Rescore importance, merge duplicates, link entities via …"). Keep it faithful to `dreaming_prompt`'s phases. `pub mod dreaming_skill;` in `agent/mod.rs`.
- [ ] **Step 4** — `cargo test -p pensieve-server dreaming_skill` + build. Commit: `feat(agent): pensieve-dreaming skill (dreaming playbook as a delivered skill)`.

---

### Task 3: wire dreaming to deliver + invoke the skill (with fallback)

**Files:** `crates/pensieve-server/src/agent/dreaming.rs` (`run_via_claude_cli` ~1022; keep `dreaming_prompt` as fallback).

- [ ] **Step 1** — Read `run_via_claude_cli` (~1022-1127): how it builds the prompt (calls `dreaming_prompt` ~655), the `mcp` config (~1038), the `run_stream_with_pid` call (~1054, current `cwd` arg), and how it reaches the enabled-skills store (mirror `runner.rs::compose_system_prompt`: `state.skills.get()` + `skills::discover_all()`).
- [ ] **Step 2** — Failing test (mirror existing dreaming tests that assert prompt assembly): a helper `gather_dreaming_skills(state) -> Vec<SkillDoc>` returns `pensieve-dreaming` first + the enabled pensieve skills (mock the store to enable one skill; assert both present). And: the thin trigger prompt builder references the `pensieve-dreaming` skill + includes mode + the connector-read budget. Run → FAIL.
- [ ] **Step 3** — Implement in `run_via_claude_cli`:
  - `let skills = gather_dreaming_skills(state).await;` (pensieve-dreaming const wrapped as `SkillDoc` + enabled skills filtered from `discover_all`).
  - `let delivered = match skill_delivery::deliver_to_workdir(&skills).await { Ok(d) => Some(d), Err(e) => { warn!(error=%e, "skill delivery failed; falling back to hardcoded dreaming prompt"); None } };`
  - Prompt: if `delivered.is_some()`, a THIN trigger (`dreaming_trigger_prompt(&mode, &settings)` — mode + budgets + realm-scope + "Follow the pensieve-dreaming skill."); else the existing `dreaming_prompt(...)` (full, unchanged fallback).
  - `cwd`: `delivered.as_ref().map(|d| d.workdir.path())`.
  - Call `run_stream_with_pid(prompt, model, resume, cwd, mcp.as_ref())`; bind `delivered` in scope until the event loop finishes (don't drop early — the TempDir must live through the run).
  - Everything after (event consumption, trace, outcome) unchanged.
- [ ] **Step 4** — `cargo test -p pensieve-server dreaming 2>&1 | tail -20` (new + existing dreaming tests pass) + `cargo build -p pensieve-server`. Commit (only dreaming.rs + the new modules; NOT claude_cli.rs): `feat(agent): drive dreaming via the pensieve-dreaming skill (filesystem delivery + fallback)`.

---

## Self-Review
- Filesystem skill delivery, no `claude_cli.rs` → Task 1 + Task 3 (existing `cwd`). ✓
- Dreaming playbook as a skill → Task 2; wired with fallback → Task 3. ✓
- Agent-agnostic (delivery keyed by engine; ADK path untouched) → per spec. ✓
- Safety fallback to `dreaming_prompt()` → Task 3 Step 3. ✓
- Co-working safety (no claude_cli.rs) → all tasks. ✓

Files in this skill

  • 2026-05-19-f1-stability-contract.md51.3 KB
  • 2026-05-19-f2.1-gauntlet-orchestrator.md67.7 KB
  • 2026-05-25-auth-admin-login.md11.8 KB
  • 2026-05-25-c0-foundations.md29.1 KB
  • 2026-05-25-c1-data-plane.md21.8 KB
  • 2026-05-25-c2-control-plane-gateway.md20.1 KB
  • 2026-05-25-c3-onboarding-mcp.md16.4 KB
  • 2026-05-25-g1a-graph-schema-backbone.md43.6 KB
  • 2026-05-25-g1b1-graph-registration-catalog-cli.md20.7 KB
  • 2026-05-25-g1b2-stored-graph-provider.md26.1 KB
  • 2026-05-25-g1c1-graph-web-data-layer.md24.7 KB
  • 2026-05-25-g1c2-context-graph-view.md20.4 KB
  • 2026-05-25-g1c3-graph-selector.md6.7 KB
  • 2026-05-25-g2-1-graph-traverse-extensions.md9.2 KB
  • 2026-05-25-g2-2-make-graph-graph-match.md12.7 KB
  • 2026-05-28-a1-agent-engine-providers-and-settings.md49.2 KB
  • 2026-05-28-discover-engine-saved-views.md25.5 KB
  • 2026-05-28-discover-engine-search.md64.8 KB
  • 2026-05-28-discover-frontend.md70.9 KB
  • 2026-06-05-discover-live-phase2.md20.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.