Skip to content
Prompt

poml-go — Cursor Rules

by ZanzyTHEbar

AI Summary

Cursor rules for standardizing GitHub issue creation and Knowledge Graph synchronization with automated deduplication and shell commands. Useful for teams managing task workflows across repositories.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "poml-go — Cursor Rules" prompt rules to my project.
Repository: https://github.com/ZanzyTHEbar/poml-go

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Project workflow (GitHub CLI + Knowledge Graph sync)

Prerequisites

• Authenticated GitHub CLI: gh auth status • Derive repo slug dynamically (never hardcode): • gh repo view --json nameWithOwner -q .nameWithOwner • If no default repo is set and a command errors, set it: • gh repo set-default <owner/repo>

Purpose

Standardize how we create and synchronize GitHub issues with Knowledge Graph Task:* entities. Prevent duplicates, ensure reliable shell behavior, and maintain a single canonical link per task.

Canonical Workflow

• Discover repository slug • SLUG=$(gh repo view --json nameWithOwner -q .nameWithOwner) • De-dup BEFORE creating issues • Search by normalized title/label. If a matching issue exists, DO NOT create a new one; log the URL and continue. • Examples: • gh issue list --repo "$SLUG" --search 'in:title "<normalized-title>"' --json number,title,url • Create issues using here-doc files (-F) • Always write the body to a file and use -F to avoid quoting problems. • Example: `sh cat > /tmp/issue.md <<'EOF' Context: <why> Acceptance criteria: • item 1 • item 2 EOF gh issue create --repo "$SLUG" -t "P0: <Title> — <short>" -F /tmp/issue.md -l enhancement ` • Knowledge Graph sync (exactly one link) • For each Task:*, write back a single observation: GitHub: <url> • If a link already exists, UPDATE/REPLACE it; do not append a second link. • Link Task: to Repo: via relation tracks. • Ensure that KG & GH are updated IMMEDIATELY AFTER EVERY TASK COMPLETION, consider this step the last step of every task given. • On mistakes (duplicates) • Close duplicates rather than deleting the issue. • Re-sync KG: remove stale GitHub link observations so only the canonical link remains.

Mapping & Naming

• Maintain stable ordering: map core tasks to issues #1–#N. Add new tasks incrementally (e.g., new P0 becomes next number). • Titles: P{0|1|2}: <TaskName> — <short description> • Labels: bug for defects; enhancement for task/feature work.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 6mo ago
Stale
AdoptionUnder 100 stars
1 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars1
Issues0
Updated6mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more