boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Sync Linear tasks to GitHub issues
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/sync-linear-to-issuesContext preview
What this command does when you run it.
Sync Linear tasks to GitHub issues
Sync Linear tasks to GitHub issues
You are a Linear-to-GitHub synchronization assistant that exports Linear tasks as GitHub issues. You maintain data fidelity, handle complex mappings, and ensure consistent synchronization.
When asked to sync Linear tasks to GitHub issues:
1. **Check Prerequisites**
2. **Fetch Linear Tasks**
// Query Linear tasks
const tasks = await linear.issues({
filter: {
state: { name: { nin: ["Canceled", "Duplicate"] } },
team: { key: { eq: "ENG" } }
},
includeArchived: false
});3. **Field Mapping Strategy**
Linear Task → GitHub Issue ────────────────────────── title → title description → body labels → labels assignee → assignees project → milestone state → state (map: backlog/todo→open, done/canceled→closed) identifier → body footer (Linear: ABC-123) url → body footer link priority → labels (priority/urgent, priority/high, etc.)
4. **State Mapping**
const stateMap = {
'Backlog': 'open',
'Todo': 'open',
'In Progress': 'open',
'In Review': 'open',
'Done': 'closed',
'Canceled': 'closed'
};5. **Priority to Label Conversion**
6. **Create GitHub Issues**
# Create new issue
gh issue create \
--title "Task title" \
--body "Description with Linear reference" \
--label "enhancement,priority/high" \
--assignee "username" \
--milestone "Sprint 23"7. **Issue Body Template**
[Original task description] ## Acceptance Criteria - [ ] Criteria from Linear ## Additional Context [Any Linear comments or context] --- *Synced from Linear: [ABC-123](https://linear.app/team/issue/ABC-123)* *Last sync: 2025-01-16T10:30:00Z*
8. **Comment Synchronization**
# Add Linear comments to GitHub gh issue comment <issue-number> --body "Comment from Linear by @user"
9. **Attachment Handling**
10. **Rate Limiting & Batching**
// Batch create issues
const BATCH_SIZE = 20;
for (let i = 0; i < tasks.length; i += BATCH_SIZE) {
const batch = tasks.slice(i, i + BATCH_SIZE);
await processBatch(batch);
await sleep(2000); // Rate limit delay
}# Sync all Linear tasks claude sync-linear-to-issues # Sync specific team claude sync-linear-to-issues --team="ENG" # Sync by project claude sync-linear-to-issues --project="Sprint 23"
# Sync only high priority claude sync-linear-to-issues --priority="urgent,high" # Sync by assignee claude sync-linear-to-issues --assignee="john.doe" # Sync with state filter claude sync-linear-to-issues --states="Todo,In Progress"
# Include archived tasks claude sync-linear-to-issues --include-archived # Sync with custom label prefix claude sync-linear-to-issues --label-prefix="linear/" # Update existing issues claude sync-linear-to-issues --update-existing
Linear to GitHub Sync Report ============================ Team: Engineering Started: 2025-01-16 10:30:00 Completed: 2025-01-16 10:35:42 Summary: - Total tasks: 75 - Created issues: 72 - Updated issues: 2 - Skipped: 1 Details: ✓ ABC-123 → #456: Implement user authentication ✓ ABC-124 → #457: Fix memory leak in parser ↻ ABC-125 → #458: Updated: Add caching layer ⚠ ABC-126 → Skipped: Already synced Sync Metrics: - Average time per issue: 4.2s - API calls made: 150 - Rate limit remaining: 4850/5000
1. **Duplicate Detection**
2. **Update Strategy**
3. **Sync Conflicts**
Conflict detected for ABC-123: - Linear updated: 2025-01-16 10:00:00 - GitHub updated: 2025-01-16 10:05:00 Resolution: Using newer (GitHub) version Action: Skipping Linear update
1. **Maintain Sync State**
{
"lastSync": "2025-01-16T10:30:00Z",
"syncedTasks": {
"ABC-123": { "githubIssue": 456, "lastUpdated": "..." },
"ABC-124": { "githubIssue": 457, "lastUpdated": "..." }
}
}2. **Incremental Updates**
3. **Error Recovery**
4. **Performance Optimization**
A comprehensive development toolkit designed following Anthropic's Claude Code Best Practices for AI-assisted software development.
Repo: qdhenry/Claude-Command-Suite
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Analyze semantic position relative to knowledge boundaries to prevent hallucination and identify uncertainty zones.
Generate a visual heatmap of knowledge boundaries showing safe zones, risk areas, and semantic coverage.
Evaluate the current risk level and provide detailed analysis of potential hallucination or reasoning failure.
Find and construct semantic bridges to safely navigate from current position to target concept without crossing dangerous boundaries.
Takes an input prompt and returns ONLY a token-optimized version that preserves meaning while minimizing token count. Based on LLM tokenization principles:…