Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 4.24 KB

AGENTS.md

File metadata and controls

57 lines (41 loc) · 4.24 KB

MyAberdeen CLI agent guidance

Operator skill

For installation, updates, course lookups and archive operations, read skills/myaberdeen-cli/SKILL.md. Keep that portable skill aligned with CLI behaviour when changing commands, requirements or setup. Do not add personal paths, credentials or real course data to it.

Purpose

This is a terminal-native MyAberdeen archive client for University of Aberdeen users. It uses a dedicated persistent Chrome profile so normal operations can run headlessly after an interactive university login.

Safety and scope

  • Treat Blackboard as read-only. Do not add write, submit, delete, enrolment, messaging, or assessment-attempt creation/modification operations. Read-only reviews of existing completed attempts are supported.
  • Never print, log or commit cookies, SSO credentials, XSRF tokens or request headers containing secrets. Only the dedicated private Chrome profile may persist authentication state as documented; never export it into archives or shared files.
  • Keep the browser profile and database outside the repository, in the user's local application-data directory with private permissions.
  • Be conservative with request concurrency and retries. This is a personal archive utility, not a crawler.
  • External LTI services are separate systems. Panopto reads use the normal user browser sign-in and course-scoped commands; other services such as Turnitin remain links. Never bypass authentication, folder permissions or download controls.

Workflow

  • Read CONTRIBUTING.md before preparing a contribution. Contributors use their own fork and PR; only Jacob changes upstream branches/tags or merges PRs.

  • Keep the CLI usable without a visible browser except for initial or expired login.

  • Use the installed Google Chrome through playwright-core; do not download a second browser unless explicitly requested.

  • Use Node's built-in SQLite support for the durable archive.

  • Add tests for parsing, path safety, pagination, and database changes.

  • Use UK spelling in user-facing text and documentation.

  • Do not commit or push unless Jacob explicitly asks.

Git conventions

  • Keep commits focused and reversible, using concise conventional commit subjects.
  • Run npm run check before publishing. Do not change repository visibility unless Jacob authorises it.
  • Inspect staged files for runtime data and secrets before each commit.
  • End every pull request description with the model and harness that did the work, for example Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.

Archive-first workflow

  • Start ordinary course questions with myab brief --active --json, then show or the returned local sources. Check section freshness before presenting cached facts as current.
  • Use myab check --active for metadata, or myab refresh --active for metadata and conditional file checks. An explicit live request takes priority over the cache.
  • Use myab setup to configure profiles.current locally. Obsidian integration is optional and requires an explicit user-selected vault; never infer a personal vault path or academic start year. Do not select every membership for a routine refresh; broad archive operations require explicit --all.
  • Preserve full archived details on incomplete refresh. Mark absence only after a successful complete section traversal.
  • Keep caller-specific change cursors. Text caches are keyed by file SHA-256 and extractor version.
  • Preview vault merge and relocation changes. Relocation must verify destination hashes and must never delete source files.
  • Test schema migration/backup, scope isolation, partial failures, conditional requests, and unchanged repeat runs. No university credentials or real course datasets belong in tests or CI.

Release packaging

  • Keep source installation supported alongside portable releases.
  • Release builds must use an explicit source allowlist and include dependency/runtime licences. Never package local state or real course data.
  • Run the extracted-bundle smoke check; importing source files alone does not validate a release.
  • Use native platform runners, verify downloaded runtime checksums, and publish only after all release jobs pass.
  • Keep the operator skill and README aligned with both source and portable update paths.