Skip to content

jununfly/ZAgentic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZAgentic Skills

skills.sh

Jununfly's agent skills for real engineering - not vibe coding.

Developing real applications is hard. Approaches like GSD, BMAD, and Spec-Kit try to help by owning the process. But while doing so, they take away your control and make bugs in the process hard to resolve.

These skills are designed to be small, easy to adapt, and composable. They work with any model. They're based on decades of engineering experience. Hack around with them. Make them your own. Enjoy.

If you want to keep up with changes to these skills, follow the ZAgentic repository updates.

Quickstart (30-second setup)

  1. Run the skills.sh installer:
npx skills@latest add jununfly/ZAgentic
  1. Pick the skills you want, and which coding agents you want to install them on. Make sure you select /zj-setup-skills.

  2. Run /zj-setup-skills in your agent. It will:

    • Ask you which issue tracker you want to use (GitHub, Linear, or local files)
    • Ask you what labels you apply to tickets when you triage them (/zj-triage uses labels)
    • Ask you where you want to save any docs we create
  3. Bam - you're ready to go.

Human-Agent Workflow

These skills are meant to be used as a loop, not as isolated commands. Humans keep judgment; agents handle repeatable execution and verification.

The workflow is issue-centered: humans own intent, priority, trade-offs, acceptance criteria, and final review. Agents gather context, slice work into issues, implement one issue at a time, run verification loops, and leave handoff notes when work moves between contributors.

The ZJ-prefixed docs (ZJ-CONTEXT.md, docs/zj-agents/, docs/zj-adr/) keep this workflow's context, decisions, and coordination notes separate from other agents or human-maintained documentation.

Default Issue-Centered Loop

Idea
  ↓
Align intent and language
  ↓
Slice into issues
  ↓
Triage when coordination is needed
  ↓
Implement one issue with tests
  ↓
Diagnose if stuck
  ↓
Review, merge, or hand off
  1. Align intent and language Use /zj-grill-me for general planning, or /zj-grill-with-docs when the repo's domain language and ADRs matter.

  2. Slice the work into issues Use /zj-to-issues to turn the agreed plan into small, independently grabbable issues.

  3. Triage when coordination is needed Use /zj-triage when an issue is ambiguous, missing context, blocked on a human decision, or needs an explicit human/agent readiness label.

  4. Implement one issue at a time Use /zj-tdd to solve one issue with a red-green-refactor loop and explicit verification.

  5. Diagnose if stuck Use /zj-diagnose when a test failure, bug, or performance regression needs root-cause analysis instead of guesswork.

  6. Review, merge, or hand off Humans review the result and make the final call. Use /zj-handoff when another human or agent needs to continue from the current context.

For solo work, you can often skip triage and move directly from a well-scoped issue to /zj-tdd.

In multi-human or multi-agent workflows, triage becomes the coordination contract. Keep issue labels accurate and state transitions explicit so contributors can pick up work without guessing, duplicating effort, or fighting hidden assumptions.

Example: Idea → Issue → Implementation

  1. Human: "We need to improve onboarding."
  2. Align the intent with /zj-grill-me.
  3. Turn the agreed plan into issues with /zj-to-issues.
  4. Pick one issue and implement it with /zj-tdd.
  5. If the implementation gets stuck, switch to /zj-diagnose.
  6. Use /zj-handoff when another human or agent needs to continue.

Variations

  • Need product framing before issue slicing? Use /zj-to-prd.
  • Need broader codebase context first? Use /zj-zoom-out.
  • Need architecture improvement? Use /zj-improve-codebase-architecture.
  • Need a throwaway design or logic spike before committing? Use /zj-prototype.
  • Need a compact operating mode for long sessions? Use /zj-caveman.

Why These Skills Exist

Jununfly maintains these skills as a way to fix common failure modes in Claude Code, Codex, and other coding agents.

#1: The Agent Didn't Do What I Want

"No-one knows exactly what they want"

David Thomas & Andrew Hunt, The Pragmatic Programmer

The Problem. The most common failure mode in software development is misalignment. You think the dev knows what you want. Then you see what they've built - and you realize it didn't understand you at all.

This is just the same in the AI age. There is a communication gap between you and the agent. The fix for this is a grilling session - getting the agent to ask you detailed questions about what you're building.

The Fix is to use:

These are my most popular skills. They help you align with the agent before you get started, and think deeply about the change you're making. Use them every time you want to make a change.

#2: The Agent Is Way Too Verbose

With a ubiquitous language, conversations among developers and expressions of the code are all derived from the same domain model.

Eric Evans, Domain-Driven-Design

The Problem: At the start of a project, devs and the people they're building the software for (the domain experts) are usually speaking different languages.

Agents are usually dropped into a project and asked to figure out the jargon as they go. So they use 20 words where 1 will do.

The Fix for this is a shared language. It's a document that helps agents decode the jargon used in the project.

Example

Here's an example ZJ-CONTEXT.md from a course video manager repo. Which one is easier to read?

  • BEFORE: "There's a problem when a lesson inside a section of a course is made 'real' (i.e. given a spot in the file system)"
  • AFTER: "There's a problem with the materialization cascade"

This concision pays off session after session.

This is built into /zj-grill-with-docs. It's a grilling session, but that helps you build a shared language with the AI, and document hard-to-explain decisions in ADR's.

It's hard to explain how powerful this is. It might be the single coolest technique in this repo. Try it, and see.

Tip

A shared language has many other benefits than reducing verbosity:

  • Variables, functions and files are named consistently, using the shared language
  • As a result, the codebase is easier to navigate for the agent
  • The agent also spends fewer tokens on thinking, because it has access to a more concise language

#3: The Code Doesn't Work

"Always take small, deliberate steps. The rate of feedback is your speed limit. Never take on a task that’s too big."

David Thomas & Andrew Hunt, The Pragmatic Programmer

The Problem: Let's say that you and the agent are aligned on what to build. What happens when the agent still produces crap?

It's time to look at your feedback loops. Without feedback on how the code it produces actually runs, the agent will be flying blind.

The Fix: You need the usual tranche of feedback loops: static types, browser access, and automated tests.

For automated tests, a red-green-refactor loop is critical. This is where the agent writes a failing test first, then fixes the test. This helps give the agent a consistent level of feedback that results in far better code.

This repo includes a /zj-tdd skill you can slot into any project. It encourages red-green-refactor and gives the agent plenty of guidance on what makes good and bad tests.

For debugging, it also includes a /zj-diagnose skill that wraps best debugging practices into a simple loop.

#4: We Built A Ball Of Mud

"Invest in the design of the system every day."

Kent Beck, Extreme Programming Explained

"The best modules are deep. They allow a lot of functionality to be accessed through a simple interface."

John Ousterhout, A Philosophy Of Software Design

The Problem: Most apps built with agents are complex and hard to change. Because agents can radically speed up coding, they also accelerate software entropy. Codebases get more complex at an unprecedented rate.

The Fix for this is a radical new approach to AI-powered development: caring about the design of the code.

This is built in to every layer of these skills:

  • /zj-to-prd quizzes you about which modules you're touching before creating a PRD
  • /zj-zoom-out tells the agent to explain code in the context of the whole system

And crucially, /zj-improve-codebase-architecture helps you rescue a codebase that has become a ball of mud. I recommend running it on your codebase once every few days.

Summary

Software engineering fundamentals matter more than ever. These skills condense those fundamentals into repeatable practices, to help you ship better software with agents.

Reference

Engineering

Skills I use daily for code work.

  • zj-diagnose — Disciplined diagnosis loop for hard bugs and performance regressions: reproduce → minimise → hypothesise → instrument → fix → regression-test.
  • zj-grill-with-docs — Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates ZJ-CONTEXT.md and ADRs inline.
  • zj-triage — Triage issues through a state machine of triage roles.
  • zj-improve-codebase-architecture — Find deepening opportunities in a codebase, informed by the domain language in ZJ-CONTEXT.md and the decisions in docs/zj-adr/.
  • zj-roadmap-driven — 路线图驱动开发:以树形 roadmap 和决策记录帮助 Human 和 Agent 保持共享地图。
  • zj-setup-skills — Scaffold the per-repo config (issue tracker, triage label vocabulary, domain doc layout) that the other engineering skills consume. Run once per repo before using zj-to-issues, zj-to-prd, zj-triage, zj-diagnose, zj-tdd, zj-improve-codebase-architecture, or zj-zoom-out.
  • zj-tdd — Test-driven development with a red-green-refactor loop. Builds features or fixes bugs one vertical slice at a time.
  • zj-to-issues — Break any plan, spec, or PRD into independently-grabbable GitHub issues using vertical slices.
  • zj-to-prd — Turn the current conversation context into a PRD and submit it as a GitHub issue. No interview — just synthesizes what you've already discussed.
  • zj-zoom-out — Tell the agent to zoom out and give broader context or a higher-level perspective on an unfamiliar section of code.
  • zj-prototype — Build a throwaway prototype to flesh out a design — either a runnable terminal app for state/business-logic questions, or several radically different UI variations toggleable from one route.

Productivity

General workflow tools, not code-specific.

  • zj-caveman — Ultra-compressed communication mode. Cuts token usage ~75% by dropping filler while keeping full technical accuracy.
  • zj-grill-me — Get relentlessly interviewed about a plan or design until every branch of the decision tree is resolved.
  • zj-handoff — Compact the current conversation into a handoff document so another agent can continue the work.
  • zj-write-a-skill — Create new skills with proper structure, progressive disclosure, and bundled resources.

Misc

Tools I keep around but rarely use.

  • zj-git-guardrails-claude-code — Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, etc.) before they execute.
  • zj-migrate-to-shoehorn — Migrate test files from as type assertions to @total-typescript/shoehorn.
  • zj-scaffold-exercises — Create exercise directory structures with sections, problems, solutions, and explainers.
  • zj-setup-pre-commit — Set up Husky pre-commit hooks with lint-staged, Prettier, type checking, and tests.

About

Something needed

Resources

License

Stars

6 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors