AJAN AÇIKLAMASI Use when maintaining Obsidian notes safely.
Obsidian Kütüphaneci Bakımı
Use this skill for recurring or requested maintenance of the user's Obsidian vault, especially Öğrendiklerim/, installation plans, agent notes, and system-status plans.
Always-on rules
- Treat OBS as memory, decisions, research, and status documentation-not as a coding workspace.
- Resolve and use the concrete vault path before reading or writing files; the user's vault is
<not-kasasi> unless live configuration says otherwise.
- Never read or write
<ozel-klasor>/, <ozel-klasor-2>, credentials, .env, OAuth tokens, API keys, or plugin data.json contents into notes.
- Do not delete notes. Preserve uncertain or obsolete material and report it as an archive candidate; the user decides destructive cleanup.
- Keep plan checkboxes truthful: mark a task complete only when live tool output or a durable artifact verifies it. If an approach was intentionally replaced, change the item to an explicit decision such as “replaced by …” rather than leaving a misleading unchecked task.
- Separate three classes of open work: system installation/maintenance, agent-system validation, and product/project backlog. Do not mark product roadmap items complete while cleaning infrastructure notes.
- Prefer a current-status section over rewriting historical logs. Keep decisions, evidence, remaining work, and superseded approaches distinct.
- Use concise Turkish reports with concrete paths, commands, statuses, and next actions.
Audit procedure
- Read the governing vault rules,
Agent Rehberi/, Öğrendiklerim/, and the specific plan files named by the user.
- Locate the user's named plan folder first (for example
Everything/Mac Planları) rather than assuming its former path. Search that folder and the vault for unchecked items, stale status phrases, duplicate plans, and contradictions; restrict the search to non-secret areas.
- Verify claims that depend on the live machine with the appropriate command before editing notes. Do not infer current service state from an old plan.
- Classify each finding as completed, intentionally replaced, still open, blocked, or a project backlog item. Treat infrastructure/system plans separately from product roadmaps, and do not leave a stale checkbox implying that a replaced implementation is still the chosen path.
- Patch the smallest stable section: add or update a current-status block, repair stale system maps, and preserve historical sections unless they contain a direct false current claim.
- For a contradiction that cannot be resolved from files and live output, delegate a focused verification task to the appropriate worker (Codex for coordination/system facts, Gemini for current research, Claude for code, Ollama for private/offline transformations). Record the contradiction and evidence; never silently choose a side.
- Write a dated audit report under
Öğrendiklerim/Agent Denetimleri/ containing files read, verified facts, edits, unresolved contradictions, and next review items.
- Re-read or search back the edited note and verify that markdown structure, checkboxes, links, and paths are intact.
Recurring librarian jobs
- Use ajan cron agent jobs for reviews that require reading, reasoning, delegation, or note edits; do not use
no_agent script-only jobs for this work.
- Schedule separate daily jobs at
0 0 * * * and 0 14 * * * in the user's local timezone, with self-contained prompts, obsidian and agent-router skills, the OBS workdir, and delivery to the current home channel.
- The prompt must name the exact vault paths, forbid secrets and destructive edits, require a dated report, and define how contradictions are escalated.
- Read the cron list back after creation and verify name, schedule, enabled state, delivery, workdir, and next run.
- Keep the existing research cron separate from librarian maintenance; it is a different job class and should not be merged merely because both write to OBS.
Auditing the whole vault with parallel workers
Partition every note into disjoint topic batches, assert in code that the union equals the
full note list, then run the batches through 2 concurrent read-only workers.
Embed the note bodies in one ASCII-named packet per batch instead of pointing workers at
the vault. A worker given --add-dir on a vault with Turkish filenames (Öğrendiklerim/,
Derin Araştırmalar/) silently fails to list them and then reports existing notes as
missing. Write packet.md containing === FILE: <rel> === / === END FILE === blocks with
each note's full text plus its metadata line (lines, mtime, durum, inbound/outbound counts,
open checkboxes). Verify block counts match the batch size, then reconcile each expected exact path against the worker's per-file review list. Packet presence proves delivery, not reading: a worker can omit one note while still returning SUCCESS. Read/review missing files before claiming complete coverage.
Excluded trees (<ozel-klasor>/, <ozel-klasor-2>, .obsidian/, _to_delete/) never enter a packet.
Build a mechanical inventory first and treat non-.md link targets as real. A link
checker that indexes only markdown reports every .canvas and .png wikilink as broken -
13 false positives in one run. Resolve each reported break against the filesystem before
putting a number in front of the user.
Count the checkbox classes separately. A process template (Karar Checklist.md) with 37
unchecked boxes inflates a vault-wide "open work" figure by an order of magnitude. Decide
from the note's own text whether boxes are a template or a backlog.
Verify every worker verdict that would cause deletion. Two notes covering the same
subject are not duplicates if each holds products/sections the other lacks: grep the product
names in both before calling one an archive candidate. Likewise check live system state for
"remove X?" questions (binary present, config present, service absent is three separate
facts, and both notes claiming "paused" and "removed" can be wrong).
Audit the agent context files outside the vault in the same pass. OBS/AGENTS.md (tool-neutral, shared by ajan/Claude/Codex, intentionally outside the git repo) and
siblings are binding rule files that the vault-scoped audit never sees, and they rot fastest:
stale model names, moved note paths, superseded sync mechanism, service state.
Whole-vault audit with product PMs (direct-correct model)
When the user wants the whole vault checked and wants agents to fix, not just report:
- Measure first, in code, with the private trees excluded at the walk (counts of notes, empty, under 200 bytes, stale, broken links by top folder). Fix your own area (
Agent Rehberi/, Öğrendiklerim/) and compare each system note with live state (hermes cron list, profile list vs Agent Rolleri.md, agent-router rows) before dispatching anyone.
- One PM per
Projeler/<Ürün>/ folder, launched with the shared job text plus a profile-specific query file (absolute paths, see the dispatch note in multi-agent-project-orchestration). Job text: compare every note with its repo (version file, git log, README/AGENTS.md, tests) and live state, correct wrong lines in the note itself with the old claim kept in parentheses, fill empty template notes only from real sources, never write to the repo, and end with Kasa Denetimi <date>.md in the product folder (checked, corrected, evidence, open product questions). Stay inside the 3-PM cap; start the next PM when one finishes.
- Verify PM output yourself: re-run the link scan, open at least one claimed fact per PM against the repo (version string, branch head),
git status the repos and compare mtimes to prove the PMs did not touch code, and grep the reports for em dashes.
- A "0-byte or empty notes" complaint is usually unfilled templates (Roadmap/Tech/Ilham.canvas). Report template counts separately and ask before deleting any.
- Recurring upkeep goes to the Librarian as a weekly cron (create it paused, name the acceptance condition for enabling it); do not edit other agents'
SOUL.md for upkeep.
- Cron state is part of the audit: list every profile's jobs and the paused ones with their pause date. Maintenance crons that sat paused for weeks were invisible until measured; record paused jobs with dates in
Güncel Sistem.md and cron errors (a script pointing at a deleted worktree or branch) in Açık İşler.md with the cause, leaving the remove-or-rewire choice to the user.
Broken-link wave after a bulk move. If hundreds of links broke on one date, run git diff-tree -r -M --name-status <commit>: R entries mean the notes moved, not vanished. Repair by unique basename match across the vault (skip ambiguous, leave history blocks and Okul/-style export dumps), then re-scan. Expect false positives from the checker itself: a table cell's [[Note\|Title]] escape, [[...]] examples inside code, and .png/.canvas targets. Strip code, unescape \|, and index non-markdown files before quoting a number. Record the cause and the check order as a lesson note.
Reviewing bulk worker edit proposals
Have workers return {path, old, new, reason} patches and apply none automatically. Check each old appears exactly once on disk, then judge every proposal against the vault's own evidence before applying:
- Reject condensations that delete sourced specifics. A shorter line that drops the version number, date, citation marker or the named alternative is a downgrade, not a cleanup.
- Reject edits that close the user's open product decisions. A model turning "Açık Sorular / options (a)(b)(c)" into "karar verildi" is inventing a decision the user never made. Documentation maintenance never resolves backlog.
- Reject rewrites of dated daily reports. A
GG-SSSS.md audit round records what was open that day; replacing its list with "see the tracker" destroys history. The no-duplication rule applies to live trackers, not to archives.
- Verify status claims against the filesystem before accepting them. Workers asserted
_to_delete/ needed no decision while 15 files sat there; pgrep/brew list showed Syncthing's binary and config present but no process.
- Re-check counts after applying. The applied-file count comes from a post-edit hash diff, not from the number of patches you accepted; later edits in the same run change it.
When a proposal is directionally right but lossy, apply a hand-repaired version rather than the raw patch, and record accepted/rejected ids with reasons in a decisions.json beside the backup.
Deleting notes when the user explicitly approves
Deletion stays forbidden by default, and a one-time approval does NOT change the default: after a
sanctioned cleanup, keep moving unwanted notes to the quarantine folder unless the user says
otherwise. If the user re-states the move-instead-of-delete rule, recreate the folder with a
Okuma.md/README stating the rule, and correct any note you just edited to say the folder is gone.
A vault-wide "düzenle, silinecek varsa sil" approval does authorize removal for that round.
Do not stall on re-confirmation you already have. Before each removal:
- Confirm the file is committed in git (
git log --oneline -1 -- <path>) so removal is reversible, and record a manifest of path + size (+ content for tiny files) in the run directory.
- Prove no unique content dies: diff staged copies against their live counterparts and list the lines present only in the copy.
difflib.SequenceMatcher ratios plus a line-level "missing in live" check caught that a storyboard's 58 substantive lines were 55 already-merged plus 3 headings.
- Grep the vault for inbound references and update the notes that describe the deleted area, so the vault does not keep claiming a folder exists.
- Prefer the user's own quarantine folder as the evidence trail: a
_to_delete/ that has waited weeks is a decision the user already made once.
Protected-by-name files (sync-proof notes, topic notes the user asked to keep separate) stay byte-identical; verify with hashes, not intent.
When the user declares a fact not worth tracking
"We don't need to write X's status" retires that status from the whole vault, not just the note in
hand. Grep every occurrence, strip the state claims ("stopped", "must be started", "online") while
keeping the neutral install/existence fact, drop the derived open items and verification-command
lines that only existed to re-check it, and fix any count you had written ("five stale facts" becomes
four). Record the retirement as a durable lesson so later audits don't reopen it, and place that
lesson inside the relevant existing section instead of appending it after the closing link list.
Approval-scoped correction gates
- Interpret approval for non-destructive note corrections narrowly: no file moves, merges, deletion, push, runtime model/provider changes or cron edits. Preserve user-requested separation of topic, mobile research and raw test evidence; similarity is not permission to merge.
- Classify findings as open, intentionally deferred, awaiting approval, verification pending or completed. Never promote deferred work into forgotten work, or a process-template checkbox into backlog. Check whether a short test note is sync evidence before proposing removal.
- Before editing, read the latest scheduled audit and establish a fresh baseline: another librarian may already have fixed the finding. Preserve existing historical details blocks byte-for-byte and do not overwrite unrelated dirty files.
- Prune forbidden/private/backup directories before traversal using top-down walking with followlinks disabled. Filtering paths after recursive enumeration is too late: even listing/indexing private backups is forbidden. Explicitly exclude
<ozel-klasor-3> and health/private folder variants before the FIRST inventory, including metadata collection. Apply directory exclusions to directory components, not arbitrary note basenames: public plans containing Kisisel or Yedekleme are not private directories, and suppressing those names can hide broken links. Never search excluded areas to recover a missing public link.
- Strip fenced and inline code before validating HTML
<details> balance; prose mentioning the literal tag is not an unclosed HTML block. Recheck mechanical candidates against exact allowed paths before reporting them.
- Verify counts in code from the actual per-file classifications; do not repeat worker totals. A profile's stale remote-tracking branch is not proof of remote deletion. An old test is not proof of current authentication.
Resolving a broken wikilink
Before repairing or removing a link to a missing note, ask Git where the target went: git status --short -- <path> plus git log --oneline -1 -- <path>. An uncommitted working-tree deletion (D) means the note still exists in HEAD and is restorable - that is a user decision to surface (restore vs. make the deletion permanent), not a link to quietly delete. Report line count and headings from git show HEAD:<path> so the user can judge; never restore, commit, or copy the content elsewhere on your own.
Run the broken-link scan over the CURRENT layer and preserved <details> history separately. A dead link inside a history block must stay dead: editing it breaks the byte-for-byte preservation invariant. Record the breakage and the correct current target in the note's current summary instead, and state in the report that the history link was deliberately left broken.
Marking open items complete on request
"Tick whatever is actually done" authorizes closing items that EVIDENCE closes, not emptying the list. Re-verify each candidate with a live read-only command in this session (claude auth status, hermes cron list, hermes fallback list, hermes config get ...) and quote the exact result next to the tick. Then hold these lines:
- A completed item keeps its scope limit: an auth/session check is not a model-response test, and a cron entry EXISTING is not a cron entry WORKING - read
Last run and tick nothing when it shows an error.
- Never convert a standing rule ("check RAM before every local run") or a user-deferred item into a completed checkbox; move them to their own sections so the open count means pending work.
- Collapse the completed set into one
<details> block so the live list stays short, and keep the done/open counts in the report consistent with the file after the final edit.
- Checking live state routinely contradicts the notes in BOTH directions. Expect to find items that are now done (a login that was blocked) and items the notes call healthy that are now broken (a cron whose last run failed), and write the regression up as a new open item with the error text and the source line that causes it.
Bulk refinement of a whole section
When the user asks to "clean up", "refine", or "de-clutter" a vault area rather than audit it, the job is re-layering, not rewriting. Follow the audit procedure, plus:
- Snapshot every note you may touch to a backup dir outside the vault with a SHA-256 manifest, and record a baseline link check. The manifest is what later proves which files changed and that none were lost.
- Give each note an explicit
durum: classification and a short current-summary block at the top. If a history <details> block already exists, preserve it byte-for-byte and replace only the current layer; do not nest another wrapper around it on each maintenance pass. Otherwise preserve the previous body in one collapsed history block. Build one topic-first Kalıcı Dersler.md guide and make the index lead there; dated records retain evidence rather than repeating operating instructions.
- Keep the original
tarih: as the first-record date and add son_gozden_gecirme: for the review. Re-dating a historical experiment as if it were re-run is a factual error.
- Hoist live system state and recurring follow-ups into ONE current-status note and ONE open-items note, and link topic notes to them. Repeating the same unresolved item across daily reports is what produces the clutter in the first place.
- Verify before reporting: modified/new/deleted counts against the manifest, broken wikilinks back to zero, balanced
<details>/</details> in every edited file, parseable frontmatter, and byte-for-byte containment of each preserved history body in the new file.
- Confirm that out-of-scope trees (projects, social media, research, prompts) still hash-match the baseline, and state that count in the report.
Assert these invariants in code rather than eyeballing them; a refinement pass touching dozens of notes is exactly where a silent truncation hides.
For a parallel whole-section review, partition the full manifest into disjoint topic/audit batches, require complete-read coverage and per-file preservation evidence from each worker, and keep shared indexes and git operations coordinator-owned. Reconcile the union against the original manifest; independently compare preserved bytes, not only worker-reported hashes. Do not let children stage unrelated changes. Verify automated-backup claims against actual control flow (including clean working tree with unpushed commits), using isolated mocked functions rather than running a production job with external effects. Preserve private/excluded areas outside even baseline hashing.
Collapsing many notes into one
When the user asks to simplify a folder - "merge the stage 1/2/3 notes", "drop the archive folder", "make this one file" - the unit of work is the folder's whole link surface, not the files being merged. Order:
- Inventory the folder with line counts (
find ... -name '*.md' -exec wc -l {} +) and read every file before writing the replacement. Group by SUBJECT, not by size: many small notes that slice one topic into stages/platforms collapse into one note, while notes describing different artifacts stay separate however short they are. Size alone is the wrong axis - two long notes about the same deliverable are prime merge candidates, and two short notes about different deliverables are not.
- Find inbound links from OUTSIDE the folder before moving anything:
grep -rn "<Folder>/" --include='*.md' . | grep -v "^./<Folder>/". Agent role notes and vault entry points routinely point at the files being dissolved, and those become dead links.
- Update every
.canvas that references the folder. Obsidian canvases are JSON with nodes[].file holding vault-relative paths and arbitrary string ids; a consolidation leaves them pointing at files that no longer exist and Obsidian shows an empty card rather than an error. Rebuild the node and edge lists to match the new shape instead of patching paths one by one.
- Write the replacement note as sections mirroring the old files, preserving checkbox state and every substantive list item verbatim.
- Move the originals to
_to_delete/<Folder>/ with git mv, never rm. Deletion needs explicit approval; the move is reversible and keeps the evidence for a few days of real use.
- Re-run a full-vault broken-link check, including
.canvas node targets, and report zero - not just the folder you touched.
Two notes describing one artifact
A plan note and its companion (storyboard, spec, shot list) drift into duplicating each other, and the user will eventually ask for one file per artifact. Merging these is not concatenation - the companion was written against the same timeline, so several sections exist in BOTH files in different words.
Diff the section headings first (grep '^#' on each) and, for every overlapping pair, keep one canonical version and fold the other's unique detail into it. Typical collisions: a minute-by-minute flow, a list of required assets, and a title/thumbnail section. Concatenating leaves the reader two contradictory timelines and guarantees they diverge again.
Sections that exist in only one file transfer verbatim. Verify by grepping the merged note for every heading of the file being dissolved, then move that file to _to_delete/ and fix the index note and any inbound links that named it.
Recording a production decision
When the user asks "who does X and when" about work the vault plans, resolve the owner from the role cards that already exist (grep -rln the role folder for the capability) rather than naming a new role; report it if no existing role covers it. Write the decision into BOTH the plan note and the owning role card, and state the trigger condition - asset production gated on approval of the spec it derives from, because a spec revision invalidates everything generated from it. A decision recorded only in the plan is invisible to the agent that has to act on it.
A gate you wrote is a gate you own. Once the conversation moves to another task, say in the same turn that the deliverable is blocked and name the one action that unblocks it; otherwise the user finds gated work sitting unstarted turns later and reads it as forgotten rather than deliberate. Offering a small unblocked slice - a couple of assets to settle the visual language before committing to the full set - beats waiting silently.
Verifying no content was lost
A line-by-line "does every old line appear in the new note" check is worthless on Turkish prose: case-folding plus NFKD turns İ into i + combining dot, ASCII-stripping mangles ç ğ ı ö ş ü, and any rewording or bullet restructuring registers as loss. Such a check reported dozens of missing lines when nothing was missing, which is worse than no check at all - it either wastes a verification pass or gets waved away.
Verify instead with a curated list of the substantive items (dates, durations, platform names, counts, named formats, checkbox tasks) and match them with grep -F in original orthography, no normalisation. Report the items checked, not a percentage. Never tell the user content is intact on the strength of a normalising scan alone.
Common pitfalls
- Do not trust a plan's checkbox just because it is checked: a reboot, provider, gateway, or OAuth claim needs a current verification command; conversely, do not leave a verified item unchecked merely because the plan was moved or renamed.
- Do not leave obsolete “next steps” after the implementation changed strategy; annotate the replacement and keep the old attempt as history.
- Do not let an agent “simplify” by deleting duplicate notes; consolidate only with preserved evidence and a traceable report.
- Do not ask a scheduled agent a question that requires a user reply; give it a deterministic escalation/report path because cron runs are autonomous.
- Do not create a second ajan gateway just to create a second profile; use one multiplexed gateway when the user wants one system, and verify launchd services after migration.
- Do not claim Drive synchronization from a local note write; rclone/Obsidian sync must be verified independently and auto-push preferences must be respected.
- Do not carry a sync mechanism forward into refreshed notes just because it is the one currently configured. Ask whether the transport is still the intended one before writing it into a "current system" note, or the cleanup will canonise an approach the user already decided to abandon.
- A decision the user refers to as already made may exist only in conversation. Search the vault for it; if there is no note, say so plainly and offer to record it - an unrecorded decision is itself a finding, not a reason to assume the work was done.
- When a note appears blank or a wikilink opens a new note, verify three layers separately: Drive object count/content, local file bytes/content, and the exact wikilink target path; an open Obsidian tab can be stale while the disk file is correct, and a display alias can hide a path mismatch.
- Before changing sync state, enumerate Drive objects by canonical path and block duplicate paths or empty remote files that would replace non-empty local files; duplicate IDs make “newest wins” unsafe.
- After moving or merging notes while Obsidian is open, tell the user to close and reopen the vault. Open tabs keep pointing at the old paths and render blank, which looks like the data loss you just proved did not happen.
- A pattern match for a secret (
refresh_token, api_key) is not a leak. Read the matching line before raising it: documentation that names the fields of a credential file is prose, and treating it as a finding trains the user to dismiss real alerts.
Related depth
For the exact recurring job prompt and output template, see references/recurring-review.md.