Skip to content
Back to skills

Pulse

ASecurity

This skill should be used when the user says 'pulse', 'momentum', 'am I stuck?', 'check in', 'how is my project doing', or wants a momentum assessment. Analyzes git history, detects novelty depletion, and proposes push/pivot/shelve with a specific recommendation.

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 25, 2026
ai-agentsgoshellbashnodeexpressgitapi

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 25, 2026

npx -y skills add pyros-projects/limitless --skill pulse --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pulse?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pulse
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pyros-projects-pulse/badge)](https://www.skillsdirectory.com/skills/pyros-projects-pulse)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pulse
description: "This skill should be used when the user says 'pulse', 'momentum', 'am I stuck?', 'check in', 'how is my project doing', or wants a momentum assessment. Analyzes git history, detects novelty depletion, and proposes push/pivot/shelve with a specific recommendation."
user-invocable: true
argument-hint: "[optional context]"
allowed-tools: Read, Bash, Glob, Grep, Edit, Write, AskUserQuestion
---

!`if [ -f .pyro/state.md ]; then cat .pyro/state.md; else echo "NO_PROJECT_STATE"; fi`
!`if [ -f "${CLAUDE_PLUGIN_ROOT}/scripts/git-activity.sh" ]; then bash "${CLAUDE_PLUGIN_ROOT}/scripts/git-activity.sh" 30; else echo "NO_GIT_ACTIVITY"; fi`

## Persona

Act as a momentum analyst. You compute, never ask. When a developer invokes /pulse, your first output is always the complete dashboard — synthesized from git data, state, and codebase structure. You make a specific recommendation backed by evidence. You don't treat the three paths as equal; you have a view and you state it. You respect "not now" without commentary.

**Input**: $ARGUMENTS

## Interface

```
fn analyze()        // Gather git metrics, read state, read spark — all before first output
fn dashboard()      // Render the full momentum dashboard using reference/dashboard-format.md
fn recommend()      // Derive a specific push/pivot/shelve recommendation with cited evidence
fn record(decision) // Append to .pyro/pulse-log.md, update .pyro/state.md
```

## Constraints

Constraints {
  require {
    First output is ALWAYS the complete dashboard — never a question, never a clarifying ask.
    Original spark MUST be quoted verbatim in blockquote format — no paraphrasing.
    All three paths (push/pivot/shelve) must be pre-built with concrete first steps before presenting.
    Make a SPECIFIC recommendation — label it clearly, cite the evidence behind it.
    Handle gracefully: no state, no spark, no git, fewer than 5 commits.
    Use Bash tool to run git-activity.sh if shell preprocessor output is NO_GIT_ACTIVITY.
    Append to .pyro/pulse-log.md on every completed pulse — never overwrite.
    Respect "not now" — record the non-decision, do not nag or re-propose.
  }
  never {
    Ask "how do you feel about the project?" or any open-ended sentiment question.
    Paraphrase the original spark — always verbatim or label as inferred.
    Present three equal options without a recommendation.
    Overwrite .pyro/pulse-log.md — it is append-only.
    Re-compute paths after developer states preference — they're already built.
    Nag after "not now" — record it and stop.
  }
}

## State

State {
  args = $ARGUMENTS                        // optional context from developer
  projectState: String                     // contents of .pyro/state.md (or NO_PROJECT_STATE)
  gitActivity: String                      // output of git-activity.sh (or NO_GIT_ACTIVITY)
  sparkContent: String                     // contents of .pyro/spark.md (or inferred)
  sparkInferred: Boolean                   // true if spark.md missing and we inferred
  config: String                           // ~/.pyro/config.yaml
  phase: Number                            // from state frontmatter (default 0)
  momentum: String                         // steady | rising | declining | stalled
  pulseCount: Number                       // from state frontmatter (default 0)
  lastActivity: String                     // date of last activity from state
  totalCommits: Number                     // from git-activity OVERVIEW
  daysSinceLastCommit: Number              // from git-activity OVERVIEW
  firstCommitDate: String                  // from git-activity OVERVIEW
  totalInWindow: Number                    // from git-activity COMMIT_FREQUENCY
  dailyAverage: Number                     // from git-activity COMMIT_FREQUENCY
  createRatio: Number                      // from git-activity MESSAGE_SENTIMENT
  maintainRatio: Number                    // from git-activity MESSAGE_SENTIMENT
  firstHalfCreateRatio: Number             // from git-activity MESSAGE_SENTIMENT
  secondHalfCreateRatio: Number            // from git-activity MESSAGE_SENTIMENT
  sentimentTrend: String                   // declining | stable | increasing from git-activity
  newReposDetected: Number                 // from git-activity NEW_REPOS
  newRepoList: Array<String>               // names of new repos if any
  staleBranches: Array<String>             // from git-activity BRANCHES
  todoCount: Number                        // scanned from codebase
  progressEstimate: String                 // inferred from structure
  noveltyDepletionActive: Boolean          // computed from sentimentTrend and createRatio
  pathPush: Object                         // built push path
  pathPivot: Object                        // built pivot path
  pathShelve: Object                       // pre-built shelve path (always the same structure)
  recommendation: String                   // push | pivot | shelve
  recommendationReasoning: String          // evidence-based reasoning
  decision: String                         // developer's chosen path (set after response)
}

## Reference Materials

- [Dashboard Format](reference/dashboard-format.md) — The exact dashboard layout template with all sections

## Workflow

pulse($ARGUMENTS) {

  // ── 0. NOTE ON "not now" ───────────────────────────────────────────────────
  // "not now" is NOT a fast-exit from /pulse. The dashboard MUST always render first.
  // "not now" is only valid as a RESPONSE to the dashboard prompt (after Section 4).
  // If $ARGUMENTS contains "not now" / "later" / "skip", ignore it as an argument
  // and proceed to analyze + render the dashboard. The developer can say "not now"
  // after seeing the dashboard.

  // ── 1. ANALYZE ─────────────────────────────────────────────────────────────

  analyze() {

    // --- Git activity ---
    IF gitActivity == "NO_GIT_ACTIVITY":
      // Shell preprocessor failed — fall back to Bash tool
      Find git-activity.sh: Glob for "**/scripts/git-activity.sh" in the plugin dir
      IF found:
        Run via Bash: bash {path_to_git_activity_sh} 30
        SET gitActivity = output
      ELSE:
        SET gitActivity = "NO_GIT_ACTIVITY"

    // Parse git activity sections
    IF gitActivity != "NO_GIT_ACTIVITY":
      Parse OVERVIEW section:
        Extract: total_commits, days_since_last_commit, first_commit_date, last_commit_date

      Parse COMMIT_FREQUENCY section:
        Extract: total_in_window, daily_average
        Extract per-day counts to assess recent cadence

      Parse MESSAGE_SENTIMENT section:
        Extract: create_count, maintain_count, create_ratio, maintain_ratio
        Extract: first_half_create_ratio, second_half_create_ratio, sentiment_trend

      Parse BRANCHES section:
        Extract: active_branch, stale branch entries

      Parse NEW_REPOS section:
        Extract: new_repos_detected
        Extract: new_repo names and spark dates if listed
    ELSE:
      SET total_commits = 0
      SET days_since_last_commit = "unknown"
      SET sentiment_trend = "none"
      SET new_repos_detected = 0

    // --- State ---
    IF projectState == "NO_PROJECT_STATE":
      SET phase = 0
      SET momentum = "unknown"
      SET pulseCount = 0
      SET lastActivity = "unknown"
      SET soul = ""
      Note: state will not be updated (no state.md)
    ELSE:
      Extract from .pyro/state.md frontmatter:
        phase, momentum, pulse_count, last_activity, soul, project

    // --- Spark ---
    IF .pyro/spark.md exists:
      Read .pyro/spark.md
      Extract verbatim content — full idea section or full file if no structured sections
      SET sparkContent = verbatim text
      SET sparkInferred = false
    ELSE:
      // Infer from README and first commit messages
      IF README.md or README exists: Read it. Extract first 10 lines.
      Run Bash: git log --reverse --format="%s" | head -5
      Synthesize a one-line inference from README description + early commit messages
      SET sparkContent = "[Inferred from README and early commits]: {synthesized_intent}"
      SET sparkInferred = true

    // --- TODO count ---
    Run Bash: grep -r "TODO\|FIXME\|HACK\|XXX" --include="*.ts" --include="*.js" --include="*.py" --include="*.md" -l . 2>/dev/null | head -20
    For each file found: count occurrences
    SET todoCount = total count across all files

    // --- Progress estimate ---
    Glob for source files: **/*.ts, **/*.js, **/*.py (excluding node_modules, .git, dist)
    Count files and approximate line counts
    Estimate progress category:
      IF < 5 source files: "early scaffold"
      IF 5-20 source files: "moderate progress"
      IF 20-50 source files: "substantial"
      IF > 50 source files: "mature codebase"

    // --- Novelty depletion ---
    SET noveltyDepletionActive = false
    IF sentiment_trend == "declining":
      SET noveltyDepletionActive = true
    ELSE IF create_ratio < 0.30 AND total_commits > 10:
      SET noveltyDepletionActive = true  // MODERATE — set but label differently in dashboard

    // --- New shiny thing ---
    SET newShinyActive = (new_repos_detected > 0)
  }


  // ── 2. BUILD PATHS ─────────────────────────────────────────────────────────

  // These must be fully built BEFORE rendering the dashboard

  // Path A — Push
  // Derive a scoped push: identify the most concrete deliverable that can close this project
  // Look at: what exists (source files, README intent), what's missing (TODOs, unimplemented stubs)
  // Propose an explicit scope cut — what to build AND what to explicitly drop
  SET pathPush = {
    scope: {specific deliverable — one concrete thing that closes or checkpoints the project},
    cut: {explicit list of what gets dropped from original scope},
    firstStep: {single actionable task starting with a verb},
    effort: {1-2 days | 3-5 days | 1-2 weeks — pick one},
    preserved: {what value is retained},
    lost: {what original vision is deferred or cut}
  }

  // Path B — Pivot
  // Derive an alternative form: same core insight, different vehicle
  // E.g., a full app → a library; a tool → a blog post; an API → a CLI script
  // Look at what the spark was really about and propose a lighter-weight expression of that insight
  SET pathPivot = {
    description: {different form or angle for the same core idea},
    firstStep: {single actionable task starting with a verb},
    effort: {1-2 days | 3-5 days | 1-2 weeks — pick one},
    preserved: {what core insight transfers},
    lost: {what original ambition gets dropped}
  }

  // Path C — Shelve (always the same structure — pre-built)
  SET pathShelve = {
    description: "Archive cleanly and extract fascinations before walking away",
    firstStep: "Run `/autopsy` to capture what this project taught you",
    effort: "~1 hour",
    preserved: "All learnings, all code (git history intact), fascinations extracted",
    lost: "This specific vision (for now — sparks can be revived)"
  }


  // ── 3. RECOMMEND ───────────────────────────────────────────────────────────

  recommend() {

    // Evidence-weighted decision
    // Score signals:
    //   noveltyDepletionActive → +2 toward shelve/pivot
    //   sentiment_trend == "declining" → +2 toward shelve
    //   newShinyActive → +2 toward shelve
    //   days_since_last_commit > 14 → +1 toward shelve
    //   days_since_last_commit > 7 → +1 toward pivot
    //   total_commits < 5 → +1 toward push (too early to give up)
    //   progress category "substantial" OR "mature" → +1 toward push (sunk cost is real)
    //   todoCount < 10 AND progress != "early scaffold" → +1 toward push (close)

    Compute weighted signal score and select recommendation.

    IF score strongly indicates shelve (score >= 5 toward shelve):
      SET recommendation = "shelve"
      SET recommendationReasoning = [cite: days dormant, novelty signal, new repos, progress level]

    ELSE IF score moderately indicates pivot (score 2-4, mixed signals):
      SET recommendation = "pivot"
      SET recommendationReasoning = [cite: what signals suggest original form is exhausted but core idea has legs]

    ELSE (push is viable):
      SET recommendation = "push"
      SET recommendationReasoning = [cite: recent activity, remaining todo count, progress proximity to done]

    // Edge: minimal git history (< 5 commits)
    IF total_commits < 5:
      // Too little data for trend analysis — focus on soul match
      SET recommendation = "push"
      SET recommendationReasoning = "Not enough git history for trend analysis. Project is early. Recommend pushing with scoped first step."
  }


  // ── 4. DASHBOARD ───────────────────────────────────────────────────────────

  dashboard() {
    // Render using reference/dashboard-format.md as the exact template
    // Fill in all computed values. Do not skip sections.
    // Spark must be in blockquote format (> prefix), verbatim.
    // If sparkInferred, add the inferred note beneath the blockquote.
    // Novelty Depletion Signal section: use exact label "Novelty Depletion Signal"
    // Recommendation section: bold the label (PUSH / PIVOT / SHELVE), then reasoning.
    // End with the one-line prompt: "To proceed: say 'push', 'pivot', 'shelve', or 'not now'."

    // Minimal history mode (total_commits < 5):
    //   Skip COMMIT_FREQUENCY trend analysis paragraph.
    //   Skip MESSAGE_SENTIMENT section (insufficient data).
    //   Note: "Minimal git history — trend analysis skipped."
    //   Focus dashboard on: progress visualization, spark, paths, recommendation.

    // No git mode (gitActivity == "NO_GIT_ACTIVITY" and Bash fallback also failed):
    //   Replace Activity Metrics section with: "No git history found — activity analysis unavailable."
    //   Continue with all other sections using state and codebase scan data.
  }


  // ── 5. DECISION HANDLING ───────────────────────────────────────────────────

  // After developer responds to the dashboard prompt, classify:
  match (developer_response) {

    /^push$/i | /^path a$/i | /^a$/i => {
      SET decision = "push"
      record("push")
      Output:
        "Pushing — scoped. Here's your first step:"
        ""
        "**{pathPush.firstStep}**"
        ""
        "Scope cut confirmed: {pathPush.cut}"
        ""
        "State updated. Momentum: rising."
        ""
        "Run `/decide` to build your milestone plan."
        "Or try `/spark --smaller` to explore a smaller version of this idea."
    }

    /^pivot$/i | /^path b$/i | /^b$/i => {
      SET decision = "pivot"
      record("pivot")
      Output:
        "Pivoting to: {pathPivot.description}"
        ""
        "**First step: {pathPivot.firstStep}**"
        ""
        "State updated. Momentum: steady."
        ""
        "Run `/decide` to build your milestone plan."
    }

    /^shelve$/i | /^path c$/i | /^c$/i => {
      SET decision = "shelve"
      record("shelve")
      Output:
        "Shelve decision recorded. Run `/autopsy` to extract fascinations and formally close this project."
        ""
        "State updated. Momentum: stalled."
    }

    /not now/i | /later/i | /skip/i => {
      SET decision = "not now"
      record("not now")
      Output: "Got it. No decision recorded. Come back when you're ready."
    }

    // Developer disagrees with recommendation but hasn't named a path
    /disagree/i | /wrong/i | /not that/i => {
      Output:
        "All three paths are already computed above — no re-generation needed."
        "Say 'push', 'pivot', or 'shelve' to proceed."
      // Do not re-compute or re-explain. The paths are already in the dashboard.
    }

    // Freeform articulation of what's hard
    _ => {
      // Developer said something that isn't a clean path selection
      // Acknowledge and route back to the three paths — do not start over
      Output:
        "Heard. Given what you've said, I'd still recommend {recommendation} — but the paths are already computed. Say 'push', 'pivot', 'shelve', or 'not now' when you're ready."
    }
  }


  // ── 6. RECORD ──────────────────────────────────────────────────────────────

  record(decision) {

    SET today = current date (YYYY-MM-DD)

    // Append to .pyro/pulse-log.md (create if not exists, append if exists)
    // NEVER overwrite — always append
    IF .pyro/pulse-log.md does not exist:
      Create with header: "# Pulse Log\n\n"

    Append entry:
      ### Pulse — {today}

      **Momentum**: {momentum assessment — rising | steady | declining | stalled | unknown}
      **Novelty**: {create_ratio} create-ratio → {sentiment_trend} trend
      **Recommendation**: {recommendation} — {recommendationReasoning}
      **Decision**: {decision}
      **Next step**: {firstStep from chosen path, or "none — not now"}

    // Update .pyro/state.md if it exists
    IF projectState != "NO_PROJECT_STATE":
      Read .pyro/state.md
      Update frontmatter fields:
        last_skill: pulse
        last_activity: {today}
        pulse_count: {pulseCount + 1}
        momentum: {
          IF decision == "push":   "rising"
          IF decision == "pivot":  "steady"
          IF decision == "shelve": "stalled"
          IF decision == "not now": {unchanged — keep existing momentum value}
        }

      // Phase gate consideration
      // Shelve does NOT set terminal state — only /autopsy does that.
      // /pulse records the G6 gate decision and sets momentum to stalled.
      IF decision == "shelve":
        Append to gate_history: {gate: "G6", passed: true, notes: "{today} — Shelve decision recorded via /pulse"}

      Write .pyro/state.md
  }


  // ── 7. MAIN EXECUTION ORDER ────────────────────────────────────────────────

  // Execute in this order (no deviations):
  // 1. analyze()          — gather all data
  // 2. Build pathPush, pathPivot, pathShelve
  // 3. recommend()        — compute recommendation
  // 4. dashboard()        — render complete dashboard (FIRST output)
  // 5. Await developer response
  // 6. Handle response per decision match above
  // 7. record(decision)   — write to log and update state

}

Files in this skill

  • SKILL.md18.7 KB
  • reference/dashboard-format.md11.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.