spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

Support syncing tasks and other relevant entities with GitHub Issues

Open jeffects opened this issue 1 year ago • 7 comments

Feature Request: Sync Tasks or other relevant entities with GitHub Issues

It would be extremely helpful if this project could integrate with GitHub Issues. Specifically, I am looking for a feature that allows tasks (and other relevant entities) within this project to be synchronized to GitHub Issues automatically or on demand.

Why is this important?

  • It would streamline project management by reducing manual duplication of tasks between systems.
  • Helps maintain a single source of truth for open issues and tasks.
  • Enables better collaboration for teams that rely on GitHub for tracking work.
  • Currently, spec-kit works great when vibe coding but when working with multiple engineers it might not scale as well but integrating with github issues, we may ground it to certain issues. Other engineers will also know that someone else is working on a particular issues.

Desired functionality

  • Ability to sync tasks to GitHub Issues (both ways, if possible).
  • Mapping of fields such as title, description, status, and assignees. Front Matter will be great for storing such information.
  • Optionally, provide configuration for which tasks or projects should sync.

Is this feature currently supported? If not, please consider adding it to the roadmap.

jeffects avatar Sep 10 '25 06:09 jeffects

https://github.com/automazeio/ccpm?tab=readme-ov-file#local-vs-remote https://aroussi.com/post/ccpm-claude-code-project-management https://aroussi.com/post/spec-driven-ai-development

amondnet avatar Sep 11 '25 03:09 amondnet

These are great examples. I think CCPM is a great example. Perhaps it might be a little too overwhelming but I do like the syncing feature of CCPM. Can we do something with spec-kit?

jeffects avatar Sep 11 '25 06:09 jeffects

When using Claude Code, it should be possible to achieve this using hooks.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Read|Edit|MultiEdit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "jq -r '.tool_input.file_path' | { read file_path; if echo \\\"$file_path\\\" | grep -q '\\\\.ts$'; then $CLAUDE_PROJECT_DIR/.claude/hooks/sync-spec.sh \\\"$file_path\\\"; fi; }"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Edit|MultiEdit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "jq -r '.tool_input.file_path' | { read file_path; if echo \\\"$file_path\\\" | grep -q '\\\\.ts$'; then $CLAUDE_PROJECT_DIR/.claude/hooks/sync-spec.sh \\\"$file_path\\\"; fi; }"
          }
        ]
      }
    ]
  }
}

amondnet avatar Sep 12 '25 11:09 amondnet

It's still under development, but I'm creating a simple plugin(still in development). However, I think it would be nice if there were an extension for spec-kit, similar to the gh cli extension.

amondnet avatar Sep 16 '25 07:09 amondnet

Hi folks — I’m interested in prototyping a Phase 1 version of this feature, scoped as a one-way sync from .specify/tasks.md to GitHub Issues. It would:

  • Be implemented as a slash command inside agent environments (e.g., /speckit.sync-issues)
  • Generate Issues (and optional Epics) from the Markdown spec, with appropriate labels and back-links
  • Have minimal impact on the existing repo, not change the CLI UX, and be clearly documented as opt-in

The eventual goal is to support parallel agent workflows using devcontainers and two-way syncing with GitHub Issues/PRs for coordination — without breaking Spec Kit’s file-centric discipline.

Would you be open to a PR for Phase 1?

I’m also happy to develop it as a sidecar package and circle back once it’s working.

mjesuele avatar Oct 16 '25 21:10 mjesuele

This issue has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Apr 03 '26 14:04 github-actions[bot]

This issue has been automatically closed due to inactivity (180 days total). If you believe this issue is still relevant, please reopen it or create a new issue.

github-actions[bot] avatar May 08 '26 01:05 github-actions[bot]