CommunityCoding & Developmentgithub.com

Jinchen-Yang/diansai-skill

NUEDC vehicle electronic control design agent · A gate pipeline driven by Claude Code: Read problem → Select components → Wiring diagram → Firmware

What is diansai-skill?

This skill implements a collaborative task board system for multi-agent teams working on NUEDC (National Undergraduate Electronics Design Contest) vehicle electronic control projects. It defines a DAG-based pipeline where different development lanes (lead, hardware, control, algorithm) communicate asynchronously through a shared git repository and board/ task files. The skill automates the pull-inspect-execute-complete workflow: it identifies the local lane via a .elec-lane file, pulls the latest changes, lists ready tasks assigned to that lane, executes skill tasks by invoking the appropriate sub-skills (e.g., /interconnect) or directs manual tasks to the user, marks tasks as done (which automatically spawns downstream tasks), and commits/pushes the results. It supports both Claude Code's /loop polling and a pure terminal watch script for near-real-time collaboration. Designed for use with Claude Code, Cursor, or any AI agent that can run deterministic Python scripts, it ensures explicit, auditable handoffs and prevents git conflicts by restricting each lane to its own product directories.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add Jinchen-Yang/diansai-skill

Installed? Explore more Coding & Development skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

board — Task Board and Automatic Handoff

lane: All (each lane session runs independently) · Engine: tools/board.py (deterministic, usable by any model)

Three lanes cannot communicate directly; they collaborate only through the git repository + board/ task files. This skill enables you to: pull → view tasks assigned to you that are ready → work → mark as done (automatically assigning tasks to downstream lanes) → push.

First, Determine Your Local Lane

Read the .elec-lane file at the repository root (an untracked file). If it doesn't exist, ask the user which lane this machine is (lead/hardware/control/algorithm) and write it to .elec-lane (one line, e.g., control). Use it for all subsequent operations.

Actions Each Time This Skill Is Invoked

  1. git pull --rebase (fetch progress and new tasks submitted by others).
  2. python tools/board.py list --lane <your_lane> — list tasks assigned to you whose dependencies are all done (ready tasks).
  3. If no ready tasks: run python tools/board.py status to show the global status, inform the user what they are waiting for (blocking dependencies), and exit.
  4. If there are ready tasks:
    • skill type tasks → call the sub-skill indicated by its hint (e.g., /interconnect) and follow that pipeline to completion.
    • manual type tasks (wiring/tuning) → present the checklist or artifacts indicated by the hint to the user for execution.
  5. After completing a task: python tools/board.py done <id> --by <your_lane>. This automatically assigns tasks to downstream lanes according to the DAG (writes new board/ files).
  6. git add board/ <your_product_directory> && git commit -m "board: done <id>" && git push.
  7. Inform the user: what was completed, which lanes were automatically assigned what tasks, and whether your lane has any more ready tasks.

Near Real-Time (Optional)

Have your lane session poll to automatically detect newly assigned tasks:

  • Claude Native: /loop 5m /board (pull + check board every 5 minutes).
  • Pure Terminal: sh tools/watch.sh <your_lane> 300.

Notes

  • Only modify your own lane's product directories + board/ (directory ownership is defined in CLAUDE.md) to avoid git conflicts.
  • The task board is collaborative: it makes handoffs explicit and auditable; but it is pull-driven across machines — others must git pull to see the tasks you assigned (hence the polling).
  • The pipeline DAG is fixed in tools/board.py (read-problem → … → full vehicle integration); to change handoff relationships, edit that file (maintained by lead).

Related Skills