add-deeds

Generate interesting gameplay statistics (deeds) sent on game completion

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "add-deeds" with this command: npx skills add puzzmo-com/oss/puzzmo-com-oss-add-deeds

Add Deeds

Deeds are interesting statistics about a gameplay session. They're sent on completion and used for leaderboards, achievements, and social sharing.

Steps

  1. Identify 3-6 interesting metrics from the game. Good deeds are things like:

    • Number of moves made
    • Words found / items collected
    • Accuracy percentage
    • Streak length (consecutive correct answers)
    • Unique items discovered
    • Time per move/action
  2. Track these metrics during gameplay. Add counters/trackers to the game state.

  3. On completion, include deeds in the gameCompleted call via the config parameter:

    sdk.gameCompleted(gameplayMetrics, {
      deeds: [
        { id: "moves", value: totalMoves },
        { id: "accuracy", value: Math.round(correctMoves / totalMoves * 100) },
        { id: "streak", value: longestStreak },
        { id: "items-found", value: itemsFound },
      ],
    })
    
  4. Deed IDs should be:

    • Lowercase kebab-case
    • Short and descriptive
    • Stable (don't change between versions)
  5. The SDK automatically adds points and time deeds - you don't need to add those.

  6. Also send deeds during checkpoints if the game has intermediate milestones:

    sdk.hitCheckpoint("level-complete", {
      interruptible: true,
      complete: false,
      process: [],
    }, {
      deeds: [{ id: "items-found", value: itemsFound }],
    })
    

Success Criteria

  • npm run build completes without errors
  • At least 3 meaningful deeds are tracked during gameplay
  • Deeds are sent with gameCompleted
  • Deed IDs are kebab-case and descriptive

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

create-app-bundle

No summary provided by upstream source.

Repository SourceNeeds Review
General

puzzmo-theme

No summary provided by upstream source.

Repository SourceNeeds Review
General

setup-deploy

No summary provided by upstream source.

Repository SourceNeeds Review
General

game-completion

No summary provided by upstream source.

Repository SourceNeeds Review