# Yiftahb Agsync Context Manager

> <task>

- Skill: `tomevault-io/yiftahb-agsync-context-manager` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/yiftahb-agsync-context-manager`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/yiftahb-agsync-context-manager/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/yiftahb-agsync-context-manager

---


<task>
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
</task>

<guidelines>
**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/<name>.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
</guidelines>

<important>
- 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
</important>

---
> Source: [yiftahb/agsync](https://github.com/yiftahb/agsync) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-23 -->

