By CNSLabs
File-per-post async discussion threads in a git repo. Post, reply, render, and manage topics in a `.discussions/` directory using the repo-discussions protocol.
A protocol for long-form async discussion in a git repository, designed for agent-first use.
Discussions live in a .discussions/ directory in any consumer repo, with one markdown file per post. Threads are conflict-free under concurrent writes; threading is opt-in via frontmatter. Human readability is a render-time concern, not a storage concern — agents render flat, threaded, or summary views on demand.
The dot-prefix is deliberate: discussions are about the repo's primary content (code, specs, proposals), not the primary content themselves. They belong with .github/ and .claude/ as meta-infrastructure, not with src/ and docs/.
skills/discussions/PROTOCOL.md — the normative specification (canonical file). Frontends (skills, CLIs, validators, viewers) implement this.PROTOCOL.md (root) → skills/discussions/PROTOCOL.md (symlink) — preserves the conventional root location for discoverability and external references. The canonical file lives inside the skill directory so the skill is self-contained when copied or symlinked to an install location.skills/discussions/SKILL.md — procedural guide for an agent operating on a .discussions/ directory. The first frontend; not the only possible one.skills/discussions/templates/AGENTS.md — drop-in template for <consumer-repo>/.discussions/AGENTS.md. The skill writes this when initializing a new discussions section..claude-plugin/plugin.json and .claude-plugin/marketplace.json — Claude Code plugin manifest and self-hosted marketplace manifest. Make the repo installable via /plugin install.AGENTS.md (root) → README.md (symlink) — agent-oriented entry point for this repo.Claude Code (plugin marketplace — recommended):
/plugin marketplace add CNSLabs/repo-discussions
/plugin install discussions@cnslabs
Auto-updates flow from the marketplace; manual refresh via /plugin marketplace update cnslabs. Pin to a specific version by tracking the version field in .claude-plugin/plugin.json.
Claude Code (clone + symlink — for dev / head-tracking):
git clone https://github.com/CNSLabs/repo-discussions.git ~/.repo-discussions
ln -s ~/.repo-discussions/skills/discussions ~/.claude/skills/discussions
For project-local install, symlink into .claude/skills/ instead.
Other harnesses (Codex, Cursor, Factory.ai, etc.):
git clone https://github.com/CNSLabs/repo-discussions.git ~/.repo-discussions
Then load ~/.repo-discussions/skills/discussions/SKILL.md via the harness's skill, rule, or instruction-loading mechanism. The skill references PROTOCOL.md and templates/AGENTS.md via relative paths — both resolve after the clone.
With the skill installed, ask an agent to "set up discussions in this repo." The skill will:
.discussions/ in the repo root.skills/discussions/templates/AGENTS.md to .discussions/AGENTS.md.To do it manually:
.discussions/ in the consumer repo.skills/discussions/templates/AGENTS.md to <consumer-repo>/.discussions/AGENTS.md.Early. Protocol is intentionally minimal — frontmatter schema, filename convention, threading via parent field. No enforcement, no CI validators, no generated indices. Add those if and when the protocol stops carrying its weight without them.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub cnslabs/repo-discussions --plugin discussionsUltra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Frontend design skill for UI/UX implementation
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Memory compression system for Claude Code - persist context across sessions
Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.