Skip to content

docs: Add script locations guidance (templates vs scripts/dev) #108

Closed

Description

@admarble

Summary

Document the relationship between templates/scripts/ and scripts/dev/ to prevent confusion about which files to modify.

Problem

Discovered during #103 QA:

  • Issue specified modifying scripts/dev/new-feature.sh
  • Implementation modified templates/scripts/new-feature.sh
  • QA passed without catching this divergence
  • Feature didn't work until manually fixed

Developers need to know:

  • templates/scripts/ = canonical tracked source (modify this)
  • scripts/dev/ = local copies created by sequant init (gitignored)

Proposed Solution

Add section to README or create CLAUDE.md with:

### Script Locations

| Location | Purpose | Tracked |
|----------|---------|---------|
| `templates/scripts/` | Canonical source scripts | ✅ Yes |
| `scripts/dev/` | Local copies from `sequant init` | ❌ No (gitignored) |

**When modifying scripts:** Change `templates/scripts/` - this is what gets committed.
Users receive updates when they run `sequant init` or manually copy.

Acceptance Criteria

  • Script location relationship documented in README or CLAUDE.md
  • Clear guidance on which directory to modify
  • Mention that scripts/dev is created by sequant init

Related

Activity

  1. admarble commented on Jan 21, 2026

    @admarble
    ContributorAuthor

    📋 Implementation Plan (Phase 1: /spec)

    Acceptance Criteria Checklist

    • AC-1: Script location relationship documented in README or CLAUDE.md
    • AC-2: Clear guidance on which directory to modify
    • AC-3: Mention that scripts/dev is created by sequant init

    Verification Criteria

    AC Method Test Scenario
    AC-1 Manual Developer opens CONTRIBUTING.md → finds Script Locations section
    AC-2 Manual Developer searching where to edit scripts → finds clear "modify templates/scripts/" guidance
    AC-3 Manual Documentation mentions sequant init creates the local copies

    Implementation Plan

    Target file: CONTRIBUTING.md (in Project Structure section)

    Why CONTRIBUTING.md:

    • Already has "Project Structure" section with directory layout
    • Developer/contributor focused (not user-facing like README)
    • No CLAUDE.md exists; shouldn't create one just for this

    Changes:

    1. CONTRIBUTING.md — Add ### Script Locations subsection after Project Structure:

      ### Script Locations
      
      Helper scripts exist in two locations:
      
      | Location | Purpose | Tracked |
      |----------|---------|---------|
      | `templates/scripts/` | Canonical source scripts | ✅ Yes |
      | `scripts/dev/` | Local copies from `sequant init` | ❌ No (gitignored) |
      
      **When modifying scripts:** Always change files in `templates/scripts/` — this is what gets committed and distributed to users.
      
      The `scripts/dev/` directory is created automatically when you run `sequant init`. It contains working copies for local use.
    2. docs/git-patterns.md — Add clarifying note near script reference (optional)

    Conflict Risk Analysis

    Related: #107 (symlinks instead of copies)

    Assumptions to Validate

    • CONTRIBUTING.md is appropriate location (confirmed: has Project Structure section)
    • No CLAUDE.md exists (confirmed)
    • Table format is clear (user to confirm)

    Recommended Workflow

    Phases: exec → qa
    Quality Loop: disabled
    Reasoning: Documentation-only change (2 files), no code, no tests needed


    Generated by /spec phase

  2. added
    planned
    on Jan 21, 2026
  3. added a commit that references this issue on Jan 21, 2026
  4. admarble commented on Jan 21, 2026

    @admarble
    ContributorAuthor

    🚀 Implementation Complete (Phase 2: /exec)

    AC Coverage

    AC Status Notes
    AC-1: Script location relationship documented ✅ Done Added ### Script Locations section to CONTRIBUTING.md
    AC-2: Clear guidance on which directory to modify ✅ Done "Always change files in templates/scripts/"
    AC-3: Mention that scripts/dev is created by sequant init ✅ Done Explicitly states "created automatically when you run sequant init"

    Files Changed

    • CONTRIBUTING.md — Added 13 lines in new ### Script Locations subsection after Project Structure

    Build/Test Results

    • ✅ npm run build — Passes
    • ⚠️ npm test — 10 pre-existing failures in state-update-cli.test.ts (unrelated to this change)

    PR Status

    Created: PR #151

    Self-Evaluation

    • Worked as expected: Yes — straightforward documentation addition
    • Test coverage confidence: N/A — documentation change, no code tests needed
    • Weakest part: None identified; documentation follows spec exactly
    • Honest assessment: Clean implementation matching the spec's proposed format

    Generated by /exec phase

  5. admarble commented on Jan 21, 2026

    @admarble
    ContributorAuthor

    🔍 QA Review for Issue #108

    AC Coverage

    AC Description Status Notes
    AC-1 Script location relationship documented in README or CLAUDE.md ✅ MET Added ### Script Locations section to CONTRIBUTING.md (appropriate location with existing Project Structure section)
    AC-2 Clear guidance on which directory to modify ✅ MET "Always change files in templates/scripts/ — this is what gets committed and distributed to users."
    AC-3 Mention that scripts/dev is created by sequant init ✅ MET "The scripts/dev/ directory is created automatically when you run sequant init."

    Coverage: 3/3 AC items fully met


    Quality Metrics

    Metric Value Status
    Type issues (any) 0 ✅ OK
    Deleted tests 0 ✅ OK
    Files changed 1 ✅ OK
    Lines added +13 -
    Lines deleted -0 -

    Code Review

    Strengths:

    • Clean, focused documentation change (single file)
    • Table format clearly contrasts the two directories
    • Placement in CONTRIBUTING.md is logical (after Project Structure section)
    • Follows the exact format proposed in the spec
    • Uses emoji checkmarks for visual clarity (✅/❌)

    Issues:

    • None identified

    Suggestions:

    • None - implementation matches spec exactly

    Test Quality Review

    N/A - No test files modified (documentation-only change)


    Anti-Pattern Detection

    Dependency Audit

    N/A - No dependency changes

    Code Patterns

    N/A - No code changes (documentation only)

    Critical Issues: 0
    Warnings: 0


    Execution Evidence

    N/A - No executable changes (documentation only)


    Self-Evaluation

    • Verified working: Yes - Documentation renders correctly in markdown, formatting is accurate
    • Test efficacy: N/A - Documentation change, no tests needed
    • Likely failure mode: None - documentation is factually accurate and matches current behavior
    • Verdict confidence: High - straightforward docs change that exactly matches spec

    Verdict: READY_FOR_MERGE

    All 3 acceptance criteria are fully met. The implementation is a clean, focused documentation addition that addresses the problem described in the issue (confusion between templates/scripts/ and scripts/dev/). The table format clearly explains the difference, and the guidance for contributors is unambiguous.

    Documentation

    • CONTRIBUTING.md updated with Script Locations section
    • N/A - No CHANGELOG entry needed (internal contributor docs)

    Next Steps

    1. Merge PR docs(#108): add script locations guidance to CONTRIBUTING.md #151
    2. Consider running /docs 108 if additional documentation is desired (optional for this docs-only change)

    Generated by /qa phase

  6. added
    ready-for-review
    on Jan 21, 2026
  7. admarble commented on Jan 21, 2026

    @admarble
    ContributorAuthor

    🔍 QA Review for Issue #108 (Re-review)

    AC Coverage

    AC Description Status Notes
    AC-1 Script location relationship documented in README or CLAUDE.md ✅ MET Added ### Script Locations section to CONTRIBUTING.md (appropriate location - has existing Project Structure section)
    AC-2 Clear guidance on which directory to modify ✅ MET "Always change files in templates/scripts/ — this is what gets committed and distributed to users."
    AC-3 Mention that scripts/dev is created by sequant init ✅ MET "The scripts/dev/ directory is created automatically when you run sequant init."

    Coverage: 3/3 AC items fully met


    Quality Metrics

    Metric Value Status
    Type issues (any) 0 ✅ OK
    Deleted tests 0 ✅ OK
    Files changed 1 ✅ OK
    Lines added +13 -
    Lines deleted -0 -

    Code Review

    Strengths:

    • Clean, focused documentation change (single file, 13 lines)
    • Table format clearly contrasts the two directories with visual checkmarks (✅/❌)
    • Placement in CONTRIBUTING.md is logical (after Project Structure section)
    • Content is factually accurate (verified: templates/scripts/ exists, scripts/dev/ is gitignored)

    Issues:

    • None identified

    Suggestions:

    • None - implementation matches spec exactly

    Test Quality Review

    N/A - No test files modified (documentation-only change)


    Anti-Pattern Detection

    Dependency Audit

    N/A - No dependency changes

    Code Patterns

    N/A - No code changes (documentation only)

    Critical Issues: 0
    Warnings: 0


    Execution Evidence

    N/A - No executable changes (documentation only)

    Evidence status: Not Required


    Self-Evaluation

    • Verified working: Yes - Documentation renders correctly, content verified against actual codebase
    • Test efficacy: N/A - Documentation change, no tests needed
    • Likely failure mode: None - documentation is factually accurate (verified templates/scripts/ exists and scripts/dev/ is gitignored)
    • Verdict confidence: High - straightforward docs change that exactly matches spec

    Verdict: READY_FOR_MERGE

    All 3 acceptance criteria are fully met. The implementation is a clean, focused documentation addition that directly addresses the problem from issue #103 (confusion between templates/scripts/ and scripts/dev/).

    Key verifications:

    • ✅ templates/scripts/ directory exists with tracked scripts
    • ✅ scripts/dev/ is in .gitignore
    • ✅ CI checks pass (all 5 status checks green)
    • ✅ PR is mergeable

    Documentation

    • CONTRIBUTING.md updated with Script Locations section
    • N/A - No CHANGELOG entry needed (internal contributor docs)

    Next Steps

    1. ✅ Ready to merge PR docs(#108): add script locations guidance to CONTRIBUTING.md #151

    Generated by /qa phase

  8. added a commit that references this issue on Jan 21, 2026
  9. admarble commented on Jan 21, 2026

    @admarble
    ContributorAuthor

    ✅ Issue Complete

    PR #151 merged (commit 9672a68)

    Documentation Assessment

    • /docs: Skipped (documentation-only change)
    • CHANGELOG: Not needed (contributor-facing, not user-facing)
    • README: Not needed (change was to CONTRIBUTING.md)

    Follow-up Issues Created


    Closed by PR merge

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

    plannedready-for-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions