# Context Manager

> >

- **Type:** Skill
- **Install:** `agentstack add skill-yiftahb-agsync-context-manager`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [yiftahb](https://agentstack.voostack.com/s/yiftahb)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [yiftahb](https://github.com/yiftahb)
- **Source:** https://github.com/yiftahb/agsync/tree/main/.agsync/skills/context-manager

## Install

```sh
agentstack add skill-yiftahb-agsync-context-manager
```

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

## About

Help the user create or maintain agsync structured context files:

1. **Author** `.agsync/instructions.md` (root or package) and `.agsync/patterns/*.md`
2. **Migrate** from `.cursorrules`, `.cursor/rules/*.mdc`, or `.coderabbit.yaml`
3. **Validate** with `agsync validate` after every write

**instructions.md format:**
```markdown
---
extends: root          # omit at root level
apply_patterns:
  - id: pattern-id
    paths: ["subdir/**"]
---

## HLD
Prose description of architecture and intent.

## Guidelines
- id: rule-id
  rule: "the rule, phrased as a constraint"
  override: true       # only if overriding a parent rule with same id
```

**pattern file format** (`.agsync/patterns/.md`):
```markdown
---
id: pattern-name
---

## HLD
Why this pattern exists.

## Guidelines
- id: rule-id
  rule: "the rule"
```

**Migration rules:**
- `.cursorrules` flat text → extract imperative lines → propose as guidelines in root `instructions.md`
- `.mdc` with `globs:` → map globs to `paths:` on guidelines or `apply_patterns`
- `.coderabbit.yaml` `path_instructions` → reverse-map each path entry to guidelines with matching `paths:`
- Ask before deleting source files

- Every guideline needs a unique `id` — use kebab-case, describe the constraint not the action
- No duplicate rules across packages unless `override: true` is intentional
- Paths in guidelines are relative to repo root — `backend/**` not `./backend/**`
- Run `agsync validate` before reporting done; fix any errors or warnings
- Do not add guidelines that restate the obvious — only non-obvious constraints survive

## Source & license

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

- **Author:** [yiftahb](https://github.com/yiftahb)
- **Source:** [yiftahb/agsync](https://github.com/yiftahb/agsync)
- **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:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **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: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-yiftahb-agsync-context-manager
- Seller: https://agentstack.voostack.com/s/yiftahb
- 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%.
