power
Maintains and validates the P.O.W.E.R. knowledge base (P.A.R.A. + OKF v0.1 + Graph RAG + LLM-Wiki + Execution Rules).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Maintains and validates the P.O.W.E.R. knowledge base (P.A.R.A. + OKF v0.1 + Graph RAG + LLM-Wiki + Execution Rules).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Cleans up obsolete, merged git branches in the local repository and deletes them from GitHub.
Perform holistic codebase analysis, step-by-step verified execution, and global quality audit for P.O.W.E.R. vaults. Trigger when analyzing, refactoring, or auditing a project before making changes.
Maintains and validates the P.O.W.E.R. knowledge base (P.A.R.A. + OKF v0.1 + Graph RAG + LLM-Wiki + Execution Rules).
| name | power |
| version | 3.2.1 |
| description | Maintains and validates the P.O.W.E.R. knowledge base (P.A.R.A. + OKF v0.1 + Graph RAG + LLM-Wiki + Execution Rules). |
This skill automates the management, validation, and lifecycle maintenance of the Obsidian Second Brain knowledge base using the hybrid P.O.W.E.R. methodology.
The skill is automatically activated by AI agents (Antigravity CLI and OpenCode) or manually by the user when performing the following tasks:
04_Archive/.The skill contains automated scripts in the scripts/ directory and a CLI:
lint_brain.py — linter + ROT audit script (v3.2.1):python3 .agents/skills/power/scripts/lint_brain.py
generate_index.py — script for automatic hierarchical index generation:python3 .agents/skills/power/scripts/generate_index.py
power init <path> — create vault structurepower lint <path> — validate metadata, links, orphanspower index <path> — generate hierarchical indexpower ingest <path> — create note with OKF metadatapower search <path> <query> — full-text searchpower sync <path> — build FTS and dense indexpower rot <path> — ROT audit (duplicates, outdated, trivial)power archive <path> — archive outdated notespower status <path> — vault status dashboardpower cron <path> — automatic maintenancepower heal <path> — auto-fix frontmatterpower markdown-check <path> — check Markdown qualitypower suggest-related <path> — Graph RAG link suggestionspower synthesize <path> — create session summary notepower rename <path> --old <old_path> --new <new_path> — rename note and update Graph RAG linkslint_vault, generate_index, read_sub_index, ensure_sub_index, ingest_notesearch_vault_tool, synthesize_sessionrot_audit, archive_notes, suggest_related_toolheal_frontmatter_tool, check_markdown_toolBAAI/bge-m3 (1024 dim) via direct ONNX Runtime. BGE-M3 natively supports dense + sparse + ColBERT in a single model, enabling hybrid search (RRF) without a separate BM25. The provider is switched via POWER_EMBED_PROVIDER; fastembed/MiniLM remains a light opt-in fallback.onnx-community/bge-reranker-v2-m3-ONNX (SHA-pinned, Apache-2.0, UA+EN). jinaai/jina-reranker-v2-base-multilingual (CC-BY-NC) remains explicit opt-in.POWER_EMBED_BATCH_SIZE (default 8) — limits peak RAM usage during sync/embedding. On MemoryError, batch size is automatically halved.POWER_EMBED_NUM_THREADS (default 2) — caps ONNX/OMP/OpenBLAS threads.POWER_EMBED_COMMIT_EVERY (default 50) — frequency of persisting vectors to SQLite to reduce disk I/O.POWER_SYNC_VMEM_LIMIT_MB (default 0 = disabled) — optional virtual memory limit (RLIMIT_AS) for the sync process.ThreadPoolExecutor(max_workers=16)./root/geminicli/.agents/mcp_servers/power_server.py → power_framework.mcpP.O.W.E.R. uses hierarchical indexing to optimize AI agent context:
vault/
├── index.md # Navigation map (small, ~2KB)
├── 01_Projects/
│ └── _index.md # Detailed entries for Projects
├── 02_Areas/
│ └── _index.md # Detailed entries for Areas
├── 03_Resources/
│ └── _index.md # Detailed entries for Resources
└── 06_Daily_Logs/
└── _index.md # Detailed entries for Daily Logs
grep_search.index.md or call read_sub_index (read folder/_index.md) only if the path is unknown and grep_search yields no results..md files / list large folders: Use grep_search instead of list_dir for large categories to preserve tokens.| Approach | Token Cost | Context Quality |
|---|---|---|
Read all .md files | 🔴 ~50K+ | Full but wasteful |
Read only index.md | 🟢 ~2K | Insufficient |
index.md + relevant _index.md | 🟡 ~5-8K | Optimal balance |
| + specific notes | 🟡 ~10-15K | Precise, targeted |
When working with the knowledge base in the vault workspace (Workspace/Vault Root), ALWAYS follow this chain of actions (PAV + P.O.W.E.R.):
When creating or editing files, ensure the file starts with the correct frontmatter (OKF v0.1 — type is the only required field):
---
type: Project | Area | Resource | Daily Log | Archive | System Guide
title: "Page title"
description: "One-line description for the catalog"
tags: [tag1, tag2]
timestamp: YYYY-MM-DDTHH:MM:SS+TZ
---
After adding/changing a file, run the index generation script. It will automatically update index.md and all _index.md files:
python3 .agents/skills/power/scripts/generate_index.py
Record the completed action at the end of the log.md file in chronological format:
## [YYYY-MM-DD] <operation_type> | <action_title>
- **Action:** Brief description of what was done
- **Result:** Which files were changed/created
Run the linter script to check for new broken links or orphan pages:
python3 .agents/skills/power/scripts/lint_brain.py
If the linter reports errors (e.g., broken links in Home.md), fix them immediately.
feature/* or fix/*..env file.cleanup-branches skill must be run to clean up merged branches.