5つの関心を Persona, Policy, Instruction, Knowledge, Output Contract に統一。 ディレクトリ、YAMLキー、ソースコード、テンプレート、テスト、ドキュメントを全面更新。
50 lines
997 B
Markdown
50 lines
997 B
Markdown
# {Policy Name}
|
|
|
|
{One-sentence purpose description.}
|
|
|
|
## Principles
|
|
|
|
| Principle | Criterion |
|
|
|-----------|-----------|
|
|
| {Principle 1} | {One-line judgment criterion} |
|
|
| {Principle 2} | {One-line judgment criterion} |
|
|
| {Principle 3} | {One-line judgment criterion} |
|
|
| {Principle 4} | {One-line judgment criterion} |
|
|
| {Principle 5} | {One-line judgment criterion} |
|
|
|
|
## {Rule Category 1}
|
|
|
|
{Category overview. 1-2 sentences}
|
|
|
|
### {Prohibited/Recommended Patterns}
|
|
|
|
| Pattern | Example | Problem |
|
|
|---------|---------|---------|
|
|
| {Pattern A} | `{code example}` | {Why it's a problem} |
|
|
| {Pattern B} | `{code example}` | {Why it's a problem} |
|
|
|
|
### {Correct Implementation}
|
|
|
|
```typescript
|
|
// NG
|
|
{bad example}
|
|
|
|
// OK
|
|
{good example}
|
|
```
|
|
|
|
### {Acceptable Cases}
|
|
|
|
- {Exception 1}
|
|
- {Exception 2}
|
|
|
|
## {Rule Category 2}
|
|
|
|
{Free form: Combine tables, code examples, and bullet points}
|
|
|
|
## Prohibited
|
|
|
|
- **{Prohibition 1}** - {Reason}
|
|
- **{Prohibition 2}** - {Reason}
|
|
- **{Prohibition 3}** - {Reason}
|