b3os-infra-safety

b3os-infra-safety is a skill for Claude Code, Codex from b3rys/b3rys-team-os. It costs 132 tokens per session (1,310 once invoked), scanned A, original, Apache-2.0.

A safety checklist for changing the b3os platform itself, including source code, configuration, runtime state, databases, releases, deployments, and server restarts.

In plain words
What is it for?
Use it before editing b3os code or configuration, touching agents.json or team.db, running risky tests, releasing or deploying software, or restarting the server.
Why use it?
It reduces the risk that isolated development or testing will overwrite live team data. The rules require separate workspaces, backups, safe state-file updates, and filesystem-isolated tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before editing b3os code or configuration, touching agents.json or team.db, running risky tests, releasing or deploying software, or restarting the server.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/b3rys/b3rys-team-os/b3os-infra-safety
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add b3rys/b3rys-team-os --skill b3os-infra-safety
Clone the repo
git clone --depth 1 https://github.com/b3rys/b3rys-team-os

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for b3os-infra-safety

README.md
[![agentmods](https://agentmods.dev/badge/skills/b3rys/b3rys-team-os/b3os-infra-safety/github.svg)](https://agentmods.dev/skills/b3rys/b3rys-team-os/b3os-infra-safety)
Your own site
<a href="https://agentmods.dev/skills/b3rys/b3rys-team-os/b3os-infra-safety"><img src="https://agentmods.dev/badge/skills/b3rys/b3rys-team-os/b3os-infra-safety/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for b3os-infra-safety

Your own site · 80×15
<a href="https://agentmods.dev/skills/b3rys/b3rys-team-os/b3os-infra-safety"><img src="https://agentmods.dev/badge/skills/b3rys/b3rys-team-os/b3os-infra-safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,310 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00132 $0.01310
Opus 5 $0.00066 $0.00655
Sonnet 5 $0.00026 $0.00262
Haiku 4.5 $0.00013 $0.00131

Measured 11d ago against content hash 1235dbd8c16b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

b3os-infra-safety scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/b3os-infra-safety/SKILL.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

b3os-infra-safety — b3os 인프라 작업 안전 규칙

b3os 플랫폼 자체(코드·config·registry·DB·릴리스 스크립트)를 고칠 때 지킨다. 일반 팀 협업·대화가 아니라 b3os 인프라를 수정하는 작업 전용. (팀 통신·오너판정·안전게이트 같은 상시 규칙은 TEAM-OS에 남아있다 — 여기는 "b3os를 고치는 법".)

언제 이 스킬을 보나

팀원이 b3os의 소스·설정·runtime 상태·릴리스를 건드릴 때: 코드 수정, config 변경, agents.json/team.db 조작, 테스트/빌드 실행, 공개 릴리스·라이브 배포 작업, 서버 재시작. 이 작업 전에 이 규칙을 적용한다.

① 브랜치·worktree 격리

  • git-추적 파일 수정은 task 브랜치/worktree에서만. 공유 main 워킹트리에 직접 쓰지 않는다. 한 task = 한 브랜치.
  • task 카드는 브랜치가 있으면 그 브랜치를 명시. 코드/문서 리뷰·핸드오프는 브랜치를 명시(없으면 리뷰어가 먼저 물어본다).
  • 새/작은 프로젝트는 브랜치 전략 도입 전까지 main에서 작업 가능.

② 런타임 상태 보호 (★사고 재발방지 핵심★)

  • agents.json·team.db 같은 런타임 상태 파일을 worktree↔라이브 트리 사이에 심링크하지 않는다. 각 worktree는 자기 실파일을 갖는다.
    • 이유: 심링크는 읽기·쓰기가 다 원본으로 통한다. worktree가 상태 파일에 쓰면 그 write가 라이브 원본을 덮어써 팀 전체를 날릴 수 있다(파일 write라 DB는 남아 "registry=[] · DB=정상"의 조용한 유실).
  • 읽기 위주 파일(스킬 등)의 심링크는 안전하지만, 자주 쓰이는 상태 파일은 절대 심링크 금지.
  • 상태 파일에 > 리다이렉트로 직접 쓰지 않는다. 항상 임시파일 작성 → 검증 → 원자적 mv.

③ 백업 먼저

  • registry(agents.json)/DB(team.db) 변경, 배포, 상태를 건드릴 수 있는 테스트 실행 전에 agents.json+team.db를 타임스탬프 백업한다. 유실돼도 즉시 복구된다.

④ 테스트 FS 격리

  • 테스트는 실 파일시스템을 건드리지 않는다. registry/DB/워크스페이스/토큰 파일은 mktemp/tmp로 격리하고, TEAM_AGENT_REGISTRY 등 registry 경로 env를 tmp로 명시한다.
  • env 격리만으로 부족한 경우(심링크·경로 기본값이 라이브를 가리킴)를 조심한다 — 격리는 "env를 읽는 코드"만 보호한다.

⑤ 릴리스·배포 가드

  • 릴리스 산출물을 만드는 스크립트를 쓸 때, 출력(OUT)은 항상 새 격리 dir(예: mktemp -d)이며 라이브 repo 루트가 아니어야 한다. (main이 공개 정본이 된 뒤로는 별도 릴리스 생성 명령이 없다 — 배포 절차는 docs/DEPLOY_MERGE_HOTFIX_WORKFLOW.md의 “라이브 배포 흐름”.)
  • 배포 전: 관련 변경 커밋됨 · 테스트/타입체크/acceptance 통과 · 리뷰/게이트 완료 · 롤백/스냅샷 확보 · 시크릿 스크럽 스캔 통과 · 다른 멤버가 동시에 재시작/배포할 수 있으면 코디네이션 핑.

⑥ 오너 코디네이션

  • 파일/영역당 오너 1명. 다른 오너의 영역을 건드리기 전에 먼저 조율. 공유 파일에 섞인 변경은 조용히 나누거나 덮지 말고 영역 오너가 해소·재리뷰.

⑦ 정리

  • 브랜치 머지 후 worktree 제거. stale worktree 주기적 prune.

코드로 강제되는 것 (문서 규칙에만 안 맡긴다)

핵심 안전은 코드 가드가 강제한다(사람·모델이 규칙을 어겨도 라이브가 안 날아가게):

  • registry writer가 심링크로 트리 밖·라이브 registry에 쓰는 것 거부(realpath 검사)
  • 비어있지 않은 registry에 빈 []를 덮을 때 백업 + 명시 force 요구
  • 서버가 registry가 갑자기 0으로 떨어지면(DB엔 멤버 있는데) 자동복구

Read the full file on GitHub · 58 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 58 lines · 132 tokens per session scan A 1235dbd8c16b

Subscribe to this mod's changes

b3os-infra-safety is a skill published in the GitHub repository b3rys/b3rys-team-os (13 stars, last pushed today), licensed Apache-2.0. It adds 132 tokens to every session and 1,310 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.