# Rag Project Sync

> End-of-session review and sync of project-specific learnings to the project-level LightRAG graph

- **Type:** Skill
- **Install:** `agentstack add skill-butchokoy25-lightrag-claude-skills-rag-project-sync`
- **Verified:** Pending review
- **Seller:** [butchokoy25](https://agentstack.voostack.com/s/butchokoy25)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [butchokoy25](https://github.com/butchokoy25)
- **Source:** https://github.com/butchokoy25/lightrag-claude-skills/tree/main/skills/rag-project-sync

## Install

```sh
agentstack add skill-butchokoy25-lightrag-claude-skills-rag-project-sync
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# RAG Project Sync — End-of-Session Project Memory Sync

Review what happened this session and push project-relevant learnings to the project-level LightRAG knowledge graph.

## Workflow

### Step 1: Review the session

Scan the conversation for project-specific items worth persisting:

- **Architecture decisions** — component design, data flow changes, API structure
- **Conventions established** — naming patterns, file organization, coding standards
- **Dependencies added/changed** — new packages, version bumps, API integrations
- **Config changes** — env vars, build settings, deployment config
- **Requirements clarified** — business rules, constraints, edge cases discovered
- **Gotchas found** — non-obvious behaviors, platform quirks, workarounds needed

### Step 2: Filter ruthlessly

Remove anything that:
- Is already in the codebase (code, comments, configs)
- Is in git history (commits, diffs)
- Was already stored via `/rag-project-remember` this session
- Is personal (not project-specific) — redirect to `/rag-sync` instead
- Is ephemeral (current branch state, temp files)

### Step 3: Format entries

Format each item using the `/rag-project-remember` format:
```
[TYPE] Title — YYYY-MM-DD

What: ...
Why: ...
Files: ... (if applicable)
```

### Step 4: Confirm with user

Present the list:

> **Ready to sync 2 items to project memory:**
> 1. [ARCHITECTURE] API routes use controller pattern with service layer — 2026-04-01
> 2. [CONVENTION] All database queries go through repository classes — 2026-04-01
>
> **Proceed? (y/n)**

Wait for confirmation before inserting.

### Step 5: Insert each item

```bash
node -e "
const BASE = 'http://YOUR_LIGHTRAG_HOST:YOUR_PROJECT_PORT';
const API_KEY = process.env.LIGHTRAG_API_KEY || 'YOUR_API_KEY';
(async () => {
  const res = await fetch(BASE + '/documents/text', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'X-API-Key': API_KEY
    },
    body: JSON.stringify({
      file_source: 'DESCRIPTION_HERE',
      text: 'CONTENT_HERE'
    })
  });
  console.log('Status:', res.status);
})();
"
```

### Step 6: Report

> **Synced 2 items to project LightRAG.**

## Quality bar

Only store things that would **save 5+ minutes in a future session** working on this project.

**Good examples:**
- "The payment service requires idempotency keys — without them, duplicate charges occur"
- "Tests must run against the staging database, not local SQLite (schema divergence)"

**Bad examples:**
- "Added a new component called UserCard"
- "Fixed lint errors"
- "Installed express"

## Infrastructure

- **Server**: `YOUR_LIGHTRAG_HOST:YOUR_PROJECT_PORT`
- **Auth**: X-API-Key header (auth-enabled mode)
- **Env var**: `LIGHTRAG_API_KEY`

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [butchokoy25](https://github.com/butchokoy25)
- **Source:** [butchokoy25/lightrag-claude-skills](https://github.com/butchokoy25/lightrag-claude-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: flagged — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-butchokoy25-lightrag-claude-skills-rag-project-sync
- Seller: https://agentstack.voostack.com/s/butchokoy25
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
