student-mac-and-recordings
Skill3 starsChanged 8 days agoMITView on GitHub
Work with a student's course folder on their Mac from a cloud agent - find it across two Macs and iCloud Drive, read and deliver files, bring the Mac's git clone of the notes up to date with a bundle when the device shell has no network and cannot delete, and turn class recordings (YouTube or m4a) into timestamped transcripts.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- bilingual-lecture-notesSkill
- course-notes-hubSkill
- exam-prep-materialsSkill
- pdf-notes-viewerSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Read with device_list_dir and device_stage_files.
- Distinctive: line 53
Write it to the project folder first (the commit tool copies only from there).
- Distinctive: line 81
Use it: where the class stopped, the order of topics, what was said but not written, announcements.
- Distinctive: line 109
Ask before a large download on the student's Mac (a 1.6 GB model, many cloud-only files).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
The student's Mac and class recordings
The notes are written in a cloud container, but the course lives on the student's Mac: handouts, handwriting, recordings, problem sets, and a git clone of the notes the student reads from. This skill covers reaching that folder, putting deliverables back, keeping the clone at the published commit, and getting a usable transcript out of a class recording.
When to use
| Situation | Do |
| the material for a request is only on the Mac ("강의노트 업데이트해" with new handouts in the folder) | find and stage it (references/mac-folders.md) |
| a PDF or answer sheet was (re)built | copy it to its place in the course folder, every time |
| the notes were published | sync the Mac's notes/ clone with a bundle (references/git-bundle-sync.md) |
"녹음 있어" + a link, or m4a files in 수업녹음/ | fetch and transcribe it (references/recordings.md) |
| a folder call fails, a name does not match, a git command says "File exists" | read the matching reference before retrying |
What you get
assets/sync/make-sync-bundle.sh: container side; a bundle of what the Mac lacks, with the list of changed files.assets/sync/apply-bundle-on-mac.sh: device side; fetch, check, write in place, move refs and index, rename stuck locks, report. Deletes nothing.assets/sync/test-sync.sh: runs both on throwaway repositories, understracewhen available.assets/recordings/fetch-youtube.sh: yt-dlp on the Mac (audio + Korean auto captions).assets/recordings/transcribe-mac.shandslice-wav.py: whisper.cpp on the Mac, ten-minute slices,-mc 0.assets/recordings/vtt-to-text.py: captions or slices to timestamped paragraphs, with warnings for gaps and repetition loops.assets/recordings/transcript-template.mdandtest-recordings.sh.
Steps: reaching the folder
- List the devices; take a path exactly as listed. If the laptop holding the
Desktop is offline, use the other Mac's iCloud path
~/Library/Mobile Documents/com~apple~CloudDocs/Desktop/<term>/<course>/. - Request access once, for the smallest folder that covers the task.
- Read with
device_list_diranddevice_stage_files; tell the student before staging many or large cloud-only files. - In the device shell, find Korean names by glob or by NFC comparison: the Mac stores them as NFD.
Steps: delivering a rebuilt file
- Write it to the project folder first (the commit tool copies only from there).
device_commit_filesto its place (references/mac-folders.mdhas the table), withexpectedMtimeMsfor a file that already exists.- Say in the report where it went.
Steps: syncing the notes clone after a publish
- Device shell:
git -C <notes clone> rev-parse HEAD. - Container:
make-sync-bundle.sh <repo> <that commit> /mnt/project-files/<course>/mac-sync/. device_commit_filesthe bundle (and the apply script, once) into the clone'sbuild/.- Device shell, from the clone's root:
bash build/apply-bundle-on-mac.sh build/sync-<id>.bundle. - Expect
status cleanandfsck ok. A "conflict" line means the student edited that file on the Mac: nothing was written; ask before going on. - Report the commit the Mac is now at.
Steps: a recording
- YouTube: Remote Control session on the course folder →
fetch-youtube.sh <URL>→ stop the session → stage the.ko.vtt. Audio files: Remote Control →transcribe-mac.sh <file.m4a>→ stage the.whisper.md. vtt-to-text.py --start <where class starts> …for captions.- Clean it with the class's handout or handwriting open; fill in the
template; save it as
lectures/YYYY-MM-DD-transcript.mdin the project folder. - Use it: where the class stopped, the order of topics, what was said but not written, announcements.
Rules
- Never
pull,checkout,mergeorresetin the device shell, and run every git command there with-c core.createObject=rename -c gc.auto=0 -c maintenance.auto=false. Without the first, git hard-links new packs and cannot unlink the temporary names; iCloud then dropped the real names and the clone pointed at missing objects. - Overwrite a Mac file only when it is exactly the version you expect
(the old commit's blob, or the
mtimeMsyou staged). Otherwise stop and ask. - Delete nothing on the Mac. Move aside (
build/sync-leftovers/,_to_delete/,.git/stale-*) and list the leftovers for the student once. - The student's own files are read-only: handwriting, recordings, problem sets.
- Deliverables go to the Mac after every rebuild, replacing the old file, and the report says so.
- Recordings: start with the route that works. The container cannot reach YouTube and the device shell has no network; CPU Whisper in the container was worse than YouTube's captions. Use Remote Control on the Mac.
- whisper.cpp:
-l ko -mc 0, ten-minute slices. The default context carry-over loops and drops the rest of the lecture. - Transcripts: fix only what the context makes certain;
[불명확]for the rest,(판서)for board pauses, equation numbers instead of invented formulas; check numbers and dates against the handout. - Recordings, captions and transcripts are class material: Mac and private project folder only, never a public repository.
- Ask before a large download on the student's Mac (a 1.6 GB model, many cloud-only files).
Self-check
- The path used is the one the device listed; the request for access was made once.
- Every rebuilt deliverable is on the Mac, in its folder, and the report says where.
- After a sync:
git log -1on the Mac shows the published commit,statusis clean,fsckpasses, no.lockfile is left under.git. - A transcript has its start time, progress, timeline, the "not in the
notes" list, and timestamps every paragraph; no
[불명확]was replaced by a guess. - Nothing from the course (audio, captions, transcripts, handouts) went anywhere public.
- After changing a script:
bash assets/sync/test-sync.shandbash assets/recordings/test-recordings.shpass.
References
references/mac-folders.md: the two Macs and iCloud, access, reading, NFD names, the device shell's limits, Remote Control, where deliverables go.references/git-bundle-sync.md: the sync procedure step by step, why each option is there, the repair of a broken clone, leftovers.references/recordings.md: sources, the routes that failed, YouTube via yt-dlp, whisper.cpp, cleaning, the transcript file, using it.bilingual-lecture-notes/references/materials-and-intake.md: what the course folder holds and how to read each kind of file.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

