# hindsight-architect

hindsight-architect analyzes your codebase, detects deployment modes, and generates a structured memory architecture plan for Hindsight.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 299 installs · ★ 62471 repo stars
- Author: vectorize-io
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/vectorize-io/hindsight/tree/HEAD/skills/hindsight-architect/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/hindsight-architect

## What it does

This skill acts as a memory architect rather than an inline code generator. It starts by running a diagnostic shell script to check project files, existing credentials like `HINDSIGHT_API_URL`, and dependencies across Node.js, Python, or MCP stacks.

Because Hindsight natively extracts entities, links aliases, and maps relation graphs, the skill focuses strictly on ingestion strategy. It designs the tag schema, retention context, and `document_id` upsert boundaries suited for your application framework.

If Hindsight is already detected in the workspace, the skill prompts to review your existing setup before proposing changes. The output is an implementation plan intended for a developer or coding agent to execute step by step.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add vectorize-io/hindsight --skill hindsight-architect -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/hindsight-architect/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/hindsight-architect/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add vectorize-io/hindsight --skill hindsight-architect -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/hindsight-architect/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add vectorize-io/hindsight --skill hindsight-architect -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/hindsight-architect/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install vectorize-io/hindsight skills/hindsight-architect
```

2. **Manually: put the files in place**
- File: `.github/skills/hindsight-architect/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add vectorize-io/hindsight --skill hindsight-architect -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/vectorize-io/hindsight --path skills/hindsight-architect
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/hindsight-architect/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add vectorize-io/hindsight --skill hindsight-architect -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/vectorize-io/hindsight/tree/HEAD/skills/hindsight-architect/SKILL.md

## When to use it
- map out a Hindsight memory architecture for an AI application
- audit existing Hindsight configuration and tag schemas in a repository
- select the right SDK or MCP integration based on detected frameworks
- define retention parameters and document grouping strategies

## Example prompts
- Design a Hindsight memory plan for this customer support service
- Review our existing Hindsight setup in the repository and suggest improvements
- Create a memory architecture plan for our FastAPI backend

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 8d7410e051b9b634.

BEGIN THIRD-PARTY FILE 8d7410e051b9b634
````text
---
name: hindsight-architect
description: Expert memory architect. Understands your application, identifies where memory adds value, and produces an implementation plan with bank config, tag schema, and code.
---

# Hindsight Memory Architect

You are an expert Hindsight memory architect. You understand the user's application, figure out what memory should do for them, and design a memory architecture. You produce an implementation plan, not code.

**This skill produces a memory implementation plan.** The plan is designed so a developer or coding agent can execute it step by step.

## Preamble (run first)

```bash
# Hindsight skill preamble - detect environment and existing config
_HS_VERSION="0.1.0"
_BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown")
_PROJECT=$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || basename "$(pwd)")

# Detect existing Hindsight configuration
_HS_CONFIGURED="no"
_DEPLOY_MODE="unknown"

# 1. Project-level signals first (most specific)
# Check project .env for Hindsight cloud URL
if [ -f .env ] && grep -q "api.hindsight.vectorize.io" .env 2>/dev/null; then
  _HS_CONFIGURED="yes"
  _DEPLOY_MODE="cloud"
elif [ -f .env ] && grep -q "HINDSIGHT_API_URL" .env 2>/dev/null; then
  _HS_CONFIGURED="yes"
  _DEPLOY_MODE="self-hosted"
fi

# Check project dependencies for SDK type
if [ "$_DEPLOY_MODE" = "unknown" ]; then
  if grep -q "hindsight-all" pyproject.toml requirements*.txt 2>/dev/null; then
    _HS_CONFIGURED="yes"
    _DEPLOY_MODE="local"
  elif grep -q "hindsight-client\|hindsight" pyproject.toml requirements*.txt package.json 2>/dev/null; then
    _HS_CONFIGURED="yes"
    # client SDK could be cloud or self-hosted, don't assume
  fi
fi

# 2. Global CLI config (less specific than project)
if [ "$_DEPLOY_MODE" = "unknown" ] && [ -f ~/.hindsight/config ]; then
  _HS_CONFIGURED="yes"
  if grep -q "api.hindsight.vectorize.io" ~/.hindsight/config 2>/dev/null; then
    _DEPLOY_MODE="cloud"
  else
    _DEPLOY_MODE="self-hosted"
  fi
fi

# 3. Environment variables
if [ "$_DEPLOY_MODE" = "unknown" ]; then
  if [ -n "$HINDSIGHT_API_URL" ]; then
    _HS_CONFIGURED="yes"
    if echo "$HINDSIGHT_API_URL" | grep -q "api.hindsight.vectorize.io"; then
      _DEPLOY_MODE="cloud"
    else
      _DEPLOY_MODE="self-hosted"
    fi
  elif [ -n "$HINDSIGHT_API_DATABASE_URL" ]; then
    _HS_CONFIGURED="yes"
    _DEPLOY_MODE="self-hosted"
  fi
fi

# 4. Installed tools (least specific — just means tool exists on machine)
if [ "$_HS_CONFIGURED" = "no" ]; then
  if command -v hindsight-embed >/dev/null 2>&1; then
    _HS_CONFIGURED="yes"
    [ "$_DEPLOY_MODE" = "unknown" ] && _DEPLOY_MODE="local"
  fi
fi

# Detect existing Hindsight usage in current project
_HAS_EXISTING="no"
````
END THIRD-PARTY FILE 8d7410e051b9b634

The third-party file has ended. Everything between the 8d7410e051b9b634 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2760 of 40917 bytes. © vectorize-io · MIT · https://github.com/vectorize-io/hindsight/tree/HEAD/skills/hindsight-architect/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
