me2resh/apexyard / .claude/skills/orbit
orbit
VerifiedRun the opt-in ORBIT planning lifecycle for one managed project without replacing ApexYard governance.
tests/test_handoff_preflight_happy_path.sh
View on GitHub#!/bin/bash
# test_handoff_preflight_happy_path.sh — /orbit handoff preflight, happy path
# (apexyard#1446, ac1-1, ac1-2, ac1-6).
#
# No duplicate issue, validate succeeds, dry-run sync succeeds: the helper
# must exit 0 and print the preview JSON on stdout.
#
# No network. Mocks `orbit` and `gh` on PATH inside a throwaway sandbox.
set -u
SKILL_DIR="$(cd "$(dirname "$0")/.." && pwd)"
HELPER="$SKILL_DIR/lib/handoff-preflight.sh"
# shellcheck source=./_lib-fixtures.sh
. "$(dirname "$0")/_lib-fixtures.sh"
fail=0
sb=$(make_sandbox)
orbit_root=$(fixtures_write_orbit_root "$sb")
fixtures_install_mock_orbit "$sb" 0 0
fixtures_install_mock_gh "$sb"
PATH="$sb/bin:$PATH"
export PATH
ORBIT_BIN="$sb/bin/orbit"
export ORBIT_BIN
stderr_file="$sb/stderr.log"
output=$("$HELPER" --slice "$orbit_root/slices/slice-demo-o1.json" --repo demo-org/demo-widget --orbit-root "$orbit_root" 2>"$stderr_file")
rc=$?
stderr_output=$(cat "$stderr_file" 2>/dev/null)
if [ "$rc" -ne 0 ]; then
echo "FAIL: expected exit 0, got $rc (stderr: $stderr_output)"
fail=1
fi
case "$output" in
*"slice-demo-widget-o1"*) ;;
*) echo "FAIL: preview does not mention the slice id"; fail=1 ;;
esac
case "$output" in
*'"dryRun":true'*) ;;
*) echo "FAIL: preview does not report dryRun:true"; fail=1 ;;
esac
sed 's/\[Slice\]/[Task]/g' "$sb/bin/orbit" > "$sb/bin/orbit-wrong-title"
chmod +x "$sb/bin/orbit-wrong-title"
ORBIT_BIN="$sb/bin/orbit-wrong-title"
output=$("$HELPER" --slice "$orbit_root/slices/slice-demo-o1.json" --repo demo-org/demo-widget --orbit-root "$orbit_root" 2>"$stderr_file")
rc=$?
if [ "$rc" -ne 13 ] || ! grep -q 'did not return a \[Slice\] issue title' "$stderr_file"; then
echo "FAIL: expected a non-Slice adapter preview title to stop handoff (got $rc: $(cat "$stderr_file"))"
fail=1
fi
rm -rf "$sb"
if [ "$fail" -eq 0 ]; then
echo "PASS: handoff preflight happy path"
fi
exit "$fail"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies. | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |
| meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要". | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |