Skip to content

feat(quality): Add semantic review checks to /exec and /qa skills #210

Closed

Description

@admarble

Summary

Gaps discovered during /qa 177 should have been caught earlier in the workflow. This issue adds targeted checklists to catch semantic issues (not just syntax).

Problem

Issue #177 had 4 gaps discovered during manual QA review that should have been caught during /exec:

Gap Type Should Have Been Caught By
Functions defined but not called Dead code /exec quality loop
Branch name hardcoded to main Portability /exec code review
set -e early exit Behavior bug /exec testing
Return code ambiguity Design flaw /spec or /exec

Root Cause

Quality loop focuses on syntax (does it compile?) not semantics (does it work?).

Acceptance Criteria

  • AC-1: Add unused function detection to quality-checks.sh for shell scripts
  • AC-2: Add shell script quality checks section to /exec SKILL.md
  • AC-3: Add semantic review checklist to /qa SKILL.md
  • AC-4: All checks documented with clear pass/fail criteria

Proposed Changes

1. quality-checks.sh - Unused Function Detection

# Check for shell functions defined but not called
for func in $(grep -oE "^[a-z_]+\(\)" "$script" | sed 's/()//'); do
  if ! grep -q "$func" "$script" | grep -v "^${func}()"; then
    echo "⚠️  Function '$func' may be unused"
  fi
done

2. /exec SKILL.md - Shell Script Checks

  • All defined functions are called
  • Script runs without error
  • Shellcheck passes (if available)

3. /qa SKILL.md - Semantic Review Checklist

  • Dead code check
  • Hardcoding check
  • Return code distinctness
  • Integration verification

References

Activity

  1. added
    enhancement
    on Jan 31, 2026
  2. added 2 commits that reference this issue on Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions