Upstream sync

From grandamenium/cortextos · View interactive version

Upstream sync is an AI agent skill from the GitHub repository grandamenium/cortextos. Check for cortextOS framework updates from the remote repo. Fetches changes, categorizes them, explains in plain English, and applies only with user approval.

How to use this skill

Skill file

Upstream Sync

Check for cortextOS framework updates from the remote repository. Never auto-merges. Always explains changes and waits for approval.

When to Run

Workflow

Step 1: Check for updates

RESULT=$(cortextos bus check-upstream)

The script fetches from upstream and returns a JSON summary categorizing changes by type (bus scripts, templates, skills, dashboard, etc.).

Step 2: If updates available

  1. Read the JSON output to understand what changed
  2. If catalog_additions array is present, note those new community items separately — surface them to user after the framework update conversation
  3. Read the actual diff: git diff HEAD..upstream/main
  4. Explain EVERY change in plain English to the user via Telegram
  5. Categorize: security fix, new feature, template change, breaking change
  6. Recommend: "safe to apply" or "review needed because..."
  7. Wait for explicit "yes" from the user

Step 3: Apply (only after approval)

cortextos bus check-upstream --apply

Step 4: Security audit gate

After the merge applies, run the security gate BEFORE verifying build/tests:

npm install
npm audit --audit-level=moderate

If npm audit reports any moderate+ vulnerability:

This catches upstream merges that silently downgrade a dependency that was previously security-patched.

Step 5: Post-apply verification

Config

Requires ecosystem.upstream_sync.enabled: true in config.json.

Safety

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.