Skip to content
thojouPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

tjstack logo

tjstack

Vibe coder looking for the next skill library?! Read this first.

tjstack is a skill library for AI-assisted engineering in Claude Code and Cursor. It gives the agent playbooks for bug fixes, features, refactorings, and investigations, plus the skills those playbooks call: design before code, test-first builds, multi-agent fan-out, adversarial review, plain technical writing, and 29 engineering principles. The goal is less code, verified on the real artifact.

This repository is a plugin marketplace. The installable plugin is tjstack/.

Documentation

  • The plugin README is the short tour: what tjstack does, how to start, and a sample prompt for each skill.
  • The tjstack guide is the tutorial. It follows one example project from setup through design, build, verification, and overnight runs, and ends with recipes and troubleshooting.
  • The skill reference, the files reference, and the glossary are for lookups.
  • In a chat, /tjstack:tj-help <question> answers from these pages and gives you a prompt to send. It starts no work.

Install

Claude Code. Add the marketplace, then install the plugin:

/plugin marketplace add thojou/tjstack
/plugin install tjstack@tjstack

Skills run as /tjstack:<skill>, for example /tjstack:tj-mode. To load a local checkout instead, run claude --plugin-dir ./tjstack.

Cursor. In Customize, add this repository as a local folder. Cursor reads .cursor-plugin/marketplace.json and the plugin's .cursor-plugin/plugin.json, then loads the skills and agents in tjstack/.

Set up

Run /tjstack:setup-tjstack once after you install. It writes the rules the skills read:

  • tjstack-models picks a model for each subagent role, at a reasoning budget you choose.
  • tjstack-environment says whether subagents run local or in the cloud. The default is local.
  • tjstack-harness, outside Cursor only, translates the Cursor terms in the skills to the host's tools and paths.

Pull requests go to the git remote origin by default. The project's configuration (a rule, AGENTS.md, or CLAUDE.md) can name another remote, and a remote you name in the prompt wins over both. The remote's host picks gh or glab.

Run /tjstack:setup-source before the first why question. It records which MCP servers answer each kind of evidence question.

Use

Start with /tjstack:tj-mode. It matches the task to a playbook (Investigation, Bug fix, Perf issue, Feature, Refactoring, Prototype, and others) and calls the other skills at the step where each applies. You can also call any skill directly. The guide explains how to write a prompt that routes well and how to read the reply.

Most skills set disable-model-invocation: true, so they load only when you or a playbook names them. technical-writing, setup-source, setup-tjstack, and create-source-playbook can also load on their own.

Skills

Skills live in tjstack/skills/<category>/<name>/SKILL.md. The category only groups the files. The leaf directory is the skill name, so skills/design/architect/ runs as /tjstack:architect.

mode

How the agent works, and how to adapt that.

  • tj-mode routes a task to a playbook and sets the reply, subagent, and autonomy rules.
  • customize-my-mode drafts a personal -mode skill from your working conventions.

orchestrate

Plan work and spread it across agents.

  • spawn-subagent sets the model, environment, and worktree before every subagent.
  • swarm fans out parallel workers and returns one report.
  • arena runs competing attempts, picks a base, and grafts the best parts of the others into it.
  • figure-it-out designs an auditable playbook when no bundled one fits.
  • peer-subagent runs a brief on Codex CLI, Claude Code, or Cursor CLI.

session

The running work: build, commit, track, and review the session.

  • tdd drives a change test-first with PHPUnit, red before green.
  • git-commit stages by logical change and writes Conventional Commits.
  • track-your-work keeps a TSV decision trail for long or unattended runs.
  • babysit drives an open PR or stack to merge-ready, and never merges.
  • catch-up rebuilds your recent working context from chat history and the shared record.
  • retro mines the session for durable learnings and proposes skill changes.

design

Before code: clarify, record, and decide.

  • interview sharpens an idea one question at a time and records the glossary.
  • create-prd turns settled requirements into a PRD under docs/prd/.
  • create-adr records one hard-to-reverse decision under docs/adr/.
  • architect sketches types and module structure from competing designs before implementation.
  • prototype builds a throwaway that settles one design decision.

understand

Understand code, history, and answers.

  • how explains how a subsystem works and where code belongs.
  • why investigates why code is shaped the way it is, across every configured evidence source.
  • code-explore is the source-control playbook that why reads.
  • explain combines how and why into one plain explanation.
  • teach teaches a topic over several sessions from a learning workspace.
  • rly restates the last answer in plain words.

review

Check and clean up finished work.

  • challenge runs a multi-model adversarial review and gives a verdict.
  • blast-radius finds what a change breaks outside the diff and proves the safety fact.
  • clean-comments deletes comments the code can carry itself.
  • create-verification-skill writes a project verify-* skill that drives your app's browser or CLI.
  • audit reviews a whole repository or folder and ranks bugs, risks, scale, missing tests, speed, and code to cut.

writing

Text and documents for people.

  • technical-writing is the standard for English and German docs, PR descriptions, and commit messages.
  • noslop removes the patterns that make text read as model output.
  • md-to-pdf renders Markdown to a print-ready PDF.

