rewrite-lesson
Routine: Read an existing lesson's content, rewrite it in a different tone/length/reading level, and stage the rewrite as a draft update.
Skill by thoughtindustries
Chalk Labs
Need help deploying rewrite-lesson?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/thoughtindustries-rewrite-lesson
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/rewrite-lesson
What's inside
- Skill name
rewrite-lesson- Description
- Routine: Read an existing lesson's content, rewrite it in a different tone/length/reading level, and stage the rewrite as a draft update.
- License
- MIT
- Instructions
- 80 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Rewrite Lesson
This is a **Routine** skill — a reliable, repeatable sequence of Actions. Follow the steps exactly. Minimize judgment — the process is fixed.
## Purpose
Take an existing lesson in a TI course, rewrite its topic content according to user-specified parameters (tone, length, reading level), and stage the rewritten content as a draft update.
## Process
### Step 1 — Gather parameters
Ask the user for:
- **Which lesson** — accept a lesson **title**, course + lesson name, or an admin/catalog **URL**; you do **not** need the user to supply a UUID. Resolve it with the **`resolve-content`** action:
```bash
node "${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/skills/actions/resolve-content/}resolve-content.js" --course="COURSE TITLE OR URL" --lesson="LESSON NAME"
```
This returns the `courseId` and `lessonId` (and the lesson's topic IDs). Only fall back to browsing with `list-course-groups` → `get-course-structure` if resolution is ambiguous (the resolver returns `candidates` to disambiguate — never guess an ID).
- **Rewrite parameters** (at least one):
- **Tone**: formal, conversational, technical, friendly, academic
- **Length**: shorter, longer, or target word count
- **Reading level**: grade level (e.g., 8th grade), or audience (e.g., "non-technical executives")
- **Other**: specific instructions (e.g., "add more examples", "remove jargon")
### Step 2 — Read current content
Invoke the **`get-full-content`** action to read the topic **bodies**, focused on the target lesson:
```bash
node "${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/skills/actions/get-full-content/}get-full-content.js" --id=COURSE_UUID --lesson=LESSON_UUID
```
Record each topic's `id`, `title`, and `body` (current content) from the `_tree` view.
> **Do not use `get-topics-by-lesson` or `get-topic` to read content here** — they return topic metadata only, never the `body`. Reading with those is what makes a rewrite of existing content dead-end and fall back to "edit it manually in TI." `get-full-content` returns the real body, so the rewrite round-trip works.
### Step 3 — Rewrite
For each topic:
1. Take the current `body` (HTML content).
2. Rewrite it according to the user's parameters.
3. Preserve the HTML structure (headings, lists, images, embeds) unless the user asks to restructure.
4. Preserve any embedded media references, links, or interactive elements.
### Step 4 — Show diff to user
Present the rewritten content alongside the original for each topic. Use a clear before/after format. Ask the user to approve, request changes, or reject.
Do NOT proceed to Step 5 until the user explicitly approves.
### Step 5 — Stage the update
Invoke the **`update-course-content`** action with the approved rewrites:
```bash
node "${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/skills/actions/update-course-content/}update-course-content.js" --file=rewrite.json
```
The payload should update only the `topics` that were rewritten:
```json
{
"topics": [
{ "id": "TOPIC_UUID_1", "body": "<p>Rewritten content...</p>" },
{ "id": "TOPIC_UUID_2", "body": "<p>Rewritten content...</p>" }
]
}
```
Report the update result to the user.
<HARD-GATE>
- All updates are staged as DRAFT. Never call releaseContent.
- Never skip Step 4 (user approval). The user must see and approve the rewritten content before it is pushed to TI.
- Never discard or overwrite embedded media, assessments, or interactive elements unless the user explicitly asks.
</HARD-GATE>From thoughtindustries/ti-admin-plugin, MIT.
More from thoughtindustries/ti-admin-plugin
- 0.521score
resolve-content
thoughtindustries
Action: Resolve a human reference (course/lesson/topic title, slug, admin URL, or UUID) into the concrete UUID chain the read/update actions need.
SkillBFreshness: BClaude Code +9 - 0.521score
configure
thoughtindustries
Action: One-time setup that securely stores the TI instance URL and Incoming API key in a user-scoped config file, so no shell variable or in-chat key is…
SkillBFreshness: BClaude Code +9 - 0.521score
create-course-draft
thoughtindustries
Action: Create a new course (courseGroup, microCourse, article, video) as a draft via POST /content/course/create.
SkillBFreshness: BClaude Code +9 - 0.521score
get-full-content
thoughtindustries
Action: Read the full content body of a course or learning path (all sections/lessons/topics with HTML body) via GET /fullContent/{type}/{id}, and of…
SkillBFreshness: BClaude Code +9 - 0.521score
get-topic
thoughtindustries
Action: Fetch a single topic's metadata by ID via GET /topics/{id} (id, title, type, pre/post text).
SkillBFreshness: BClaude Code +9 - 0.521score
get-topics-by-lesson
thoughtindustries
Action: List a lesson's topics (metadata only) via GET /topics/lesson/{lessonId}.
SkillBFreshness: BClaude Code +9 - 0.521score
list-course-groups
thoughtindustries
Action: List/search course groups from the TI catalog via GET /courseGroups.
SkillBFreshness: BClaude Code +9 - 0.521score
update-course-content
thoughtindustries
Action: Update existing course content (topics, lessons, sections) by UUID via PUT /content/course/update.
SkillBFreshness: BClaude Code +9 - 0.521score
read-existing-content
thoughtindustries
Routine: Show the content of an existing course/lesson/topic from a human reference (title or admin URL) — resolves IDs, then reads the actual topic bodies.
SkillBFreshness: BClaude Code +9 - 0.518score
get-course-group
thoughtindustries
Action: Fetch a single course group by ID via GET /courseGroups/{id}.
SkillBFreshness: BClaude Code +9 - 0.518score
get-course-structure
thoughtindustries
Action: Fetch the full tree (sections, lessons, topics) of a course via GET /courses/{courseId}/structure.
SkillBFreshness: BClaude Code +9 - 0.518score
generate-course-outline
thoughtindustries
Routine: Generate a structured course outline from a topic or source material, then stage it as a draft in TI Academy.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 6, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from thoughtindustries
- 0.521score
get-topic
thoughtindustries
Action: Fetch a single topic's metadata by ID via GET /topics/{id} (id, title, type, pre/post text).
SkillBFreshness: BClaude Code +9 - 0.521score
create-course-draft
thoughtindustries
Action: Create a new course (courseGroup, microCourse, article, video) as a draft via POST /content/course/create.
SkillBFreshness: BClaude Code +9 - 0.521score
configure
thoughtindustries
Action: One-time setup that securely stores the TI instance URL and Incoming API key in a user-scoped config file, so no shell variable or in-chat key is…
SkillBFreshness: BClaude Code +9 - 0.521score
resolve-content
thoughtindustries
Action: Resolve a human reference (course/lesson/topic title, slug, admin URL, or UUID) into the concrete UUID chain the read/update actions need.
SkillBFreshness: BClaude Code +9 - 0.521score
get-full-content
thoughtindustries
Action: Read the full content body of a course or learning path (all sections/lessons/topics with HTML body) via GET /fullContent/{type}/{id}, and of…
SkillBFreshness: BClaude Code +9 - 0.521score
get-topics-by-lesson
thoughtindustries
Action: List a lesson's topics (metadata only) via GET /topics/lesson/{lessonId}.
SkillBFreshness: BClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get rewrite-lesson running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
rewrite-lesson skill. Agent Mart. https://agentmart.dev/skills/thoughtindustries-rewrite-lesson (last updated 2026-10-24)