Content
The collections of a content factory: topics, platforms, ideas and drafts; the contour "idea → draft → in review → approved → published"; norms: only a person approves and publishes, a draft rests on an approved idea and a platform, the text keeps the platform style.
About the package
A simple path of a text: a person and agents come up with ideas, a person approves an idea, an agent writes a draft, the editor agent checks it against the platform style, and a person approves the text and publishes it themselves.
Collections
- Topics: what we write about. One page is one topic.
- Platforms: where we write: channel, format, length, language, tone and own style rules.
- Ideas: one idea per text: topic, platform, a couple of lines on what it is about.
- Drafts: one text for one platform. A published draft is the publication: it has a date and an address.
- Voice: the common language and tone of all texts.
Contour
Idea: new (proposed) → approved (approved by a person) → drafted (there is a draft for it); or rejected.
Draft: draft (being written or fixed) → review (in review) → approved (approved by a person) → published (a person published it). From review the editor returns the text to draft with notes.
Norms
- CNT-R01 (MUST): only a person approves and publishes. Enforcers: the hook
approve-guard(an agent in Claude Code cannot setapproved,publishedor the approval fields) and the checkapproval(an approved text has a person and a day recorded). - CNT-R02 (MUST): a draft rests on an approved idea and a platform that exist. The enforcer is the check
draft. - CNT-R03 (SHOULD): the text keeps the platform style. Enforcers: the judge
judges/platform-style.md(the editor agent works by it) and the checklength(an approved text fits the length of the platform).
Boundary
The package sends nothing outside: there are no social network APIs, no mail and no publishing. Publishing a text is a person's job; after that the person sets published, the day and the address. The agents and the schedule are in the blueprint blueprint-content-factory.
Norms 3
| ID | Norm | Level | Mode | Enforcer |
|---|---|---|---|---|
| CNT-R01 | A draft in the state approved or published was approved by a person: approvedBy is the name of a person, not an agent, approvedOn is the day. An agent does not set approved and published and does not write the approval and publication fields. |
MUST | blocks | check |
| CNT-R02 | A draft refers to an idea and a platform that exist; the idea is approved (approved or drafted), not rejected. |
MUST | blocks | check |
| CNT-R03 | The text of a draft keeps the format, length, language, tone and style rules of its platform and the project voice; an approved text fits within minChars to maxChars of the platform. |
SHOULD | blocks | judge |
"Blocks": the enforcer stops a violation. "Observes": it only notes it. Level MUST means required; SHOULD means yes by default.
Actions 4
| Name | What it does | File | When |
|---|---|---|---|
| place | Add the kinds Topic, Platform, Idea, Draft to the placement map | bin/place.ts | after install after update |
| approval | An approved and a published draft were approved by a person, not by an agent norm CNT-R01 | checks/c01_approval.ts | check |
| draft | A draft rests on an idea and a platform that exist; the idea is not rejected norm CNT-R02 | checks/c02_draft.ts | check |
| length | An approved text fits the length of the platform norm CNT-R03 | checks/c03_length.ts | check |
shtuk check runs the checks; shtuk run content <name> runs any action. "After install" actions run by themselves only if the package comes from a trusted source.
Agent hooks 1
| Name | Event | Tools | File | Norm |
|---|---|---|---|---|
| approve-guard | PreToolUse | Write, Edit, MultiEdit | hooks/approve-guard.ts | CNT-R01 |
Pages 18
They go into the project at these paths.
- /content/
- Drafts collection
- Ideas collection
- Platforms collection
- Topics collection
- Voice page
- /content/contours/
- Drafts contour contour
- Ideas contour contour
- /content/contours/drafts/
- Approved contour phase
- Draft contour phase
- Published contour phase
- In review contour phase
- /content/contours/ideas/
- Approved contour phase
- Drafted contour phase
- Proposed contour phase
- Rejected contour phase
- /norms/rules/content/
- Only a person approves and publishes CNT-R01
- A draft rests on an approved idea and a platform CNT-R02
- The text keeps the platform style CNT-R03
Package files 8
They go into .shtukbase/packages/content/; actions run from there.