agentic-learning-framework 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/study/SKILL.md +107 -0
- package/.agents/skills/study/agents/assessor.md +52 -0
- package/.agents/skills/study/agents/memory.md +126 -0
- package/.agents/skills/study/agents/observer.md +28 -0
- package/.agents/skills/study/agents/planner.md +71 -0
- package/.agents/skills/study/agents/reporter.md +112 -0
- package/.agents/skills/study/agents/tutor.md +66 -0
- package/.agents/skills/study/references/lifecycle.md +104 -0
- package/.agents/skills/study/references/memory-format.md +149 -0
- package/.agents/skills/study/references/reports.md +166 -0
- package/.agents/skills/study/references/research.md +61 -0
- package/CHANGELOG.md +37 -0
- package/LICENSE +21 -0
- package/README.md +217 -2
- package/bin/agentic-learning-framework.mjs +79 -0
- package/docs/RELEASE.md +76 -0
- package/examples/demo/admin.html +38 -0
- package/examples/demo/records.md +135 -0
- package/examples/demo/report.html +77 -0
- package/lib/install.mjs +182 -0
- package/package.json +39 -4
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Goal and session lifecycle
|
|
2
|
+
|
|
3
|
+
The memory event record is the durable transition. Read the memory role first.
|
|
4
|
+
Do not mistake a report or a chat message for saved state.
|
|
5
|
+
|
|
6
|
+
## Create and resume
|
|
7
|
+
|
|
8
|
+
For `/study <topic>` (or an available alias), check goals by exact topic and
|
|
9
|
+
aliases. If a match exists, offer resume or a distinct new goal; never overwrite.
|
|
10
|
+
Generate a collision-checked UUID and readable alias. Save DRAFT and the next
|
|
11
|
+
unanswered onboarding question. Follow the planner until all decisions,
|
|
12
|
+
diagnostic/decline, approved curriculum and exit criteria are recorded. READY
|
|
13
|
+
needs a saved approval event. Incomplete `/start` resumes onboarding; it does
|
|
14
|
+
not start time. Create goal HTML at approval, or earlier as a labelled draft
|
|
15
|
+
when requested.
|
|
16
|
+
|
|
17
|
+
Goal states: DRAFT, READY, COMPLETED, PARTIAL_CLOSED, ARCHIVED. A session's
|
|
18
|
+
ACTIVE/CLOSED/NEEDS_RECONCILIATION state is independent. A READY goal can have
|
|
19
|
+
an active session. Completion needs exit evidence; archive preserves data.
|
|
20
|
+
|
|
21
|
+
## Start
|
|
22
|
+
|
|
23
|
+
1. Resolve explicit goal ID/unique alias or reliable chat binding. If ambiguous,
|
|
24
|
+
ask which goal. Retrieve goal, approved plan, latest event/checkpoint, due
|
|
25
|
+
reviews, relevant preferences and any consented global evidence.
|
|
26
|
+
Refresh and link the current goal/daily progress view even while waiting for
|
|
27
|
+
today's hours or time confirmation; label the proposed session “not started”.
|
|
28
|
+
If onboarding is incomplete, show a DRAFT report and resume its next question.
|
|
29
|
+
Do not manufacture a timed session to provide a progress view.
|
|
30
|
+
2. If already ACTIVE, preserve session ID, start and daily plan. Encourage the
|
|
31
|
+
learner, show progress and provisional elapsed time, refresh HTML, and offer
|
|
32
|
+
to continue or stop. Do not create another session or require a fresh budget
|
|
33
|
+
for this duplicate start.
|
|
34
|
+
3. Otherwise ask today's available study hours, even if typical hours are known.
|
|
35
|
+
Confirm local date/time using actual runtime clock and known timezone, or
|
|
36
|
+
accept a user-supplied time. “Two hours, start now” supplies both decisions.
|
|
37
|
+
If confirmation is needed, ask one question at a time. Never infer a precise
|
|
38
|
+
timestamp from the system's date alone. Without a clock, ask the learner.
|
|
39
|
+
4. Show due revision and an achievable daily plan with minute totals. Check
|
|
40
|
+
other goals' active intervals/budgets. Explain overlaps; do not silently
|
|
41
|
+
double count or reallocate hours.
|
|
42
|
+
5. Save one start event containing session UUID, timestamp provenance, today's
|
|
43
|
+
budget, daily plan and resume checkpoint. Read it back, generate goal/daily
|
|
44
|
+
HTML (and a current global view when possible), and link exact paths.
|
|
45
|
+
6. Resume the unresolved question or next objective, one question at a time.
|
|
46
|
+
|
|
47
|
+
## Stop
|
|
48
|
+
|
|
49
|
+
Offer short retrieval/reflection only if the learner has not asked to stop
|
|
50
|
+
immediately. Capture runtime end timestamp at the stop request so optional
|
|
51
|
+
reflection does not silently extend study. Use a later end only if requested.
|
|
52
|
+
Validate end against start, timezone, current time and supplied adjustments.
|
|
53
|
+
|
|
54
|
+
Save one stop event with the stored start reference, end, calculated elapsed
|
|
55
|
+
minutes, optional breaks/self-reported active time, checkpoint, remaining
|
|
56
|
+
objectives, skips and review changes. Read it back; refresh goal, daily and
|
|
57
|
+
global HTML and provide links. Repeated stop for a closed session returns the
|
|
58
|
+
existing closing record/report without adding duration. No active session means
|
|
59
|
+
no invented start; show the latest report or ask for missing time.
|
|
60
|
+
|
|
61
|
+
An unexpectedly long, overnight or forgotten active session is unresolved:
|
|
62
|
+
ask when the learner stopped and record reconciliation. An intentional session
|
|
63
|
+
across midnight is valid; midnight alone does not imply an error. Do not turn
|
|
64
|
+
an unresolved interval into an asserted overnight study total. `/report` can
|
|
65
|
+
show uncertain/provisional status without closing it.
|
|
66
|
+
|
|
67
|
+
## Time accounting
|
|
68
|
+
|
|
69
|
+
- Store ISO 8601 timestamps with UTC offset plus IANA timezone and source
|
|
70
|
+
(`runtime` or `learner`). Confirm ambiguous dates or DST times; reject end
|
|
71
|
+
before start and unsupported future actual timestamps. Future plans are fine.
|
|
72
|
+
- Elapsed minutes = actual end instant minus start instant. Show the arithmetic
|
|
73
|
+
and verify using an available native calculator, or careful independent
|
|
74
|
+
recomputation. Never generate or execute a calculation program for the skill.
|
|
75
|
+
If reliable calculation is unavailable, mark duration pending verification.
|
|
76
|
+
- 09:00–12:30 in the same offset is 210 minutes. 23:30–00:30 on the next date
|
|
77
|
+
is 60 minutes. With a 30-minute reported break, 210 elapsed becomes 180
|
|
78
|
+
break-adjusted minutes; active effort is unknown unless self-reported.
|
|
79
|
+
- Keep planned, elapsed, break-adjusted and self-reported active effort separate.
|
|
80
|
+
Time in a chat window is never verified active learning. Unknown is not zero.
|
|
81
|
+
- Break duration is unknown until the learner explicitly supplies an amount or
|
|
82
|
+
confirms zero. “No reported breaks” or “breaks not recorded” does not confirm
|
|
83
|
+
zero: keep break minutes and break-adjusted minutes unknown. Do not relabel
|
|
84
|
+
raw elapsed as “reported-break-adjusted” by silently subtracting zero. If any
|
|
85
|
+
included session has unknown breaks, the complete aggregate adjustment is
|
|
86
|
+
unknown; a known subset may be shown separately and clearly labelled.
|
|
87
|
+
- Split cross-midnight intervals at local midnight for daily reports. Weekly
|
|
88
|
+
reports use local Monday–Sunday, unless another week was selected. Use actual
|
|
89
|
+
offset transitions for DST, not an assumed 24-hour day.
|
|
90
|
+
- Per-goal totals sum that goal's non-duplicate resolved sessions. Global elapsed
|
|
91
|
+
uses the union of resolved intervals: 09:00–11:00 plus 10:00–12:00 is 180
|
|
92
|
+
minutes with a 60-minute overlap, while each goal has 120 elapsed minutes.
|
|
93
|
+
Global break-adjusted/active totals are unknown unless allocation can be
|
|
94
|
+
reconciled. Display active sessions provisionally with an as-of timestamp;
|
|
95
|
+
never persist a stop merely to make a report.
|
|
96
|
+
|
|
97
|
+
## Other commands
|
|
98
|
+
|
|
99
|
+
`/report` defaults to a reliable current goal, otherwise global. It works in
|
|
100
|
+
DRAFT, ACTIVE and stopped states; missing data stays explicit. `/goals` switches
|
|
101
|
+
only this chat's binding. `/revise` records recall evidence without requiring a
|
|
102
|
+
timed session. Capture useful untimed Q&A but leave session ID/time null.
|
|
103
|
+
Natural language has the same transitions. Closing a goal is separate from
|
|
104
|
+
stopping today's session. See reporter for audience rules.
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Markdown memory format, version 1
|
|
2
|
+
|
|
3
|
+
Create these files as needed; never ship personal data inside the skill.
|
|
4
|
+
All IDs are collision-checked UUIDs. Folder names use IDs, never topic names,
|
|
5
|
+
learner text, arbitrary paths or untrusted filenames. Resolve every read/write
|
|
6
|
+
inside the chosen root; reject `..`, absolute path injections and symlink escapes.
|
|
7
|
+
The user can explicitly select a different root through configuration.
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
.learning/
|
|
11
|
+
learner.md
|
|
12
|
+
profile-revisions/<revision-id>.md
|
|
13
|
+
bindings/<binding-id>.md
|
|
14
|
+
goals/<goal-id>/
|
|
15
|
+
goal.md
|
|
16
|
+
specifications/<revision-id>.md
|
|
17
|
+
plans/<plan-id>.md
|
|
18
|
+
materials/<material-id>.md
|
|
19
|
+
events/<event-id>.md
|
|
20
|
+
report-records/<report-id>.md
|
|
21
|
+
reports/
|
|
22
|
+
index.html
|
|
23
|
+
<goal-id>/index.html
|
|
24
|
+
<goal-id>/daily/YYYY-MM-DD.html
|
|
25
|
+
<goal-id>/weekly/YYYY-Www.html
|
|
26
|
+
admin/<audience-id>/index.html
|
|
27
|
+
admin/<audience-id>/daily/YYYY-MM-DD.html
|
|
28
|
+
admin/<audience-id>/weekly/YYYY-Www.html
|
|
29
|
+
snapshots/<report-id>.html
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`goal.md` is the immutable initial specification, not a mutable current-state
|
|
33
|
+
file. New specification revisions reference it and their predecessor. A complete
|
|
34
|
+
event activates an approved revision/plan. Missing mutable indexes cannot lose
|
|
35
|
+
a goal. Reports are derived and can be regenerated. Each HTML is self-contained;
|
|
36
|
+
cross-report navigation is optional local linking.
|
|
37
|
+
|
|
38
|
+
## Learner, goal, plan and binding records
|
|
39
|
+
|
|
40
|
+
`learner.md`: schema version, learner UUID or pseudonym, selected data/report
|
|
41
|
+
roots, timezone, language, capabilities actually observed, profile revision ID,
|
|
42
|
+
global path or none, reuse consent, full-transcript consent, authorised audience
|
|
43
|
+
IDs/allowed fields or none. Changes go in profile-revisions and reference the
|
|
44
|
+
prior revision; conflicting profile revisions need reconciliation.
|
|
45
|
+
|
|
46
|
+
On initial creation use `profile_revision_id: null`. A learner UUID is not a
|
|
47
|
+
profile revision UUID. Set a non-null revision pointer only when the matching
|
|
48
|
+
`profile-revisions/<revision-id>.md` record has actually been written and read
|
|
49
|
+
back; its frontmatter `id` must match the pointer. Apply the same existence/ID
|
|
50
|
+
check to every non-null specification, plan, event and evidence reference.
|
|
51
|
+
The revision read-back must occur before a separate pointer-update tool call;
|
|
52
|
+
reading both after one batched creation/update does not satisfy this ordering.
|
|
53
|
+
|
|
54
|
+
`goal.md`/specification: schema version, record ID, goal UUID, alias, created
|
|
55
|
+
timestamp/source, previous revision or none, state at creation, topic/boundaries,
|
|
56
|
+
purpose, measurable outcome/depth, baseline/diagnostic evidence, total minutes,
|
|
57
|
+
daily availability, deadline or none, plan/material references, constraints,
|
|
58
|
+
language, assessment choice, exit criteria, answered/unanswered onboarding
|
|
59
|
+
fields and next question. Use `unknown`/`none` explicitly; do not invent answers.
|
|
60
|
+
|
|
61
|
+
`plans/<plan-id>.md`: schema version, plan/goal IDs, previous plan ID or none,
|
|
62
|
+
created time, change reason, estimated-minute range and sum, assumptions,
|
|
63
|
+
approval event ID or pending. Objective table: objective/concept IDs, measurable
|
|
64
|
+
outcome, dependency IDs, priority, depth, estimate, rubric, source references.
|
|
65
|
+
Keep supplied syllabi unchanged in materials and link negotiated adaptations.
|
|
66
|
+
Approval event, not a self-labelled plan, determines the active curriculum.
|
|
67
|
+
|
|
68
|
+
Binding: binding UUID, verified host chat ID, workspace/goal IDs, writer ID,
|
|
69
|
+
timestamp, predecessor and handoff reference. Never invent a stable host chat
|
|
70
|
+
ID. Without one, resolve the goal conversationally; no binding file is required.
|
|
71
|
+
|
|
72
|
+
Consented global summary: schema version, stable entry UUID, learner UUID,
|
|
73
|
+
created_at (offset-aware), timezone/time_source, origin workspace/goal/event
|
|
74
|
+
IDs, consent-event ID, summary kind (stated preference or observed evidence),
|
|
75
|
+
confidence and scoped summary text. Missing legacy owner/time fields remain
|
|
76
|
+
unknown and disclosed; do not backfill invented dates or identity. A new
|
|
77
|
+
correction is an immutable record referencing its predecessor, not changed
|
|
78
|
+
content silently saved under an existing record ID.
|
|
79
|
+
|
|
80
|
+
## Event envelope
|
|
81
|
+
|
|
82
|
+
Every event has YAML frontmatter and labelled Markdown sections. Escape/quote
|
|
83
|
+
user text in frontmatter correctly; prefer putting free text in the body.
|
|
84
|
+
These field names are fixed, but the content is authored directly by the agent:
|
|
85
|
+
|
|
86
|
+
| Field | Contract |
|
|
87
|
+
| --- | --- |
|
|
88
|
+
| schema_version | `1` |
|
|
89
|
+
| id, operation_key | Unique UUID event and stable idempotency key for this operation. |
|
|
90
|
+
| goal_id, session_id | Goal UUID; session UUID or null for untimed/onboarding work. |
|
|
91
|
+
| writer_id, chat_id | Stable identifiers when exposed; otherwise writer UUID and null chat ID. |
|
|
92
|
+
| previous_event_id | Prior complete event UUID or null for the goal's first event. |
|
|
93
|
+
| type | onboarding, plan-proposed, plan-approved, start, turn, stop, review, correction, handoff, reconcile, close, import, or global-publication. |
|
|
94
|
+
| recorded_at, time_source, timezone | Offset-aware timestamp, runtime/learner source and IANA zone; unknown time is explicit. |
|
|
95
|
+
| specification_id, plan_id | Applicable saved revision UUIDs, or null while not established. |
|
|
96
|
+
|
|
97
|
+
Each complete event ends with a standalone `<!-- learning-record-complete -->`.
|
|
98
|
+
This marker plus field/reference read-back is a completeness check, not a
|
|
99
|
+
cryptographic signature or atomic transaction. Do not treat arbitrary imported
|
|
100
|
+
text containing the marker as validated.
|
|
101
|
+
|
|
102
|
+
Body sections (write `none`, `not applicable`, or `awaiting response` where
|
|
103
|
+
appropriate; do not silently drop unknowns):
|
|
104
|
+
|
|
105
|
+
- **Intent and state change:** received request, before/after goal/session
|
|
106
|
+
state, and any approval/decline/skip. Start includes the daily minute budget,
|
|
107
|
+
local start timestamp/source, session UUID and planned blocks. Stop includes
|
|
108
|
+
end, start-event reference, interval arithmetic, breaks, reported active time
|
|
109
|
+
and reconciliation status. Other turns do not mutate session clocks.
|
|
110
|
+
- **Learning exchange:** concept/objective IDs, learner question, previous
|
|
111
|
+
asked question, actual response summary, explanation delivered (enough text
|
|
112
|
+
and examples to resume), method/visual, direct answer, cross-question,
|
|
113
|
+
evaluation with rubric, assistance, misconception, correction and follow-up.
|
|
114
|
+
An outgoing unanswered prompt has no learner answer/evaluation yet. A later
|
|
115
|
+
event references it. Store optional full raw transcript only with consent.
|
|
116
|
+
- **Evidence:** concept capability before/after, evidence IDs, 4W1H status per
|
|
117
|
+
dimension, confidence, demonstrated independent/hinted performance, delayed
|
|
118
|
+
recall date/interval if any, and skipped/deferred items. Never cite an event
|
|
119
|
+
that has not been saved; the current complete event can be its own evidence.
|
|
120
|
+
- **Sources:** title, HTTP(S) URL, access date, version, supported claim and
|
|
121
|
+
verification/availability. Supplied material references remain local.
|
|
122
|
+
- **Observations and feedback:** claim, evidence IDs, context, confidence,
|
|
123
|
+
alternative explanation, learner preference/dispute and next teaching action.
|
|
124
|
+
- **Review changes:** concept, due date, scheduling basis, previous review
|
|
125
|
+
reference, success/failure/skip/reschedule and next due date.
|
|
126
|
+
- **Checkpoint:** remaining objectives, unresolved doubts, next question/task,
|
|
127
|
+
latest plan/specification, pending writes/conflicts and next action.
|
|
128
|
+
|
|
129
|
+
## Deriving current state
|
|
130
|
+
|
|
131
|
+
Follow complete causal chains from the initial goal; do not rely on alphabetical
|
|
132
|
+
UUID order or timestamp alone. A normal goal has one head. Approved plans and
|
|
133
|
+
specifications change only at explicit transition events. Session state comes
|
|
134
|
+
from its start and first effective stop/reconciliation. Assessments, review due
|
|
135
|
+
dates and observations reference their evidence events. A later correction
|
|
136
|
+
changes interpretation without pretending the earlier event never existed.
|
|
137
|
+
|
|
138
|
+
Two heads from a common predecessor or conflicting operation keys require the
|
|
139
|
+
memory role's reconciliation. Until resolved, show the last common checkpoint
|
|
140
|
+
and list competing records; do not guess time or mastery. Missing references or
|
|
141
|
+
an incomplete event are visible pending repairs, never evidence of completion.
|
|
142
|
+
|
|
143
|
+
Report metadata: report UUID, audience/scope, generated/as-of time, exact input
|
|
144
|
+
event-head and profile/plan IDs, completeness/conflicts, immutable snapshot path,
|
|
145
|
+
canonical path if copied successfully, and known omissions. Record write/read
|
|
146
|
+
verification before linking. Reports must never be a source of invented events.
|
|
147
|
+
Global report metadata includes the complete included goal-ID-to-event-head
|
|
148
|
+
map and any unreadable/omitted goal IDs. One selected goal's head is insufficient
|
|
149
|
+
provenance for a workspace-global total.
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# HTML report contract
|
|
2
|
+
|
|
3
|
+
Use semantic HTML with embedded CSS, no executable content. A report is readable
|
|
4
|
+
offline from a local file with no server. Generate the final page directly;
|
|
5
|
+
the skill does not contain or create a report-generation script.
|
|
6
|
+
|
|
7
|
+
## Reading experience
|
|
8
|
+
|
|
9
|
+
Design a professional learning dashboard, not a stack of raw record sections.
|
|
10
|
+
Within the first screen the learner should understand their goal, their current
|
|
11
|
+
evidence, what still needs practice, and the next useful action. Use short plain
|
|
12
|
+
sentences and clear labels. Keep UUIDs, operation keys, source heads, accounting
|
|
13
|
+
derivations and host limitations in a closed “Report details” disclosure; show
|
|
14
|
+
an integrity warning immediately only if it affects the interpretation.
|
|
15
|
+
|
|
16
|
+
Preferred reading order, adapted to the requested view:
|
|
17
|
+
|
|
18
|
+
1. Compact header: goal title, human-readable date/range, audience and session
|
|
19
|
+
status. Distinguish “session ended” from “goal completed”.
|
|
20
|
+
2. Three or four decision-useful metrics, each with a specific label and a short
|
|
21
|
+
explanation. Prefer evidenced capability and next action over a wall of
|
|
22
|
+
duration cards. Unknowns remain labelled; do not turn missing data into zero.
|
|
23
|
+
3. Main content and a next-step card: a readable curriculum/evidence list beside
|
|
24
|
+
one prominent resume task. Clearly separate introduced, explained with help,
|
|
25
|
+
applied independently, skipped and not assessed. State assistance in words.
|
|
26
|
+
4. Relevant activity/time, reviews and weekly changes, then expandable Q&A,
|
|
27
|
+
sources and technical provenance. Details stay available without dominating
|
|
28
|
+
the overview. Avoid repeating the same facts in every section.
|
|
29
|
+
|
|
30
|
+
Use short lists/cards for small sets; reserve tables for genuine comparisons.
|
|
31
|
+
Do not combine a goal, daily, weekly and global view into identical giant pages.
|
|
32
|
+
Tailor each canonical view to its question and link existing related views.
|
|
33
|
+
If a self-contained combined preview is useful, label its sections and provide
|
|
34
|
+
working anchor navigation. Every link or apparent control must do what it says:
|
|
35
|
+
no fake filters, export buttons, profile menus, date pickers or progress controls.
|
|
36
|
+
Use native links and details/summary; no JavaScript is required.
|
|
37
|
+
|
|
38
|
+
Show progress as a count against a stated rubric, not a decorative mastery
|
|
39
|
+
percentage. A four-objective status strip can show one independently applied,
|
|
40
|
+
one explained, one skipped and one not assessed, with words as well as colour.
|
|
41
|
+
Never use elapsed/budget as learning completion. Do not graph unknown duration
|
|
42
|
+
as a zero-height day; distinguish untimed work from no recorded activity.
|
|
43
|
+
|
|
44
|
+
Keep observations tied to evidence and confidence inside a relevant disclosure.
|
|
45
|
+
Keep assessment assistance, rubrics, 4W1H, delayed recall and citations available
|
|
46
|
+
near their summaries. Sources retain title, URL and access date. Expandable
|
|
47
|
+
content follows the same audience rules as visible content: administrator
|
|
48
|
+
pages must omit unapproved data entirely. Every demo has a compact fictional-
|
|
49
|
+
data notice. A learner's real report must not use demo facts or dates.
|
|
50
|
+
|
|
51
|
+
## Visual system
|
|
52
|
+
|
|
53
|
+
Default to a calm, polished workspace: pale neutral canvas, white surfaces,
|
|
54
|
+
dark navy text, one indigo accent, restrained green for evidenced success and
|
|
55
|
+
amber for an open practice item. Use a consistent system sans-serif stack;
|
|
56
|
+
no downloaded fonts, gradients behind long text, emoji decoration or oversized
|
|
57
|
+
marketing headlines. Aim for a dashboard, not a promotional landing page.
|
|
58
|
+
|
|
59
|
+
Use a compact left navigation on wide screens with real section/view links,
|
|
60
|
+
and a simple wrapping or horizontally scrollable navigation on narrow screens.
|
|
61
|
+
Keep the main content around 72rem wide with 24–40px outer padding, 20–24px
|
|
62
|
+
section gaps, 16–24px card padding, subtle 1px borders and 10–14px corners.
|
|
63
|
+
Use a clear type hierarchy: 28–36px title, 18–22px section headings, 15–16px
|
|
64
|
+
body, 12–13px supporting labels. Avoid tiny low-contrast paragraphs.
|
|
65
|
+
|
|
66
|
+
These CSS tokens are a starting point, not an extra asset dependency. Embed
|
|
67
|
+
the chosen CSS in every generated report; adapt it to the content and audience:
|
|
68
|
+
|
|
69
|
+
```css
|
|
70
|
+
:root {
|
|
71
|
+
color-scheme: light;
|
|
72
|
+
--canvas: #f5f7fb; --surface: #fff; --ink: #17243b;
|
|
73
|
+
--muted: #53627a; --line: #e0e6ef; --accent: #3455cf;
|
|
74
|
+
--accent-soft: #edf1ff; --success: #17613e; --success-soft: #eaf5ee;
|
|
75
|
+
--warning: #88510b; --warning-soft: #fff4df;
|
|
76
|
+
}
|
|
77
|
+
* { box-sizing: border-box; }
|
|
78
|
+
body { margin: 0; background: var(--canvas); color: var(--ink);
|
|
79
|
+
font: 15px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
|
|
80
|
+
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
|
|
81
|
+
main { min-width: 0; width: 100%; max-width: 1200px; padding: 32px; margin-inline: auto; }
|
|
82
|
+
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
|
|
83
|
+
.columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 20px; }
|
|
84
|
+
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line);
|
|
85
|
+
border-radius: 12px; padding: 24px; }
|
|
86
|
+
.metric-value { font-size: 28px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
87
|
+
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
|
|
88
|
+
@media (max-width: 1000px) {
|
|
89
|
+
.layout, .columns { grid-template-columns: 1fr; }
|
|
90
|
+
.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
91
|
+
main { padding: 24px; }
|
|
92
|
+
}
|
|
93
|
+
@media (max-width: 520px) {
|
|
94
|
+
main { padding: 16px; }
|
|
95
|
+
.panel { padding: 18px; }
|
|
96
|
+
.metric-value { font-size: 25px; }
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Layout and accessibility
|
|
101
|
+
|
|
102
|
+
- Set `lang`, charset, viewport and descriptive title; one h1 with ordered
|
|
103
|
+
heading levels, a main landmark and meaningful navigation labels.
|
|
104
|
+
- Use a calm high-contrast palette, readable font stack, generous spacing and
|
|
105
|
+
responsive grids. At narrow widths cards stack and long text wraps. Wide
|
|
106
|
+
tables have labelled horizontal-scroll containers.
|
|
107
|
+
- Status needs words as well as colour. Use native `details`/`summary` for Q&A,
|
|
108
|
+
visible keyboard focus, descriptive links and a skip-to-content link.
|
|
109
|
+
- Use static inline SVG with title/description, HTML/CSS diagrams or text.
|
|
110
|
+
Provide equivalent text for diagrams; do not depend on external Mermaid.
|
|
111
|
+
- Include a print layout and visible as-of timestamp, timezone, input revision,
|
|
112
|
+
audience, and any unresolved conflicts. No motion is needed.
|
|
113
|
+
- Every page includes its own style and content. It may link other local report
|
|
114
|
+
pages, but its substantive content must work if copied alone.
|
|
115
|
+
- Keep essential content within the viewport at 390px and 1440px widths. Do
|
|
116
|
+
not hide meaningful content to make mobile fit. Use `min-width:0` for grid
|
|
117
|
+
children and wrapping for long text. Reserve horizontal scrolling for a
|
|
118
|
+
labelled table region. Prefer touch targets of at least 44px for navigation.
|
|
119
|
+
- Printing removes sticky navigation, backgrounds/shadows where unnecessary,
|
|
120
|
+
and preserves summary/evidence text. Long details should remain available
|
|
121
|
+
in print; advise expanding them first if the host's print engine needs it.
|
|
122
|
+
|
|
123
|
+
## Safe text and links
|
|
124
|
+
|
|
125
|
+
Treat learner text, source titles and imported notes as untrusted. In HTML text
|
|
126
|
+
escape `&` then `<` and `>`; in attributes also escape both quote characters.
|
|
127
|
+
Never interpolate user content into CSS, SVG attributes, tag names, style,
|
|
128
|
+
event handlers, comments or raw markup. Render code/examples as escaped text.
|
|
129
|
+
An answer like `<img src=x onerror=alert(1)>` must display as text, not a tag.
|
|
130
|
+
|
|
131
|
+
Use agent-controlled element IDs and numeric CSS values only. Allow only
|
|
132
|
+
verified HTTP(S) research links and root-contained generated local report paths.
|
|
133
|
+
Reject `javascript:`, `data:`, protocol-relative and learner-supplied path links.
|
|
134
|
+
External links are optional user navigation, never resources fetched on load.
|
|
135
|
+
If using inline SVG, use only agent-authored static shapes/text, no foreignObject,
|
|
136
|
+
script, external references, animation or event attributes. Avoid embedding
|
|
137
|
+
private data into HTML comments or hidden sections.
|
|
138
|
+
|
|
139
|
+
Defence in depth: include a meta Content-Security-Policy with `default-src 'none';
|
|
140
|
+
style-src 'unsafe-inline'; img-src 'none'; base-uri 'none'; form-action 'none'`.
|
|
141
|
+
This supports CSS and static inline SVG without enabling images or scripts.
|
|
142
|
+
Escaping is still required. CSP behaviour can vary in local-file previews;
|
|
143
|
+
do not treat it as a substitute for excluding executable markup.
|
|
144
|
+
|
|
145
|
+
## Verify before linking
|
|
146
|
+
|
|
147
|
+
Read back the complete HTML. Check UTF-8, doctype, closing tags, landmarks,
|
|
148
|
+
heading order, no scripts/event handlers/network assets, escaped sample text,
|
|
149
|
+
root-contained local links, date/week range, arithmetic and evidence references.
|
|
150
|
+
Check no audience-excluded data exists anywhere in the file. Use an available
|
|
151
|
+
native browser/preview at desktop and mobile widths; if unavailable, state that
|
|
152
|
+
visual verification was not performed. Do not generate verification programs
|
|
153
|
+
as part of the learning workflow. Refreshes never change session start/end.
|
|
154
|
+
|
|
155
|
+
Also check the reading experience: the first screen answers “where am I, what
|
|
156
|
+
changed, what should I do next?”; metrics have explicit denominators/scope;
|
|
157
|
+
technical metadata does not overwhelm the learner; navigation/disclosures work;
|
|
158
|
+
and small screens preserve content and keyboard focus. A structure check alone
|
|
159
|
+
does not establish visual quality. A redesign of a historical report uses a new
|
|
160
|
+
preview/snapshot path and keeps its original evidence/as-of date; do not rewrite
|
|
161
|
+
an immutable published snapshot or imply that restyling changed learning state.
|
|
162
|
+
|
|
163
|
+
For a global view, check that every workspace goal is included or explicitly
|
|
164
|
+
listed as omitted, each displayed goal has an existing navigation target, and
|
|
165
|
+
the recorded full head map matches the enumerated sources. A page about only
|
|
166
|
+
the current goal must not be titled a global dashboard or give workspace totals.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Research and provenance
|
|
2
|
+
|
|
3
|
+
Reviewed 29 November 2026. These are design references, not required installed
|
|
4
|
+
dependencies. The instructions and HTML in this repository are original. No
|
|
5
|
+
third-party skill text, code, templates or scripts were copied or installed.
|
|
6
|
+
Popularity alone is not evidence of teaching quality; no “best skill” ranking
|
|
7
|
+
or scientific outcome guarantee is claimed.
|
|
8
|
+
|
|
9
|
+
## Host compatibility
|
|
10
|
+
|
|
11
|
+
- [Antigravity skills](https://antigravity.google/docs/skills): current docs
|
|
12
|
+
describe workspace `.agents/skills/<name>/SKILL.md`, global
|
|
13
|
+
`~/.gemini/config/skills/<name>/`, optional scripts, and skill invocation.
|
|
14
|
+
Legacy `.agent/skills` compatibility is documented. This package uses the
|
|
15
|
+
current workspace path. Installed Antigravity/version was not available for
|
|
16
|
+
an end-to-end registration test; check that installation's Customizations UI.
|
|
17
|
+
- [Antigravity native /learn](https://antigravity.google/docs/commands/learn/):
|
|
18
|
+
this command captures agent knowledge into customizations. It collides with
|
|
19
|
+
the requested learning-goal name; use `/study` and natural-language aliases.
|
|
20
|
+
No `/learn`, `/start` or `/stop` registration is installed by this package.
|
|
21
|
+
- [Agent Skills specification](https://agentskills.io/specification): portable
|
|
22
|
+
SKILL.md format. Other hosts' discovery/invocation details still need checking.
|
|
23
|
+
|
|
24
|
+
## External learning-skill review
|
|
25
|
+
|
|
26
|
+
The [skills.sh directory](https://skills.sh/) and these source repositories were
|
|
27
|
+
inspected for relevant designs. This review does not establish that any one
|
|
28
|
+
skill meets all requirements or is appropriate to install unchanged.
|
|
29
|
+
|
|
30
|
+
| Source | Relevant idea reviewed | License status at review | Decision |
|
|
31
|
+
| --- | --- | --- | --- |
|
|
32
|
+
| [Jane Street socratic-tutor](https://github.com/janestreet/agent_skills/tree/master/socratic-tutor) | Diagnostic, one-question dialogue, review and final assessment. | [MIT license file inspected](https://github.com/janestreet/agent_skills/blob/master/LICENSE.md). | Write original, flexible tutoring instructions; permit direct answers and skipping. |
|
|
33
|
+
| [Agent Tutor](https://github.com/Bhala-Srinivash/agent-tutor-skill) | Teaching loop and concept-level evidence. | [MIT license file inspected](https://github.com/Bhala-Srinivash/agent-tutor-skill/blob/main/LICENSE). | Use original evidence rubrics. Do not copy its command name, fixed learning types or algorithm claims. |
|
|
34
|
+
| [Learning companion](https://github.com/cheahhl814/lf-skill) | Teach-back and staged learning checkpoints. | Repository declares MIT; direct LICENSE retrieval failed. | No reuse/installation; use independently authored universal guidance. |
|
|
35
|
+
|
|
36
|
+
The combined design is a self-contained orchestrator with planner, tutor,
|
|
37
|
+
assessor, observer, memory and reporter role instructions. It does not depend
|
|
38
|
+
on another skill being installed or on another model being called.
|
|
39
|
+
|
|
40
|
+
## Learning research
|
|
41
|
+
|
|
42
|
+
- [Carpenter, Pan & Butler (2022), The science of effective learning with spacing
|
|
43
|
+
and retrieval practice](https://www.nature.com/articles/s44159-022-00089-1):
|
|
44
|
+
publisher search abstract was accessible; full text retrieval was not.
|
|
45
|
+
Supports including spacing and retrieval as learning strategies, not a
|
|
46
|
+
universal fixed schedule or certainty of outcomes for every learner.
|
|
47
|
+
- [Kang et al. (2014), Retrieval practice over the long term](https://pubmed.ncbi.nlm.nih.gov/24744260/):
|
|
48
|
+
primary study abstract on expanding vs equal intervals. Schedule details
|
|
49
|
+
should depend on the task and desired retention interval.
|
|
50
|
+
- [Agarwal, researcher guidance on spacing](https://www.retrievalpractice.org/strategies/optimal-spacing):
|
|
51
|
+
practical guidance to distribute opportunities flexibly. The skill's
|
|
52
|
+
1/3/7/14/30-day schedule is explicitly a configurable heuristic.
|
|
53
|
+
|
|
54
|
+
The brief's [Teaching the science of learning](https://pmc.ncbi.nlm.nih.gov/articles/PMC5780548/)
|
|
55
|
+
page was blocked by a browser check during this review; no full-text claims are
|
|
56
|
+
attributed to it. Research is checked again during actual subject teaching.
|
|
57
|
+
|
|
58
|
+
Worked examples, fading support, self-explanation, interleaving and visuals are
|
|
59
|
+
teaching options selected by context and observed response. Do not represent
|
|
60
|
+
all design choices as separately validated by the above papers. 4W1H is an
|
|
61
|
+
organising framework, not a diagnostic instrument or validated mastery score.
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.1 — behavioural QA fixes
|
|
4
|
+
|
|
5
|
+
- Redesign learner and administrator report previews with a consistent
|
|
6
|
+
dashboard, clear next action, readable learning path/activity, responsive
|
|
7
|
+
navigation and progressively disclosed evidence. Include the visual system
|
|
8
|
+
in installed Markdown guidance so future agent-authored reports follow it.
|
|
9
|
+
|
|
10
|
+
- Keep new profile revision pointers null until a real revision is verified;
|
|
11
|
+
activate revisions/plans only after separate read-back.
|
|
12
|
+
- Ask neutral outcome questions without assuming future internship dates.
|
|
13
|
+
- Preserve unknown break measurements and incomplete adjusted totals.
|
|
14
|
+
- Enumerate every workspace goal for global reports, record all source heads,
|
|
15
|
+
and merge overlapping elapsed intervals instead of trusting chat context.
|
|
16
|
+
- Maintain separate per-goal canonical report paths and checked global links.
|
|
17
|
+
- Permit direct host filesystem utilities when dedicated read/copy tools are
|
|
18
|
+
unavailable, while keeping the installed skill free of helper/runtime code.
|
|
19
|
+
- Include learner/time/consent provenance on new global summaries; disclose
|
|
20
|
+
missing legacy metadata rather than inventing it.
|
|
21
|
+
- Expanded isolated fictional lifecycle, privacy, recovery and time-accounting
|
|
22
|
+
validation. Real human retention and browser execution are not implied.
|
|
23
|
+
|
|
24
|
+
## 0.1.0 — initial release candidate
|
|
25
|
+
|
|
26
|
+
Prepared 29 November 2026.
|
|
27
|
+
|
|
28
|
+
- Script-free study orchestrator with planner, tutor, assessor, observer,
|
|
29
|
+
memory and reporting role instructions.
|
|
30
|
+
- Goal onboarding, hour-based plans, adaptive Q&A, 4W1H checks, independent
|
|
31
|
+
assessments, revision and durable Markdown checkpoints.
|
|
32
|
+
- Offline learner and approved teacher/admin HTML report contracts and
|
|
33
|
+
fictional report previews.
|
|
34
|
+
- Dependency-free npm/npx installer with `init`, `--dry-run`, `doctor`, safe
|
|
35
|
+
repeat installation, custom-skill preservation and privacy exclusions.
|
|
36
|
+
- Explicit public package allowlist; no private learner state in releases.
|
|
37
|
+
- Node built-in tests for installer behaviour and source-preserving installs.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Agentic Learning contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|