Skip to content
Skills Library
Programming · Writing

constraint-write

/constraint-write

Use when the user asks to "/constraint-write", "write constraint", "define constraint", "幫我寫 constraint", "定義 constraint", or when the agent detects prohibition ("不能", "禁止", "must not"), obligation ("必須", "一定要", "always"), or invariant ("roundtrip", "idempotent") language in conversation and wants to suggest writing a constraint.

Author
caasi ↗
Repository
dong3 ↗
Licence
MIT
Last repository change
19.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 19.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when the user asks to "/constraint-write", "write constraint", "define constraint", "幫我寫 constraint", "定義 constraint", or when the agent detects prohibition ("不能", "禁止", "must not"), obligation ("必須", "一定要", "always"), or invariant ("roundtrip", "idempotent") language in conversation and wants to suggest writing a constraint.

Triggers from the description

write constraintdefine constraint幫我寫 constraint定義 constraintmust not一定要alwaysroundtrip
Original author description

Use when the user asks to "/constraint-write", "write constraint", "define constraint", "幫我寫 constraint", "定義 constraint", or when the agent detects prohibition ("不能", "禁止", "must not"), obligation ("必須", "一定要", "always"), or invariant ("roundtrip", "idempotent") language in conversation and wants to suggest writing a constraint.

How it works

  1. Workflow
  2. Proactive Suggestion
  3. Property Patterns
Original SKILL.md headings · 31 lines, 173 words
SKILL.md preview
---
name: constraint-write
description: >-
  Use when the user asks to "/constraint-write", "write constraint",
  "define constraint", "幫我寫 constraint", "定義 constraint", or when
  the agent detects prohibition ("不能", "禁止", "must not"), obligation
  ("必須", "一定要", "always"), or invariant ("roundtrip", "idempotent")
  language in conversation and wants to suggest writing a constraint.
---

# Constraint Write

You are helping the user articulate and document constraints in structured
natural language. Constraints are the user's laws; deterministic tools are
the judges.

## Workflow

1. If the user describes a rule, use dialogue to clarify the constraint
   one section at a time: Given → When → Then → Unless → Examples → Properties
2. Read `references/constraint-format.md` for the canonical format
3. Scan existing `constraints/*.md` to determine the next available
   RULE_ID number for the domain
4. Each constraint **must** have at least 3 rows in the Examples table —
   no examples = no enforcement
5. Write the constraint to `constraints/<RULE_ID>-<slug>.md`
6. Create the `constraints/` directory if it doesn't exist
7. After writing, suggest running `/constraint-generate` to produce test artifacts from the new constraint.

## Proactive Suggestion

When the user uses prohibition ("不能", "禁止", "must not"), obligation
("必須", "一定要", "always"), or invariant ("roundtrip", "idempotent")
language in conversation, propose writing a constraint to capture that rule.

## Property Patterns

Consult `references/property-patterns.md` when helping the user write the
Properties section of a constraint.
Files in this package (4)
  • README.md 1 KB
  • SKILL.md 2 KB
  • references/constraint-format.md 7 KB
  • references/property-patterns.md 6 KB

Versions

The database has no other skills named constraint-write.

Database snapshot: 13.11.2026 · package version ec631699dea8 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100constraint-generate
    Use when the user asks to "/constraint-generate", "generate constraint tests", "generate constraint artifact", "產生 constraint 的 test", or "generate test from constraint". Reads constraints/*.md and produces deterministic test artifacts.
  • 90ecto-constraint-debug
    Debug Ecto constraint violations - trace triggers, check migrations; Use when seeing unique_constraint…
  • 90s4h-constraint
    Entry point for the constraint toolkit. Routes to the right constraint skill based on your situation. Use when you say 'constraint', 'given this limit', 'we can't do X', 'is this really fixed', 'use the limitation', 'minimum viable', 'how do we do this anyway', or want…
  • 90constraint-enforce
    Use when the user asks to "/constraint-enforce", "enforce constraints", "run constraint tests", "跑 constraint 驗證", or "run constraint enforcement". Runs the 4-layer deterministic enforcement pipeline on generated constraint artifacts.
  • 100constraint-design
    This skill should be used when the user asks to "add a constraint", "design a constraint", "write a harness rule", "choose enforcement type", "promote a constraint", "configure a verification slot", or needs guidance on the Constraints section of HARNESS.md.
  • 100constraint-bug-description
    Use when a builder-level constraint prevents the latest PyPI package version from reaching an AIPCC production index. Produces a concise, actionable Jira bug description with the repository line required by autofix tooling.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.