Skip to content

feat: add py-file-structure-bot agent for file structure audit and optimization#4743

Draft
SatoryKono wants to merge 2 commits into
mainfrom
feat/py-file-structure-bot
Draft

feat: add py-file-structure-bot agent for file structure audit and optimization#4743
SatoryKono wants to merge 2 commits into
mainfrom
feat/py-file-structure-bot

Conversation

@SatoryKono
Copy link
Copy Markdown
Owner

Summary

Создан специализированный агент py-file-structure-bot для аудита и оптимизации файловой структуры проекта BioETL.

Что создано

1. Agent Profile (.codex/agents/py-file-structure-bot.md)

  • 5 режимов работы: INVENTORY, AUDIT, NAMING, OPTIMIZE, BASELINE
  • 6 чеклистов аудита: canonical layout, orphan/stale detection, depth analysis, naming conventions, duplication, test mirror
  • Scoring matrix с 6 категориями (LC 25%, OS 20%, NC 20%, DN 15%, TM 10%, DUP 10%)
  • YAML output format с metrics, problems, optimization plan
  • Finding ID prefix: FS-
  • Dual verification protocol, Valid-by-design exclusions
  • Интеграция с py-plan-bot, py-test-bot, py-doc-bot, py-config-bot, py-architecture-debt-bot, py-audit-bot

2. Skill Entry Point (.codex/skills/py-file-structure-bot/SKILL.md)

  • Source-of-truth references к agent profile, ORCHESTRATION.md, memory policy
  • Evidence pack integration перед structural conclusions
  • Canonical memory workflow (pre-task / post-task)

3. Role-Specific Memory Sheet (docs/00-project/ai/memory/memory-py-file-structure-bot.md)

  • Canonical layout (7 top-level zones, 5 source layers)
  • Naming rules с exceptions
  • Depth limits (recommended max 7 from root, 5 for source)
  • Orphan detection heuristics с false positive exclusions
  • Evidence anchors
  • Integration points table

4. Registration

  • ORCHESTRATION.md: agent table (X), file zone table, ID system (FS-), knowledge mapping, simplified mode (§8.6)
  • agent-memory.md: agent table, specs, memory sheets, input params, ID system, skill table

Conversation: https://app.warp.dev/conversation/811657e0-cee6-4dba-a307-00f2966e6483
Run: https://oz.warp.dev/runs/019e70b8-9037-7db2-a9d5-3c3d4bb7d845

This PR was generated with Oz.

…timization

Create specialized agent for auditing and optimizing project file structure:
- Agent profile (.codex/agents/py-file-structure-bot.md) with 5 modes:
  INVENTORY, AUDIT, NAMING, OPTIMIZE, BASELINE
- Skill entry point (.codex/skills/py-file-structure-bot/SKILL.md)
- Role-specific memory sheet (docs/00-project/ai/memory/memory-py-file-structure-bot.md)
- Registration in ORCHESTRATION.md (agent table, file zones, ID system, knowledge map, simplified mode)
- Registration in agent-memory.md (agent table, specs, memory sheets, inputs, ID system, skills)

Co-Authored-By: Oz <oz-agent@warp.dev>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 28, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fdd7b58c-87ac-48f9-84ee-e232969313b9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/py-file-structure-bot

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 28, 2026
@mintlify
Copy link
Copy Markdown
Contributor

mintlify Bot commented May 28, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
biomoltech 🟢 Ready View Preview May 28, 2026, 10:45 PM

- Remove committed __pycache__/*.pyc files from git tracking (Block Compiled Python Artifacts)
- Add Dockerfile.gemini, conftest.py, docker-compose.gemini.yml, setup.ps1 to root allowlist (Root Hygiene)
- Remove --noconftest from detect-secrets pytest invocation to fix missing cached_subprocess_run fixture (Security Scans)
- Add bandit skips for B108, B310, B404, B603, B607 — false positives for local-only ETL tool (Security Scans / Bandit)
- Add xenon complexity exemptions for interfaces/http/* and application/workflow/* (Duplication and Complexity)
- Sync ORCHESTRATION.md mirror in docs/00-project/ai/agents/agents/ (Architecture Gates drift)
- Add memory-py-file-structure-bot.md to not_in_nav_baseline.txt (Architecture Gates doc growth)

Co-Authored-By: Oz <oz-agent@warp.dev>
@github-actions github-actions Bot added the ci/cd GitHub Actions, workflows label May 28, 2026
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd GitHub Actions, workflows documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant