Skill, Pantha Agentic Operations
The procedural playbook Pantha follows to set up and run the agentic layer of a standalone project. Covers first-time setup, thread onboarding, file maintenance, deliverable authoring, and file hygiene. Self-contained and project-agnostic: it assumes no other agentic files exist, and it works on Windows, macOS, and Linux.
Scope: this Skill creates and maintains only the 1 Agentic/ folder and its contents. It does not create, move, rename, or restructure anything else in the project. The rest of the project root belongs to the user; Pantha reads it when needed and records where things are.
This file is the single source of truth for how recurring tasks are performed. For what rules govern those tasks, see Preferences. For what is happening now, see Memory. For the overall arc, see Project Plan. For project-specific reference material, see Knowledge.
Paths in this file are written with / as the separator. On Windows the separator is \; scripts should build paths with pathlib so either works.
0. How to use this file
0.1 For the user
To add an agentic layer to a project, give Pantha this file and a short instruction. For example:
Read <full path to this file> and use it to set up the agentic folder for my project.Project root: <full path to the project folder; it may already contain other work>Project: <one-line description of what the project is for>
Before starting, make sure the project root is listed in Pantha's sandbox configuration with write access, so Pantha can create 1 Agentic/ inside it. If you want Pantha to copy in reference material stored elsewhere, that location needs at least read access.
Pantha will ask for anything you leave out, including where your source material lives and where you want deliverables saved. Pantha will not create those folders for you unless you ask.
To resume work in a later thread, ask Pantha to read the project's Thread Starter at its full path.
0.2 For Pantha
When given this file with a setup instruction, follow Section 11 in order. When this file is found in an existing project's 1 Agentic/6 Skills/ folder, treat it as the operating playbook for that project and start from Section 2.
These rules apply throughout:
- Create, edit, or delete files only inside
1 Agentic/. Do not create folders or files anywhere else in the project unless the user explicitly asks for that specific item, at a location the user has confirmed. - Never overwrite, move, or delete an existing file without explicit user confirmation.
- Never assume a path, a project name, or a user preference. Ask.
- Work only inside paths the sandbox allows. If an operation is blocked, report the blocked path and ask the user to grant access; do not look for a workaround.
- Verify every write by reading it back (Section 8).
1. Agentic folder structure
This Skill builds one folder, 1 Agentic/, at the project root, with this layout:
<Project Root>/1 Agentic/ (Meta layer: how the agent operates on this project)1 Thread Starter/2 Index/3 Project Plan/4 Preferences/5 Memory/6 Skills/7 Knowledge/... (The user's own project folders and files: not created or changed by this Skill)
The numeric prefixes keep folders in this order in any file browser. Prefixes are single digits with no ".0" suffix: a dot in a folder name can be misread as a file extension by some tools (for example, Python's pathlib reads 1.0 Agentic as stem 1 with suffix .0 Agentic). Do not rename the folders unless the user asks; if they are renamed, follow Section 10.
The roles of each component are:
- Thread Starter: Bootstrap prompt(s) and onboarding instructions for a fresh thread.
- Index: Map of every file in
1 Agentic/with a one-line description, plus the project locations below. - Project Plan: Phased arc, milestones tracker, change log, open decisions.
- Preferences: Rules governing style, vocabulary, naming, behaviour.
- Memory: Current state, decisions locked in, session log.
- Skills: Procedural playbooks (this file and siblings).
- Knowledge: Project-specific reference material (standards, specifications, supplied data, distilled domain knowledge).
The user's other project content, such as templates, source data, working files, and finished deliverables, stays wherever the user keeps it. These are called project locations in this file. Pantha records each project location's full path in the Thread Starter, Memory (Quick reference), and Index once the user identifies it. Until then, record it as TBD.
2. Starting a new thread
- Read these files in order:
- Thread Starter (any bootstrap instructions for this project).
- Memory (current state).
- Project Plan (where we are in the arc).
- Preferences (rules that govern everything).
- Index (map of the agentic files and project locations).
- If any of these files is missing or unreadable, say so, and offer to recreate it from the templates in Section 12.
- Summarise the current state in two or three lines:
- Which phase we are in.
- What is open or blocked.
- What the next action is.
- Ask the user how they would like to proceed.
- Read additional files (other Skills, Knowledge items, files in project locations) only when needed for the active task.
3. Maintaining the Index
Update the Index whenever a file is created, renamed, moved, or deleted under 1 Agentic/, and whenever a project location is added, changed, or removed.
When updating:
- Preserve one-line descriptions for files already listed.
- Add new entries with a fresh, accurate one-line description.
- Remove rows for deleted files.
- Re-sort within tables if folder ordering changes.
Bump the version footer for any structural change. Note the change in the version footer where useful.
4. Maintaining the Project Plan
Update the Plan when one of the following occurs:
- A deliverable is completed.
- A milestone is reached.
- A decision changes sequence, scope, or open status.
When updating:
- Move resolved decisions from the Open Decisions section into the relevant phase section.
- Add an entry to the Milestones Tracker for each milestone.
- Add an entry to the Change Log for each substantive change.
- Bump the version footer when section content changes meaningfully.
- Do not begin a downstream phase before the upstream exit criterion is met, unless that exception is recorded in the change log with a reason.
5. Maintaining Memory
Update Memory at the end of any session where a meaningful decision was made or new information was captured.
Memory is structured as follows:
- Operational sections are updated in place. Bump version footer.
- The Session Log is append-only. Each session is dated. Keep entries terse.
What belongs where:
- Strategic decisions already locked in: Memory operational section.
- Working agreements about style and vocabulary: not in Memory. They belong in Preferences.
- Project state and next action: Memory operational section.
- Open questions: tracked in the Plan's Open Decisions section. Memory lists only the two or three most urgent.
6. Producing deliverables
Deliverables are the outputs the user actually wants: reports, analyses, designs, models, documents, spreadsheets, presentations, code.
Discipline:
- Save deliverables to the deliverable output location recorded in Preferences. If none is recorded, ask the user where outputs should go before saving, then record the answer in Preferences and the Index. Do not create an output folder unless the user asks for it at a confirmed location.
- Draw inputs from
1 Agentic/7 Knowledge/(project-specific reference material) and from the project locations the user has identified (templates, source data). - Adhere to project Preferences for naming, formatting, and style.
- Where a Skills file exists for the deliverable type (e.g. document creation, data extraction), follow it.
- Do not invent facts or values not supported by Knowledge, project source material, or explicit user instruction. Log assumptions clearly within the deliverable itself.
- Carry version information in the deliverable where appropriate.
7. Using Knowledge and project source material
- Knowledge (
1 Agentic/7 Knowledge/) is curated reference material such as standards, specifications, and distilled domain knowledge. Cite Knowledge in deliverables; do not restate large extracts. - Project source material (templates, raw data, source documents, supplied assets) is read in place from its project location. Treat it as read-only unless the user instructs otherwise. Do not copy it into
1 Agentic/unless it is reference material the user agrees belongs in Knowledge. - Where a Knowledge document is in a format that is slow or unreliable to read repeatedly (e.g. a scanned PDF or an image), a text or markdown extraction may be stored alongside it in Knowledge. Keep the original, name the extraction to match it, and cross-reference both in the Index.
- If new reference material is provided mid-project, place it in Knowledge (with the user's agreement) and update the Index. If new source material is provided, record its project location in the Index and Memory.
8. File hygiene
All markdown files in 1 Agentic/ use these conventions:
- Encoding: UTF-8.
- BOM: none.
- Line endings: one convention for the whole agentic folder, chosen at setup and recorded in Preferences. Default to the native convention of the system the project lives on (CRLF on Windows, LF on macOS and Linux). If an existing file uses a different convention, preserve it unless the user asks for normalisation.
- File naming: per Preferences. Avoid characters that are invalid on any common operating system (
\ / : * ? " < > |).
When writing files programmatically:
- Use binary mode and explicit encode to control encoding and line endings precisely: normalise to
\nin memory, then convert to the project convention on write. - Build paths with
pathlib(or equivalent), never by joining strings with a hard-coded separator. - After writing, verify with a read-back: size, line-ending count, BOM presence, and a count of any character banned by Preferences (e.g. em-dashes, if such a rule is in force).
- Refuse to overwrite an existing file unless the overwrite is intended. Before editing an existing agentic file, keep the prior version recoverable (a timestamped copy in an
Archive/sub-folder alongside it, inside1 Agentic/, is sufficient). - For multi-file changes, use a single transactional batch where possible, so a failure part way does not leave the agentic folder half-updated.
9. Resolving open decisions
Open decisions are listed in the Plan's Open Decisions section, sorted by the phase they block.
When the user resolves a decision:
- Move the resolution into the relevant phase section of the Plan.
- Remove the row from the Open Decisions section.
- If the decision changes a previously stated assumption, add a note to the relevant Memory section.
- Add a change log entry to the Plan.
10. Restructuring
When folders or files inside 1 Agentic/ are renamed, moved, or restructured:
- Plan the rename order so every destination name is unique and does not exist at time of rename.
- Execute renames first, then update file content.
- Update all operational references (paths in operational sections of all agentic files, especially the Thread Starter).
- Do not retroactively edit audit log entries (session log entries, change log entries) that record events as they occurred. Their old path references are historical.
- Add a change log entry to the Plan documenting the restructure.
- Add a session log entry to Memory documenting the restructure.
When the user restructures their own project folders, do not move anything on their behalf unless asked. Update the recorded project locations in the Thread Starter, Memory, and Index, and log the change as in steps 5 and 6.
If the whole project root moves, sandbox access may need to be granted for the new location before any of the above can be done. On Windows, files moved into a sandboxed folder can carry incorrect permissions; if access errors appear on moved files, run Pantha's sandbox repair on the affected path, then retry.
11. Setting up the agentic folder
To set up 1 Agentic/ for a project, work through the steps in order. The order matters: each step assumes earlier steps have produced their outputs.
- Gather inputs. Confirm with the user, asking only for what was not already given:
- Project root (full path). It may already contain the user's work.
- Project name. Derive
<ProjectName>for file names from the project folder name, replacing spaces with underscores and removing characters listed in Section 8. - One-line project description (high level; do not lock in scope details that may be refined).
- Language and spelling variant. Default to the variant the user writes in, and confirm.
- Reference material to place in Knowledge, if any, and where it currently is.
- Project locations, if known: where source material lives and where deliverables should be saved. These may be left TBD.
- Check access. Before creating anything, record a listing of the project root's top-level contents, then confirm Pantha can write by creating
1 Agentic/(if absent) and creating and deleting a small temporary file inside it (see 11.1). If this fails with a permission or sandbox error, stop, tell the user which path was blocked, and ask them to add the project root to the sandbox configuration with write access. Retry once access is granted. - Check for an existing agentic folder. If
1 Agentic/already contains any of the sub-folders or agentic files from Section 1, stop and ask whether to adopt it (fill gaps only, overwrite nothing) or to stop. Other content in the project root is expected and is not a reason to stop. If the project already has an agentic folder using an older naming style (e.g.1.0 Agentic/with1.0 Thread Starter/and so on), do not create a second one: ask whether to adopt it with its existing names, or to rename it to this convention (following Section 10). - Create the
1 Agentic/sub-folders from Section 1. Create them idempotently so a re-run is harmless. Create nothing outside1 Agentic/. - Save a copy of this file into
1 Agentic/6 Skills/, unchanged and keeping its filename, so the agentic folder is self-contained. Add any other Skills files the user supplies for the project type (e.g. document creation, data extraction, calculation methods). - Place reference material in
1 Agentic/7 Knowledge/before authoring scaffolds, so the Index can describe real content rather than an empty folder. Copying requires read access to the source location. For source material and deliverables, record the project locations only; do not move, copy, or create folders for them. - Create the Thread Starter in
1 Agentic/1 Thread Starter/. See Section 12.1. - Create the Preferences scaffold in
1 Agentic/4 Preferences/. Pre-fill structural defaults; flag style and project-specific rules as TBD. See Section 12.2. Once Preferences is written, its rules apply immediately to all subsequent output, including the rest of this setup session. - Create the Project Plan scaffold in
1 Agentic/3 Project Plan/. Populate Phase 0 (agentic infrastructure) in full; downstream phases are placeholders until scope is confirmed. See Section 12.3. - Create the Memory scaffold in
1 Agentic/5 Memory/. Populate only with what is genuinely known today. Log this setup as Session 1 in the session log. See Section 12.4. - Create the Index last, in
1 Agentic/2 Index/. Walk1 Agentic/in full; sample each Knowledge file head (cover, table of contents, first page) to extract identifying metadata; list every file with size and a one-line purpose. Add the project locations section. See Section 12.5. - Verify the setup. List the
1 Agentic/tree. Read back every agentic file per Section 8. Confirm every path quoted in the Thread Starter resolves. Compare the project root's top-level listing with the one taken in step 2 and confirm the only addition is1 Agentic/. - Identify residual user-input items explicitly and surface them as a short list. Typical residuals: project scope and acceptance criteria, project locations still TBD (especially the deliverable output location), units (if non-default), deliverable format and naming, downstream phase structure, writing style rules, tone and vocabulary rules, citation style.
- Confirm with the user before producing any deliverables. Give the user the full path of the Thread Starter and tell them how to resume in a new thread (Section 0.1).
The ordering follows this rationale:
- Access before anything so a sandbox block is found before partial work is done.
- Knowledge before scaffolds so descriptions in the Index and Memory can be accurate, not speculative.
- Thread Starter before Preferences/Plan/Memory because it sets the file-naming convention (
<Type>_<ProjectName>.md) that the others inherit. - Preferences before Plan and Memory so any style rules apply when those files are authored.
- Index last because it indexes everything above it.
11.1 Reference setup script
The following Python is a reference for steps 2 to 4. Replace the root path with the confirmed value. It is safe to re-run, and it creates nothing outside 1 Agentic/.
from pathlib import Pathroot = Path(r"<FULL PATH TO PROJECT ROOT>")agentic = root / "1 Agentic"subfolders = ["1 Thread Starter","2 Index","3 Project Plan","4 Preferences","5 Memory","6 Skills","7 Knowledge",]if not root.is_dir():raise SystemExit(f"Project root not found: {root}. Confirm the path with the user.")# Step 2: record the root listing, stop if an older "1.0 Agentic" exists, then check accessbefore = sorted(p.name for p in root.iterdir())if (root / "1.0 Agentic").exists() and not agentic.exists():raise SystemExit("Found '1.0 Agentic' (older naming). Ask the user: adopt as-is, or rename?")agentic.mkdir(exist_ok=True)probe = agentic / ".pantha_write_test"probe.write_text("ok", encoding="utf-8")probe.unlink()# Step 3: existing agentic folder checkexisting = [s for s in subfolders if (agentic / s).exists()]if existing:print("Existing agentic sub-folders found, ask the user before continuing:", existing)else:# Step 4: create the agentic layout onlyfor s in subfolders:(agentic / s).mkdir(exist_ok=True)for p in sorted(agentic.rglob("*")):print(p.relative_to(root))# Confirm nothing else was added at the project rootadded = sorted(set(p.name for p in root.iterdir()) - set(before))print("Added at project root:", added or "nothing (1 Agentic already existed)")
11.2 Reference write helper
The following helper writes a markdown file to the conventions in Section 8 and verifies it.
import osfrom pathlib import Pathdef write_md(path, text, eol=None, overwrite=False, banned=("\u2014",)):path = Path(path)if "1 Agentic" not in path.parts:raise ValueError(f"{path} is outside 1 Agentic; confirm with the user first")if path.exists() and not overwrite:raise FileExistsError(f"{path} exists; confirm with the user before overwriting")eol = eol or ("\r\n" if os.name == "nt" else "\n")data = text.replace("\r\n", "\n").replace("\n", eol).encode("utf-8")path.write_bytes(data)back = path.read_bytes()assert back == data, "read-back mismatch"decoded = back.decode("utf-8")print(path.name, len(back), "bytes |",back.count(eol.encode()), "line endings |","BOM" if back.startswith(b"\xef\xbb\xbf") else "no BOM", "|",{c: decoded.count(c) for c in banned})
Set eol to the convention recorded in Preferences, and banned to whatever characters Preferences rules out (pass an empty tuple if none).
12. Scaffold content templates
These templates prescribe the minimum useful structure for each agentic file at first creation. Use file-naming pattern <Type>_<ProjectName>.md, where <Type> is one of Thread_Starter, Index, Project_Plan, Preferences, Memory, and <ProjectName> is as derived in Section 11, step 1. Scaffolds are version 0.1; bump to 1.0 only when content is fleshed out and user-confirmed.
12.1 Thread Starter
A router, not a rules document. Contents:
- Header: project name and one-line project description (high level; do not lock in scope details that may be refined).
- Working root: full path to the project root, and full path to
1 Agentic/. - Read-on-start list (numbered, four items): Memory, Project Plan, Preferences, Index. Each with full path and a brief one-line reason.
- Read-additionally list: Skills (naming this file as the operating playbook) and Knowledge, each with full path; then each project location (source material, deliverable output) with full path, or TBD.
- Closing instruction: summarise the current project state in two or three lines (which phase, what is open, what is next) and ask the user how to proceed.
- Role-of-file note: this file is a router, not rules; Preferences is authoritative if rules drift.
- Version footer: typically
*Version 1.0, <date>*at first issue (the Thread Starter is usable from day one; not a scaffold in the same sense as the others).
12.2 Preferences
Single source of truth for behavioural rules. Standard sections:
- Language and spelling. The variant confirmed at setup. Do not mix variants.
- Writing style. Neutral defaults: short declarative sentences; lists for parallel items; one consistent heading case. Optional rules many users adopt, to be offered and confirmed rather than imposed: banned punctuation (e.g. no em-dashes), heading case (sentence case or Title Case), use of bold, list conventions. Mark as "TBD with user" until confirmed.
- Tone of voice. Project-specific. Examples: technical or engineering work, precise, conservative, assumption-flagging, no hype; business or finance, factual, reconciled, audit-ready; marketing, per the engagement's tone guide; legal, defined terms used exactly.
- Units and numerical conventions. Numeric projects only: SI default unless the user or jurisdiction indicates otherwise; carry units; state precision; name coordinate systems, datums, or reference levels where relevant; cite a source for judgement values; state currency and whether figures include tax. Omit this section for non-numeric projects.
- Vocabulary discipline. Project-specific. Default for regulated or technical work: use the governing standard's terminology, cite clause and edition, spell out acronyms on first use, do not paraphrase defined terms.
- File naming, locations, and on-disk conventions. Agentic files follow
<Type>_<ProjectName>.md; Skills files followSkills_<Topic>.md; Knowledge files preserve source identifiers. All markdown in1 Agentic/is UTF-8, no BOM, with the line-ending convention chosen at setup. Pantha creates files only inside1 Agentic/unless the user directs otherwise. Deliverable output location and deliverable naming: TBD with user. - Document structure conventions. Version footer; change log or session log appropriate to document type; assumptions stated within the deliverable.
- Agentic documentation discipline. No duplication across agentic documents; one primary location per piece of information. Include the primary-location table (mirrors the role list in Section 1 of this Skills file).
- Communication preferences. Present options for non-trivial design decisions and recommend one; act on unambiguous instructions; parallelise independent operations; lead reports with the substantive result; surface assumptions; ask rather than guess.
- Update obligations. Update Memory on meaningful decisions; update Plan on deliverables, milestones, decision changes; update Index on file create/rename/move/delete within
1 Agentic/and on any change to project locations; update Preferences on new persistent rules; update or create Skills on new recurring procedures.
Structural items (sections 6 to 10, and the language variant confirmed at setup) can be pre-filled at scaffold time. Style, tone, vocabulary specifics, deliverable output location, and deliverable naming should be marked "TBD with user" pending confirmation.
12.3 Project Plan
Standard sections:
- Purpose and scope. With In-scope and Out-of-scope subheadings; both TBD pending user confirmation.
- Overview at a glance. Table with columns: Phase, Theme, Key deliverables, Output location, Status. Phase 0 (Agentic infrastructure) populated and marked "In progress" or "Complete"; downstream phases as placeholders if scope is not yet confirmed.
- Phase 0, Agentic infrastructure (in progress or complete). Full file inventory table (path, function) listing every agentic file actually present, plus any outstanding setup items and a Phase 0 exit criterion.
- Phase 1 onwards. Placeholder until scope is confirmed; one subsection per defined phase once known.
- Open decisions that affect sequencing. Table sorted by the phase each decision blocks. Seed at scaffold time with: confirm scope, confirm Preferences, confirm project locations (source material, deliverable output), define downstream phases.
- Milestones tracker. Append-only table (date, milestone). Seed with the scaffold-creation milestone.
- Working principles for executing this plan. Cascade, do not duplicate; resolve decisions before or within their phase; update obligations; phase exit criteria are non-negotiable.
- Change log. Append-only table (date, change, reason). Seed with the v0.1 creation entry.
12.4 Memory
Standard sections:
- Project identity. Project name; one-line description; project root;
1 Agentic/path; note that scope is TBD if not yet confirmed. - Environment. Operating system; line-ending convention; the folders Pantha has been granted access to and at what level; any packages or external tools the project relies on.
- Current state. Current phase; numbered next-action list for when the session resumes; pointer to the Plan for the full roadmap.
- Strategic decisions already locked in. "None yet" for scaffolds, with a note that this populates as decisions are made.
- Working agreements. One-line pointer to Preferences. Do not duplicate Preferences content here.
- Open questions (high impact, current). The two or three most urgent items only; pointer to the Plan's Open Decisions for the full list.
- Quick reference. Table (Need, File or folder) covering: Plan, Preferences, Skills, Index, Knowledge, each project location (source material, deliverable output, or TBD), plus any frequently referenced documents.
- Session log. Append-only, dated. Seed with this setup as Session 1, recording: every file created with version, what already existed in the project root at session start, and any outstanding setup items.
12.5 Index
Standard structure:
- Header. Project name; full path to the project root and to
1 Agentic/; one-line statement of the Index's purpose; instruction to update on every file create/rename/move/delete within1 Agentic/and on any change to project locations. - Agentic folder layout. Table (folder, purpose) covering each sub-folder of
1 Agentic/. - One section per agentic sub-folder. Sub-table per folder with columns: Path, Size (bytes), Purpose. Nest further where a sub-folder warrants it (e.g. Knowledge).
- Project locations. Table (Location, Full path, Purpose) for each project location the user has identified, and a list of the top-level folders and files at the project root (names only, with purpose where stated by the user or obvious). Do not walk or catalogue the user's project folders in depth unless the user asks.
- How to refresh this index. Walk-and-regenerate instructions.
- Version footer. Note "Reflects the agentic folder as of this date".
Before writing the Index, sample each substantial file in Knowledge to extract meaningful descriptions. For each Knowledge file, capture: document title, publisher or author, document number, revision or edition, date, and a one-line statement of what it is the source of for this project. Do not paraphrase from the body; cite identifying metadata. For very small files (e.g. a single-row data table), describe the data structure precisely. Cross-reference where one file is derived from another (e.g. a text extraction linked to its source PDF or image and to the Skills file that produced it). Exclude temporary and system files (e.g. lock files and caches); Archive/ backups may be summarised as a single row.
Version 1.2, 6 October 2026. v1.2: folder prefixes changed to single digits with no ".0" (e.g. 1 Agentic/, 1 Thread Starter/); added naming rationale and handling of projects using the older 1.0 naming. v1.1: scope limited to the 1.0 Agentic/ folder; removed creation of folders outside it; the user's own source material and deliverables are recorded as project locations rather than created; setup script and write helper guard against writing outside 1.0 Agentic/. v1.0, 6 October 2026: standalone, platform-neutral edition for any Pantha user.