Sync context

From thoughtfulllc/gridland · View interactive version

Sync context is an AI agent skill from the GitHub repository thoughtfulllc/gridland. Update context files to reflect current codebase state — new components, changed APIs, new patterns, and reasoning behind non-obvious decisions. Routes updates to the correct file based on what changed. Run after any significant design change before committing.

How to use this skill

Skill file

Update context files to reflect the current state of the codebase.

Step 1 — Gather what changed

git diff HEAD
git log --oneline -10
git diff HEAD --name-only | grep -E '\.(tsx|ts)$'

Step 2 — Classify each change and route to the correct file

| Change type | Target file |

|---|---|

| New component, removed component, changed component props | packages/ui/CLAUDE.md (component catalog table) |

| New focus pattern, focus anti-pattern, useInteractive API change | .claude/rules/focus-system.md |

| New AI SDK convention, changed part types or states | .claude/rules/ai-sdk.md |

| New layout rule, intrinsic element, borderStyle | .claude/rules/opentui-layout.md |

| Non-obvious design decision worth preserving | .claude/rules/design-decisions.md |

| New docs convention, demo pattern | packages/docs/CLAUDE.md |

| New universal anti-pattern, import rule, test command | Root CLAUDE.md |

Step 3 — For each update, evaluate

Step 4 — Apply updates

Read the target file, then edit it following the existing format:

Step 5 — Verify

What NOT to add

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.