task icon Task

Create Memory Space

Generate schema.json and create directory structure based on discovery results. Creates starter files for static locations and explains how to populate globs.

2

From the space design, generate:

  1. schema.json - the full schema object with all locations, lifecycle,
    relationships, maintenance, capture_hints, and suggested_tasks
  2. overview.md - populated with the space purpose, key info, and remit

Run the create code with the space directory in documents/{slug}/.

4

Tell the user the space is created. Briefly explain how to use it:
which files to populate, how glob patterns work, maintenance cadence.
Also explain the capture hints (what you'll listen for and offer to save)
and suggested tasks (what you can proactively help with in this space).

                    You MUST use a todo list to complete these steps in order. Never move on to one step if you haven't completed the previous step. If you have multiple CONSECUTIVE read steps in a row, read them all at once (in parallel). Otherwise, do not read a file until you reach that step.

Add all steps to your todo list now and begin executing.

## Steps

1. [Read New Space Design]: Read the file at `session/new-space.md` into context (Full space design from discovery)

2. From the space design, generate:
1. schema.json - the full schema object with all locations, lifecycle,
   relationships, maintenance, capture_hints, and suggested_tasks
2. overview.md - populated with the space purpose, key info, and remit

Run the create code with the space directory in documents/{slug}/.


3. [Gather Arguments: Create Memory Space] The next step has the following requirements for arguments, do not proceed until you have all the required information:
- `basePath`: documents/{slug} from the design
- `schema`: schema JSON string
- `files`: [{path: 'overview.md', content: '...'}] as JSON string

4. [Run Code: Create Memory Space]: Call `run_script` with:

```json
{
  "file": {
    "path": https://sk.ills.app/code/memory.space.create/preview,
    "args": [
      "basePath",
      "schema",
      "files"
    ]
  },
  "packages": null
}
```

5. Tell the user the space is created. Briefly explain how to use it:
which files to populate, how glob patterns work, maintenance cadence.
Also explain the capture hints (what you'll listen for and offer to save)
and suggested tasks (what you can proactively help with in this space).