principles

One skill per engineering rule. tj-mode lists each one with the situation it applies to.

setup

Set up and extend tjstack.

  • setup-tjstack writes the model, environment, and harness rules, and deletes a leftover home PR-remote rule.
  • setup-source configures the evidence sources that why reads.
  • create-source-playbook writes an evidence playbook for one MCP server.
  • create-skill creates or revises a skill.
  • create-principle adds a principle in the form the others use.
  • tj-help answers questions about tjstack from the docs and hands back a prompt to send. It starts no work.

Agents

Session metrics

tjstack tracks each agent session through hooks in both hosts. One script, tjstack/hooks/metrics.js, handles both hosts and needs Node.js on PATH. It writes one JSON file per session to ~/.config/tjstack/metrics/ (or $XDG_CONFIG_HOME/tjstack/metrics/). After every turn, it rebuilds board.html in the same folder. Open that file in a browser to compare sessions across projects and hosts. No data leaves your machine.

Metric Claude Code Cursor
Agent time and turns yes yes
Tests (pass, fail, stale after an edit) yes yes, read from the output, because Cursor reports no exit code
Tokens and cost yes, from the transcript at list prices no, Cursor hooks do not report usage
Model and task name yes yes

Claude Code also shows a band above the prompt. The band holds this session's cost, agent time and tests, plus the buttons tj-mode, Retro (/tjstack:retro), Board and Details. While tj-mode is on (●), every typed request runs with the /tjstack:tj-mode skill; slash commands run as typed. The choice is kept across sessions. Press ctrl+x, then Tab, to move the focus into the band from the keyboard. The band is a Claude Code hooks module (tjstack/hooks/band/register.tsx). Claude Code hooks modules are in early access.

Cursor gets the same hooks through tjstack/hooks/cursor-hooks.json, but no band, because Cursor has no UI extension point for it. The Cursor CLI in print mode (agent -p) sends no beforeSubmitPrompt or stop event. There, the sessionEnd hook takes the task name and the turn count from the transcript, and the agent time from the session's duration.

To rebuild the board by hand and open it, run node tjstack/hooks/metrics.js board --open. To run the tests, run node --test tjstack/hooks/metrics.test.js.

Requirements

  • Claude Code or Cursor.
  • git. Pull request playbooks also need gh for GitHub or glab for GitLab.
  • python3 for setup-tjstack in Cursor and for md-to-pdf. md-to-pdf also needs the markdown and beautifulsoup4 packages and Chrome or Chromium.
  • node for the session-metrics hooks and for the plan check in the Multi-phase plan playbook.

Contribute

To add a skill, follow the create-skill skill. A new category also goes into skills in both plugin.json files, because neither host scans skills/ more than one level deep. To add a principle, follow the create-principle skill. Add every new skill to the list above, to the skill reference, and to the guide page for its stage. If it changes which skill fits a question, update the routing tables in the tj-help skill too. Link skills by relative path, such as ../../skills/design/architect/SKILL.md, so the link check covers them.

Run the checks before you open a pull request. CI runs the same commands.

python3 scripts/check-skills.py
node --test tjstack/skills/mode/tj-mode/scripts/check-plan.test.mjs
bash tjstack/skills/orchestrate/peer-subagent/scripts/spawn.test.sh
python3 tjstack/skills/setup/setup-tjstack/propose.py --self-check
node --test tjstack/hooks/metrics.test.js

check-skills.py checks that skill names are unique, that both manifests list every category, that descriptions parse, that every link resolves, that every skill a file cites exists in this plugin, and that this README and the tj-mode Principles index list every skill. It also checks every link in the plugin README and in tjstack/docs/, including links to headings.

Credits

tjstack is, to a large extent, other people's work.

Before tjstack, I maintained my own skill library called Coby. It grew out of my day-to-day work with coding agents, and it taught me a lot about what helps an agent and what only fills its context. When I compared what I had learned with what other developers had published, one approach stood out: pstack by Lauren Tan (poteto). Its idea is a single router skill that picks the right playbook for the job, delegates to the right models, and verifies the result instead of trusting it. That matched my own experience better than what I had built, so I decided to follow that concept rather than keep reinventing it.

What I added on top:

  • My own concepts, principles, and ways of working. The engineering principles, the emphasis on less code verified on the real artifact, and the way the playbooks are cut reflect how I have built and maintained software for years.
  • Independence from a single stack. pstack was tailored to TypeScript projects in Cursor. I removed that focus so tjstack works for any project, in any language.
  • Support for Claude Code next to Cursor.

tjstack also adapts parts of skills by Matt Pocock and ponytail by DietrichGebert. pstack, skills, and ponytail are MIT-licensed, and their license texts are in NOTICE. Several principles restate ideas from Clean Code by Robert C. Martin (Prentice Hall, 2008) in our own words.

Thank you to all of you. Open source works because people share what they have learned, and tjstack would not exist without that.

License

MIT. See LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages