Skip to content
Back to skills

Project Model

ASecurity

When working in a codebase you've touched before, consult and update the persistent project model maintained by presence. The model lives at ~/.claude/presence/projects/<repo-id>/model.md and contains terse notes about architecture, conventions, and verified facts. Use it BEFORE re-deriving things you've already learned, and APPEND to it when you confirm something non-obvious that future sessions will benefit from knowing.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added August 30, 2026
ai-agentspythonrustgobashflaskapi

Works with

  • api

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add sara-star-quant/presence --skill project-model --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Project Model?

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

Security grade badge for Project Model
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sara-star-quant-project-model/badge)](https://www.skillsdirectory.com/skills/sara-star-quant-project-model)

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
---
name: project-model
description: When working in a codebase you've touched before, consult and update the persistent project model maintained by presence. The model lives at ~/.claude/presence/projects/<repo-id>/model.md and contains terse notes about architecture, conventions, and verified facts. Use it BEFORE re-deriving things you've already learned, and APPEND to it when you confirm something non-obvious that future sessions will benefit from knowing.
---

# Project model: read and write

`presence` injects the contents of `model.md` into your context at the start of each session. Treat it as a trusted set of notes that may be out of date. The previous you wrote them, but the code may have changed since.

## When to read

The model is already in your SessionStart context, so you don't need to re-read it explicitly. If you forgot or need to query a specific slice mid-session:

```bash
PRESENCE_ROOT="${CLAUDE_PLUGIN_ROOT:-$(realpath ~/.claude/plugins/presence 2>/dev/null || echo .)}"
PYTHONPATH="$PRESENCE_ROOT/lib" python3 -c "
from model import read_model
print(read_model('$PWD'))
"
```

## When to write

Append a new observation when **all four** are true:

1. You verified something non-obvious about this codebase (architecture decision, a convention not in CLAUDE.md, the actual command for tests/build, an invariant about data flow).
2. The fact would save a future you 2+ minutes of re-deriving.
3. The fact is unlikely to change in the next month (don't write WIP state).
4. The fact is *project-specific*. General programming knowledge belongs nowhere; you already know it.

To append:

```bash
PRESENCE_ROOT="${CLAUDE_PLUGIN_ROOT:-$(realpath ~/.claude/plugins/presence 2>/dev/null || echo .)}"
PYTHONPATH="$PRESENCE_ROOT/lib" python3 -c "
from model import append_observation
append_observation('''<<<terse multi-line observation here>>>''', '$PWD')
"
```

## Style of entries

Entries should look like:

```
## 2026-04-25 14:32

The `auth/` package uses a custom session middleware that wraps Flask-Login. Token refresh
happens in `auth/refresh.py:42`, NOT in the middleware itself. That's a deliberate split
to keep the middleware reentrant. Don't add refresh logic to the middleware.

Test command: `make test-auth` (NOT `pytest auth/`); the latter misses fixtures.
```

Bad entries (don't write these):
- "Today I fixed the bug." (ephemeral, project state, not a stable fact)
- "Python is dynamically typed." (general knowledge)
- "Files are in src/." (derivable from `ls`)

## Compression

The model is compressed periodically by the `model-curator` subagent (invoke via `/presence-curate`). It will preserve the most recent N entries verbatim and consolidate older ones. Don't worry about file size; write what's worth writing.

## What NOT to put in the model

- Secrets, tokens, API keys. `presence` redacts known secret shapes (tokens, secret-named variables and flags, URL credentials) from what you append, at the preset's redaction level, but redaction only knows shapes: just don't paste them.
- Long code dumps (write the *insight*, not the code).
- Personal opinions about teammates or the codebase.
- Anything that would embarrass you if leaked. The file lives outside the repo by default; it is plain text on disk unless the preset encrypts it (zerotrust does), and it always reaches your context in plain text.

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.