finish-work

📁 mindfold-ai/trellis 📅 3 days ago
1
总安装量
1
周安装量
#49590
全站排名
安装命令
npx skills add https://github.com/mindfold-ai/trellis --skill finish-work

Agent 安装分布

mcpjam 1
claude-code 1
replit 1
junie 1
zencoder 1

Skill 文档

Finish Work – Pre-Commit Checklist

Before submitting or committing, use this checklist to ensure work completeness.

Timing: After code is written and tested, before commit


Checklist

1. Code Quality

# Must pass
pnpm lint
pnpm type-check
pnpm test
  • pnpm lint passes with 0 errors?
  • pnpm type-check passes with no type errors?
  • Tests pass?
  • No console.log statements (use logger)?
  • No non-null assertions (the x! operator)?
  • No any types?

2. Documentation Sync

Structure Docs:

  • Does .trellis/spec/backend/ need updates?
    • New patterns, new modules, new conventions
  • Does .trellis/spec/frontend/ need updates?
    • New components, new hooks, new patterns
  • Does .trellis/spec/guides/ need updates?
    • New cross-layer flows, lessons from bugs

Key Question:

“If I fixed a bug or discovered something non-obvious, should I document it so future me (or others) won’t hit the same issue?”

If YES -> Update the relevant spec doc.

3. API Changes

If you modified API endpoints:

  • Input schema updated?
  • Output schema updated?
  • API documentation updated?
  • Client code updated to match?

4. Database Changes

If you modified database schema:

  • Migration file created?
  • Schema file updated?
  • Related queries updated?
  • Seed data updated (if applicable)?

5. Cross-Layer Verification

If the change spans multiple layers:

  • Data flows correctly through all layers?
  • Error handling works at each boundary?
  • Types are consistent across layers?
  • Loading states handled?

6. Manual Testing

  • Feature works in browser/app?
  • Edge cases tested?
  • Error states tested?
  • Works after page refresh?

Quick Check Flow

# 1. Code checks
pnpm lint && pnpm type-check

# 2. View changes
git status
git diff --name-only

# 3. Based on changed files, check relevant items above

Common Oversights

Oversight Consequence Check
Structure docs not updated Others don’t know the change Check .trellis/spec/
Migration not created Schema out of sync Check db/migrations/
Types not synced Runtime errors Check shared types
Tests not updated False confidence Run full test suite
Console.log left in Noisy production logs Search for console.log

Relationship to Other Commands

Development Flow:
  Write code -> Test -> /trellis:finish-work -> git commit -> /trellis:record-session
                          |                              |
                   Ensure completeness              Record progress
                   
Debug Flow:
  Hit bug -> Fix -> /trellis:break-loop -> Knowledge capture
                       |
                  Deep analysis
  • /trellis:finish-work – Check work completeness (this command)
  • /trellis:record-session – Record session and commits
  • /trellis:break-loop – Deep analysis after debugging

Core Principle

Delivery includes not just code, but also documentation, verification, and knowledge capture.

Complete work = Code + Docs + Tests + Verification