Upstream Check
Compare this project against its upstream sources to find valuable updates.
Upstream Repos
| Source | Repo | What we use |
|---|---|---|
| Tree-sitter grammar | ngalaiko/tree-sitter-go-template | Go template parser in grammars/gotmpl/ |
| Zed queries | hjr265/zed-gotmpl | Tree-sitter query patterns for syntax highlighting |
State Tracking
Last checked SHAs are stored in .last-checked in this skill's directory (JSON format).
Workflow
- •Read the last checked SHAs:
bash
cat .claude/skills/upstream-check/.last-checked 2>/dev/null || echo '{}'
- •Get commits from each upstream since last check:
bash
# Tree-sitter grammar
gh api repos/ngalaiko/tree-sitter-go-template/commits --jq '.[0:20] | .[] | "\(.sha[0:7]) \(.commit.message | split("\n")[0])"'
# Zed queries
gh api repos/hjr265/zed-gotmpl/commits --jq '.[0:20] | .[] | "\(.sha[0:7]) \(.commit.message | split("\n")[0])"'
Stop at each repo's last checked SHA. If no state exists, show recent 10.
- •For interesting commits, fetch the diff:
bash
gh api repos/OWNER/REPO/commits/SHA --jq '.files[] | "\(.filename)\n\(.patch)"'
- •After evaluation, update the state file with latest SHAs:
bash
cat > .claude/skills/upstream-check/.last-checked << 'EOF'
{
"ngalaiko/tree-sitter-go-template": "SHA",
"hjr265/zed-gotmpl": "SHA"
}
EOF
What to Look For
Tree-sitter grammar (ngalaiko/tree-sitter-go-template):
- •Grammar fixes for edge cases
- •New node types
- •Performance improvements
Zed queries (hjr265/zed-gotmpl):
- •New highlighting patterns
- •Query fixes
- •Zed-specific improvements
Output
Summarize findings as:
- •Commits worth porting (with rationale)
- •Commits to skip (already have, not relevant, etc.)
Then update .last-checked with the latest upstream SHAs.