xiaohongshu
xiaohongshu
finish-task
Finish current task. Use when user says "dokonči task", "task hotový", "mergni do main", or runs /finish-task.
Full skill instructions
Complete the current task. Behavior depends on detected mode (MAIN, FEATURE_BRANCH, WORKTREE).
/finish-task # Complete current task (auto-detects mode)
/finish-task --no-test # Complete without running tests
Current branch: !git branch --show-current
Uncommitted changes: !git status --porcelain
Is worktree: !test -f "$(git rev-parse --show-toplevel)/.git" && echo "YES - WORKTREE" || echo "NO - main repo"
BRANCH=$(git branch --show-current)
IS_WORKTREE=false
if [[ -f "$(git rev-parse --show-toplevel)/.git" ]]; then
IS_WORKTREE=true
fi
if [[ "$IS_WORKTREE" == "true" ]]; then
MODE="WORKTREE"
elif [[ "$BRANCH" != "main" && "$BRANCH" != "master" ]]; then
MODE="FEATURE_BRANCH"
else
MODE="MAIN"
fi
MAIN mode: Find task from in_progress status in task files
FEATURE_BRANCH/WORKTREE: Extract from branch name phase-XX/task-YY-description
Before finishing:
--force to override)Unless --no-test is specified:
dotnet test EShopDemo.sln --filter "Category!=Integration"
If tests fail, the script stops and reports the error.
dotnet csharpier check .
If formatting check fails, suggest running dotnet csharpier format . to fix.
Just update task status - no merge needed:
# Update task file: 🔵 in_progress → ✅ completed
# Commit the status change
git add <task-file>
git commit -m "[XX-YY] docs: mark task as completed"
Squash merge all commits to main:
# Switch to main
git checkout main
# Squash merge (combines all branch commits into one)
git merge --squash <feature-branch>
# Commit with task prefix
git commit -m "[XX-YY] feat: <summary of all changes>"
# Delete feature branch
git branch -d <feature-branch>
Squash merge to main in the main repository:
# Get main repo path
MAIN_REPO=$(cat "$(git rev-parse --show-toplevel)/.git" | sed 's/gitdir: //' | xargs dirname | xargs dirname)
# In main repo: squash merge
cd "$MAIN_REPO"
git merge --squash <worktree-branch>
git commit -m "[XX-YY] feat: <summary of all changes>"
# Offer to remove worktree
# Ask user: "Remove worktree directory?"
--no-test - Skip running tests--force - Continue even with uncommitted changesOn success (MAIN mode):
Finishing task: task-02 - Shared Kernel
Mode: MAIN
Running unit tests... ✓
Checking code formatting... ✓
Task status updated to ✅ completed
Task task-02 completed successfully!
On success (FEATURE_BRANCH mode):
Finishing task: task-02 - Shared Kernel
Mode: FEATURE_BRANCH
Branch: phase-01/task-02-shared-kernel
Running unit tests... ✓
Checking code formatting... ✓
Squash merging to main...
Committed: [01-02] feat: implement shared kernel with Entity and ValueObject base classes
Deleted branch: phase-01/task-02-shared-kernel
Task task-02 completed successfully!
On success (WORKTREE mode):
Finishing task: task-02 - Shared Kernel
Mode: WORKTREE
Branch: phase-01/task-02-shared-kernel
Running unit tests... ✓
Checking code formatting... ✓
Squash merging to main (in main repo)...
Committed: [01-02] feat: implement shared kernel with Entity and ValueObject base classes
Remove worktree directory? [y/N]
On failure:
Error: Unit tests failed
Fix the failing tests before completing the task.
This skill is part of the task lifecycle:
/task-status - see what's available/start-task XX - begin working/commit - commit changes/finish-task - complete (behavior depends on mode)xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience