Skip to content

Commit 1ef914a

Browse files
authored
Merge pull request #218 from layer5io/add-template
Add assessment template in agents.md
2 parents c3161ba + bfa039d commit 1ef914a

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,34 @@ categories:
159159
---
160160
```
161161

162+
### Assessment Frontmatter
163+
164+
Use short, stable IDs for assessments, questions, and options; question IDs must be unique within one assessment, and option IDs must be unique within one question. The Academy theme converts these author-facing IDs into deterministic UUIDs in generated JSON for Layer5 Cloud.
165+
166+
```yaml
167+
---
168+
title: "Assessment Example"
169+
id: "assessment-example"
170+
type: "test"
171+
layout: "test"
172+
passPercentage: 70
173+
maxAttempts: 3
174+
timeLimit: 30
175+
numberOfQuestions: 1
176+
questions:
177+
- id: "q1"
178+
text: "Layer5 Academy assessment files are authored in Markdown."
179+
type: "true-false"
180+
marks: 1
181+
options:
182+
- id: "true"
183+
text: "True"
184+
isCorrect: true
185+
- id: "false"
186+
text: "False"
187+
---
188+
```
189+
162190
### Content Best Practices
163191

164192
1. **Accuracy**: Ensure all technical information is current and correct

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,36 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.
101101

102102
---
103103

104+
## Assessment Authoring
105+
106+
Assessment files use the Academy test layout and define their questions in Markdown frontmatter. Use short, stable IDs for assessments, questions, and options; question IDs must be unique within one assessment, and option IDs must be unique within one question. The Academy theme converts these author-facing IDs into deterministic UUIDs in the generated JSON consumed by Layer5 Cloud.
107+
108+
```yaml
109+
---
110+
title: "Assessment Example"
111+
id: "assessment-example"
112+
type: "test"
113+
layout: "test"
114+
passPercentage: 70
115+
maxAttempts: 3
116+
timeLimit: 30
117+
numberOfQuestions: 1
118+
questions:
119+
- id: "q1"
120+
text: "Layer5 Academy assessment files are authored in Markdown."
121+
type: "true-false"
122+
marks: 1
123+
options:
124+
- id: "true"
125+
text: "True"
126+
isCorrect: true
127+
- id: "false"
128+
text: "False"
129+
---
130+
```
131+
132+
---
133+
104134
## Publishing
105135

106136
- **Official content**: Merged changes are automatically integrated into the central academy-build pipeline and deployed to the Academy platform.

0 commit comments

Comments
 (0)