tutorials-task-template

tutorials-task-template is a cursor rule for Cursor from dalehurley/codewithphp. It costs 11 tokens per session (2,853 once invoked), scanned A, original, MIT.

A writing and planning template for creating new PHP tutorial chapters. It covers the information to collect, the chapter metadata, and the structure used by the tutorial series.

In plain words
What is it for?
Use it to plan and write a new tutorial chapter, including its title, description, learning goals, links to earlier chapters, files to create, estimated time, and difficulty.
Why use it?
It prevents chapters from missing important details such as prerequisites, difficulty, code examples, or their position in a series.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to plan and write a new tutorial chapter, including its title, description, learning goals, links to earlier chapters, files to create, estimated time, and difficulty.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/dalehurley/codewithphp/tutorials-task-template
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/dalehurley/codewithphp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tutorials-task-template

README.md
[![agentmods](https://agentmods.dev/badge/rules/dalehurley/codewithphp/tutorials-task-template/github.svg)](https://agentmods.dev/rules/dalehurley/codewithphp/tutorials-task-template)
Your own site
<a href="https://agentmods.dev/rules/dalehurley/codewithphp/tutorials-task-template"><img src="https://agentmods.dev/badge/rules/dalehurley/codewithphp/tutorials-task-template/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tutorials-task-template

Your own site · 80×15
<a href="https://agentmods.dev/rules/dalehurley/codewithphp/tutorials-task-template"><img src="https://agentmods.dev/badge/rules/dalehurley/codewithphp/tutorials-task-template.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,853 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.02853
Opus 5.5 $0.00004 $0.01141
Sonnet 5.5 $0.00002 $0.00571
Haiku 4.5 $0.00001 $0.00285

Measured 9d ago against content hash f3b8a536aa9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tutorials-task-template scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/tutorials-task-template.mdc · 495 lines

How it starts

The opening of the file, as written. The whole thing — 495 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Task Template — Creating New Tutorials

Use this template when creating new tutorial chapters for Code with PHP. This template works in conjunction with the Global Rules — Tutorials and Authoring Guidelines.

Pre-Writing Checklist

Before you start writing, gather:

  • Chapter number and position in series
  • Previous chapter(s) to link in prerequisites
  • Concepts being taught
  • What the reader will build
  • Code examples planned (list files)
  • Time estimate for completion
  • Difficulty level (Beginner/Intermediate/Advanced)

Metadata Template

---
title: "[NN]: [Chapter Title]"
description: "[One-sentence description of what reader will learn]"
series: "[series-slug]"
chapter: [N]
order: [N]
difficulty: "[Beginner|Intermediate|Advanced]"
prerequisites:
  - "[/series/series-slug/chapters/previous-chapter]"
  - "[Additional requirements if needed]"
---

Example:

---
title: "08: Introduction to Object-Oriented Programming"
description: "Learn how to model real-world concepts into reusable blueprints (classes) and create individual instances (objects)"
series: "php-basics"
chapter: 8
order: 8
difficulty: "Intermediate"
prerequisites:
  - "/series/php-basics/chapters/07-mastering-string-manipulation"
---

Chapter Structure Template

Copy this template and fill in each section:

---
[frontmatter here]
---

# Chapter [NN]: [Chapter Title]

## Overview

[Write 2-4 compelling paragraphs that:]

- [Explain what this chapter covers and why it matters]
- [Connect to previous learning: "Until now, we've..."]
- [Introduce the paradigm/concept shift if applicable]
- [Preview what they'll build by the end]

[Example: "Until now, we've been writing code in a **procedural** way: a series of steps and functions that operate on data. This is great for simple scripts, but as applications grow, it can become disorganized..."]

## Prerequisites

Before starting this chapter, you should have:

- PHP 8.6+ installed and confirmed working with `php --version`
- Completion of [Chapter [N-1]](/series/[slug]/chapters/[prev-chapter]) or equivalent understanding
- [Specific tool or software needed]
- [Knowledge/skill requirement]
- **Estimated Time**: ~[XX] minutes

[Optional verification section:]
**Verify your setup:**

```bash

Read the full file on GitHub · 495 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed f3b8a536aa9a
  2. 3mo ago First seen · 495 lines · 11 tokens per session scan A 967703388f83

Subscribe to this mod's changes

tutorials-task-template is a cursor rule published in the GitHub repository dalehurley/codewithphp (6 stars, last pushed 7d ago), licensed MIT. It adds 11 tokens to every session and 2,853 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

tutorials-task-template compared with cursor rules from other repositories

tutorials-task-template next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tutorials-task-templatedalehurley/codewithphpCursor rule67d agoMITA11Cursor
mind-meldvictusfate/scaffoldCursor rule72d agoMITA22Cursor
rapid-domain-masteryEmily2040/rapid-domain-masteryCursor rule176mo agoMITA0Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor
angular-20angular/angularCursor rule102k4d agoMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Cursor