Adk Style
google/adk-python
Python style and codebase conventions for ADK (Agent Development Kit): private-by-default file visibility, imports, type hints, Pydantic v2 models, formatting, docstrings, logging, async I/O, file…
Maintain openInvest's docs (docs/wiki chapters + docs/wiki/adr) under Google's Open Knowledge Format (OKF).
$ npx skills add longsizhuo/openInvest --skill okf-frontmatter -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install longsizhuo/openInvest okf-frontmatter --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/longsizhuo/openInvest.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/okf-frontmatter .claude/skills/okf-frontmatter && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "okf-frontmatter" agent skill from https://github.com/longsizhuo/openInvest/tree/main/skills/okf-frontmatter into .claude/skills/okf-frontmatter/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "okf-frontmatter", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/longsizhuo/openInvest/tree/main/skills/okf-frontmatterType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add longsizhuo/openInvest --skill okf-frontmatter -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install longsizhuo/openInvest okf-frontmatter --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/longsizhuo/openInvest.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/okf-frontmatter .agents/skills/okf-frontmatter && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "okf-frontmatter" agent skill from https://github.com/longsizhuo/openInvest/tree/main/skills/okf-frontmatter into .agents/skills/okf-frontmatter/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "okf-frontmatter", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add longsizhuo/openInvest --skill okf-frontmatter -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install longsizhuo/openInvest okf-frontmatter --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/longsizhuo/openInvest.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/okf-frontmatter .cursor/skills/okf-frontmatter && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "okf-frontmatter" agent skill from https://github.com/longsizhuo/openInvest/tree/main/skills/okf-frontmatter into .cursor/skills/okf-frontmatter/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "okf-frontmatter", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/longsizhuo/openInvest.git --path skills/okf-frontmatter--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add longsizhuo/openInvest --skill okf-frontmatter -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install longsizhuo/openInvest okf-frontmatter --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/longsizhuo/openInvest.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/okf-frontmatter .gemini/skills/okf-frontmatter && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "okf-frontmatter" agent skill from https://github.com/longsizhuo/openInvest/tree/main/skills/okf-frontmatter into .gemini/skills/okf-frontmatter/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "okf-frontmatter", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install longsizhuo/openInvest okf-frontmatterInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add longsizhuo/openInvest --skill okf-frontmatter -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/longsizhuo/openInvest.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/okf-frontmatter .github/skills/okf-frontmatter && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "okf-frontmatter" agent skill from https://github.com/longsizhuo/openInvest/tree/main/skills/okf-frontmatter into .github/skills/okf-frontmatter/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "okf-frontmatter", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add longsizhuo/openInvest --skill okf-frontmatter -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install longsizhuo/openInvest okf-frontmatter --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/longsizhuo/openInvest.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/okf-frontmatter .opencode/skills/okf-frontmatter && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "okf-frontmatter" agent skill from https://github.com/longsizhuo/openInvest/tree/main/skills/okf-frontmatter into .opencode/skills/okf-frontmatter/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "okf-frontmatter", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
okf-frontmatterMaintain openInvest's docs (docs/wiki chapters + docs/wiki/adr) under Google's Open Knowledge Format (OKF).
Okf Frontmatter is an agent skill from longsizhuo/openInvest. Maintain openInvest's docs (docs/wiki chapters + docs/wiki/adr) under Google's Open Knowledge Format (OKF). Two jobs. (1) Teach agents to maintain docs the OKF way — every doc carries a small YAML frontmatter block as the single source of truth (type, title, tags, intent, schemasource, documents); schema details link to the authoritative code instead of being copied into prose; no more hand-maintained thousand-line markdown. (2) Look docs up fast — grep the literal term FIRST; only when grep is ambiguous (hits…
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `CHANGELOG.md`, `README.md` and `references/conventions.md`).
It sits in Development, covering Architecture decision records, Linting and formatting and On-page SEO. It works with Python. The repository describes itself as: Research-grade investment decision engine for AI agents: isolated multi-agent committee, auditable verdicts, backtests with lookahead protection, published negative results. The licence is MIT.
Read from SKILL.md and the folder at commit 220abd2. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Python and Shell), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Okf Frontmatter loads about 1.5k tokens when it runs, and up to ~3.7k if it reads all its reference files. Until then it costs about 260 tokens; SKILL.md has 616 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from longsizhuo/openInvest at commit 220abd2, republished under its MIT licence (© longsizhuo). 616 words, ~1,538 tokens.
.claude/skills/okf-frontmatter/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.OpenInvest's docs live in docs/wiki/ (numbered chapters) and docs/wiki/adr/ (decision
records). Under OKF each doc starts with a YAML frontmatter block that is the single
source of truth about that doc. Tooling reads the frontmatter; humans read the prose. The
goal: stop maintaining huge prose docs that duplicate what the code already says — link to
the code instead, and let find_docs.py do navigation.
Point the script at a repo with --repo <path>, or just run it from inside that repo (it
auto-detects the nearest ancestor containing docs/wiki/, else uses the working dir). It is
read-only except for docs you explicitly edit. The conventions below use openInvest as the
worked example, but the mechanics (find / schema / lint) work on any repo whose
markdown carries OKF frontmatter.
The rule of thumb: frontmatter is structured truth; prose is explanation. Anything that
is a schema (a Pydantic model, a dataclass, a config key, an endpoint contract) lives in
code — the doc points to it via schema_source / documents, it does not re-type it.
When the code changes, lint tells you which doc's pointer went stale. Don't grow a doc past
a few screens of "why / how it fits together"; if you're copying field tables out of code,
stop and add a schema_source pointer instead.
Common to every doc:
| field | required | meaning |
|---|---|---|
type | ✅ | wiki-chapter | adr | index | reference | report | readme |
title | rec. | human title (usually the H1) |
tags | opt. | [api, rest, ...] — coarse categories |
intent | opt. | one short phrase the lookup ranks on, e.g. API Contract, 决策参数, 部署 |
schema_source | opt. | list of relpath:Symbol pointers to the authoritative code, e.g. connectors/web_api/models.py:PortfolioResponse |
documents | opt. | {endpoints: [GET /api/x], config_keys: [a.b], symbols: [Foo]} — concrete things this doc covers |
ADR-only (lifecycle):
| field | meaning |
|---|---|
status | proposed | accepted | superseded (normalizes the old **状态** line) |
date | decision date |
supersedes / superseded_by | ADR ids, e.g. [010] |
Relationships between docs stay as ordinary markdown links in the body (that's the OKF
knowledge graph). supersedes/superseded_by are typed mirrors lint cross-checks.
run.sh new <type> <name> prints a frontmatter skeleton to stdout — paste it
at the top of the new file, fill it in.schema_source/documents from the code the doc describes (grep
connectors/web_api/models.py, core/schemas.py, core/config/).run.sh lint before committing — fix any error (broken link / dangling pointer /
missing type).See references/conventions.md for the full schema + the "no thousand-line prose" rule, and
references/okf-spec.md for what OKF is.
find_docs.py is not the first move. grep is. The script only pays off when grep can't
tell you which doc is authoritative.
1. grep the literal term first (ripgrep) — zero script overhead.
2. grep is decisive? → read that doc, done.
"decisive" = the term hits one file, or hits a heading / frontmatter (that doc owns it).
3. grep is ambiguous? → run.sh find <query>
"ambiguous" = hits scattered across ≥3 files / only in prose / 0 hits (synonym mismatch).Why: on a clean literal hit, grep is already optimal and the script just adds a call. The
win comes from not calling the script on easy queries — so don't run both in parallel.
The script's real value is matching intent, not strings: it ranks the doc whose
frontmatter owns the symbol/endpoint/config-key first, even when the literal keyword is
buried. Full decision tree + the benchmark behind it: references/lookup-strategy.md.
| command | use |
|---|---|
run.sh find <query> | symbol (PortfolioResponse), endpoint (GET /api/holdings), config key (verdict.risk_profile), intent/tag, or keyword → ranked owning docs (JSON, strongest match first) |
run.sh schema <doc> | resolve a doc's schema_source and print the real code definitions — read the authoritative schema without opening the prose |
run.sh index [--cache] | dump the whole frontmatter index as JSON (--cache writes docs/.okf-index.json) |
run.sh lint [--ci] | OKF compliance + drift; --ci exits non-zero only on errors (un-migrated docs are info, never a failure) |
run.sh new <type> <name> | print a frontmatter skeleton |
| file | when to read |
|---|---|
references/okf-spec.md | what the Open Knowledge Format is (the 1-page version) |
references/conventions.md | this repo's frontmatter schema + maintenance rules |
references/lookup-strategy.md | the grep-first / script-fallback decision tree + benchmark |
© longsizhuo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 7 other files (scripts, references) in skills/okf-frontmatter of longsizhuo/openInvest.
Open the folder on GitHubat commit 220abd2
Okf Frontmatter next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Okf Frontmatter this skilllongsizhuo/openInvest | 108 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Adk Stylegoogle/adk-python | 22k | — | ~769 | Automated safety check: Pass | Apache-2.0 | |
| Minimizing Ty Ecosystem Changesastral-sh/ruff | 50k | — | ~4.6k | Automated safety check: Pass | MIT | |
| Summarise Ecosystem Resultsastral-sh/ruff | 50k | — | ~2.2k | Automated safety check: Pass | MIT | |
| Kedro Babysitkedro-org/kedro | 11k | — | ~4k | Automated safety check: Pass | Custom licence | |
| Saleor Commit Workflowsaleor/saleor | 23k | — | ~575 | Automated safety check: Pass | BSD-3-Clause |
google/adk-python
Python style and codebase conventions for ADK (Agent Development Kit): private-by-default file visibility, imports, type hints, Pydantic v2 models, formatting, docstrings, logging, async I/O, file…
astral-sh/ruff
A skill your agent uses when a user says "minimize this ty ecosystem change", "reproduce this ecosystem result", "investigate a primer difference", "investigate a mypyprimer difference"…
astral-sh/ruff
A skill your agent uses when a user says "summarise ecosystem results", "summarize this ty ecosystem report", "what changed in this ecosystem run?", or asks to summarise or summarize ty ecosystem…
kedro-org/kedro
Run Kedro's local lint / format / type-check / tests on changed files (uses the project's pre-commit hooks, ruff, mypy, pytest, lint-imports, detect-secrets, Make targets — in the right venv), or…
saleor/saleor
Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.
SpillwaveSolutions/design-doc-mermaid
Create Mermaid diagrams (flowchart, sequence, class, ER, state, C4, architecture) from text or source code.
longsizhuo/openInvest
First-time openInvest installation and onboarding. An agent skill from longsizhuo/openInvest.
longsizhuo/openInvest
openInvest multi-asset AI investment committee — daily use. An agent skill from longsizhuo/openInvest.
longsizhuo/openInvest
Back up / restore openInvest's local state — memory/ (holdings, strategy, user profile, committee records, dream logs) + db/ (trade ledger, job run history, market-data cache) + .env (SMTP/API…
Works with
Categories
Maintain openInvest's docs (docs/wiki chapters + docs/wiki/adr) under Google's Open Knowledge Format (OKF). Okf Frontmatter is an agent skill from longsizhuo/openInvest. Maintain openInvest's docs (docs/wiki chapters + docs/wiki/adr) under Google's Open Knowledge Format (OKF).
Okf Frontmatter fits situations like: phrases — which doc covers X; find the schema for PortfolioResponse; where is GET /api/holdings documented; docs for verdict.riskprofile.
Run `npx skills add longsizhuo/openInvest --skill okf-frontmatter -a claude-code`. Or copy the skill folder (skills/okf-frontmatter in longsizhuo/openInvest) into .claude/skills/okf-frontmatter in your project. Claude Code loads it when a task matches its description.
Run `npx skills add longsizhuo/openInvest --skill okf-frontmatter -a codex`. Or copy the skill folder (skills/okf-frontmatter in longsizhuo/openInvest) into .agents/skills/okf-frontmatter in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add longsizhuo/openInvest --skill okf-frontmatter -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/okf-frontmatter, .gemini/skills/okf-frontmatter, .github/skills/okf-frontmatter and .opencode/skills/okf-frontmatter in your project.
Going by SKILL.md and its folder, Okf Frontmatter needs Python and a shell for the scripts in its folder. Our summary lists: Python 3; A Bash shell.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Okf Frontmatter is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.2k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Okf Frontmatter: Adk Style (google/adk-python, 22k stars), Minimizing Ty Ecosystem Changes (astral-sh/ruff, 50k stars), Summarise Ecosystem Results (astral-sh/ruff, 50k stars) and Kedro Babysit (kedro-org/kedro, 11k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
longsizhuo (a GitHub user) maintains it in longsizhuo/openInvest, which has 108 GitHub stars. The repository was last updated on October 11, 2026.
Source: longsizhuo/openInvest on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.