{"id":47630218,"url":"https://github.com/iptoux/repo-hc","last_synced_at":"2026-04-01T23:18:52.752Z","repository":{"id":343815172,"uuid":"1179290762","full_name":"iptoux/repo-hc","owner":"iptoux","description":"repo-hc is a developer npm package for automated GitHub housekeeping. It provides AI-agent guidance and workflow contracts to keep repositories clean, secure, and well documented.","archived":false,"fork":false,"pushed_at":"2026-03-12T01:10:45.000Z","size":103,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-12T02:15:43.835Z","etag":null,"topics":["ai-agent","cli","codex","developer-tooling","documentation","github-automation","npm-package","openai","repository-maintenance","workflow-automation"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/repo-hc","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iptoux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-11T22:09:55.000Z","updated_at":"2026-03-12T01:10:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/iptoux/repo-hc","commit_stats":null,"previous_names":["iptoux/repo-hc"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/iptoux/repo-hc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iptoux%2Frepo-hc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iptoux%2Frepo-hc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iptoux%2Frepo-hc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iptoux%2Frepo-hc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iptoux","download_url":"https://codeload.github.com/iptoux/repo-hc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iptoux%2Frepo-hc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agent","cli","codex","developer-tooling","documentation","github-automation","npm-package","openai","repository-maintenance","workflow-automation"],"created_at":"2026-04-01T23:18:52.083Z","updated_at":"2026-04-01T23:18:52.743Z","avatar_url":"https://github.com/iptoux.png","language":"JavaScript","readme":"﻿# repo-hc\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"./README.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/Status-Published-16A34A?style=for-the-badge\" alt=\"Status: Published\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/repo-hc\"\u003e\u003cimg src=\"https://img.shields.io/badge/npm-repo--hc-CB3837?style=for-the-badge\u0026logo=npm\u0026logoColor=white\" alt=\"npm package: repo-hc\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/repo-hc\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/repo-hc?style=for-the-badge\u0026logo=npm\u0026logoColor=white\" alt=\"npm version\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/repo-hc\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/repo-hc?style=for-the-badge\u0026logo=npm\u0026logoColor=white\" alt=\"npm downloads\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/iptoux/repo-hc/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/iptoux/repo-hc?style=for-the-badge\u0026logo=github\u0026logoColor=white\" alt=\"GitHub stars\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://openai.com/\"\u003e\u003cimg src=\"https://img.shields.io/badge/AI-OpenAI%20Codex-111827?style=for-the-badge\u0026logo=openai\u0026logoColor=white\" alt=\"AI: OpenAI Codex\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.anthropic.com/\"\u003e\u003cimg src=\"https://img.shields.io/badge/AI-Anthropic%20Claude%20CLI-111827?style=for-the-badge\" alt=\"AI: Anthropic Claude CLI\" /\u003e\u003c/a\u003e\n  \u003ca href=\"./docs/README.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/Docs-Self_Structured-0EA5E9?style=for-the-badge\u0026logo=readthedocs\u0026logoColor=white\" alt=\"Documentation: Self structured\" /\u003e\u003c/a\u003e\n  \u003ca href=\"./SECURITY.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/Security-Policy-DC2626?style=for-the-badge\u0026logo=shield\u0026logoColor=white\" alt=\"Security policy\" /\u003e\u003c/a\u003e\n  \u003ca href=\"./LICENSE.txt\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-AGPL--3.0-6B7280?style=for-the-badge\" alt=\"License: AGPL-3.0\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e\n  \u003ccode\u003erepo-hc\u003c/code\u003e is a developer npm package for automated GitHub housekeeping.\u003cbr/\u003e\n  It provides AI-agent guidance and workflow contracts to keep repositories clean, secure, and well documented.\n\u003c/h3\u003e\n\n\u003e [!IMPORTANT]\n\u003e `repo-hc` is published on npm. This repository remains the source of truth for architecture, rules, and documentation.\n\n## Table of Contents\n\n- [Vision](#vision)\n- [AI Agent Workflow System](#ai-agent-workflow-system)\n- [Installation](#installation)\n- [Bootstrap Behavior](#bootstrap-behavior)\n- [What The Package Will Cover](#what-the-package-will-cover)\n- [Documentation System](#documentation-system)\n- [Repository Layout](#repository-layout)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Vision\n\n`repo-hc` is designed to standardize how an AI agent maintains a repository by enforcing repeatable housekeeping practices:\n\n- plan-first execution\n- branch discipline\n- security-aware changes\n- synchronized documentation\n- explicit auditability of AI-assisted work\n\nPrimary optimization targets: **OpenAI Codex** and **Anthropic Claude CLI**.\n\n## AI Agent Workflow System\n\nAI-assisted work in this repository is guided by [AGENTS.md](./AGENTS.md), [CLAUDE.md](./CLAUDE.md), and the local [`.agents/`](./.agents/README.md) knowledge base:\n\n![repo-hc AI Workflow](./docs/assets/codex-workflow.svg)\n![repo-hc Agent Execution Flow](./docs/assets/agent-flow.svg)\n\n- [AGENTS.md](./AGENTS.md): baseline collaboration, architecture, security, and documentation rules\n- [CLAUDE.md](./CLAUDE.md): Claude CLI baseline guidance aligned to repository rules\n- [`.agents/rules/`](./.agents/rules/): user-defined operational rules\n- [`.agents/skills/`](./.agents/skills/): reusable `SKILL.md` playbooks\n- [`.agents/learnings/`](./.agents/learnings/): implementation learnings and decisions\n- [`.agents/prompts/`](./.agents/prompts/): sanitized source prompts for traceability\n- [`.agents/plans/`](./.agents/plans/): scoped feature implementation plans\n\n## Installation\n\n```bash\nnpm view repo-hc version\npnpm add repo-hc\npnpm exec repo-hc init\n```\n\nInstall directly from npm:\n\n- package name: `repo-hc`\n\n\u003e [!TIP]\n\u003e Start every AI-assisted task with the agent baseline file:\n\u003e - Codex: [AGENTS.md](./AGENTS.md)\n\u003e - Claude CLI: [CLAUDE.md](./CLAUDE.md)\n\u003e   Then continue with [`.agents/README.md`](./.agents/README.md), then [docs/README.md](./docs/README.md).\n\u003e The effective behavior rules are user-defined in [`/.agents/rules`](./.agents/rules/).\n\n## Bootstrap Behavior\n\nRun `repo-hc init` after installation to bootstrap these assets into the consumer project root:\n\n- `.agents/`\n- `docs/`\n- `AGENTS.md` (canonical)\n\nClaude CLI note:\n\n- `CLAUDE.md` is maintained in this repository for Claude CLI workflows.\n- Current package bootstrap guarantees `AGENTS.md` as canonical baseline file.\n\nFor `.agents/`, repository-internal non-example files are excluded from transfer in:\n\n- `.agents/rules/`\n- `.agents/learnings/`\n- `.agents/plans/`\n- `.agents/prompts/`\n\nOnly each folder's `examples/` content is copied for those areas.\n\nWhen `repo-hc init` runs interactively, it also asks whether common agent files should be hidden in VS Code Explorer.  \nIf confirmed, it creates or updates `.vscode/settings.json` with `files.exclude` entries for:\n\n- `.agents`\n- `AGENTS.md`\n\nExisting files are preserved by default (non-destructive copy). To run or re-run:\n\n```bash\npnpm exec repo-hc init\n```\n\nTo overwrite existing files intentionally:\n\n```bash\npnpm exec repo-hc init --force\n```\n\n## What The Package Will Cover\n\n- repository hygiene workflows for AI agents\n- change planning and branch policies\n- documentation synchronization rules\n- security and secret-handling safeguards\n- reusable prompts, learnings, and skills integration\n\n## Documentation System\n\nProject documentation is centralized in [`docs/`](./docs/) and organized by feature, audience, and architecture diagrams:\n\n- [`docs/README.md`](./docs/README.md): docs index and reading order\n- [`docs/project/`](./docs/project/): global standards and rules\n- [`docs/workflow/`](./docs/workflow/): contributor workflow guides\n- [`docs/housekeeping/`](./docs/housekeeping/): package-specific developer and user docs\n- [`docs/mermaid/`](./docs/mermaid/): architecture and workflow diagrams\n\n## Repository Layout\n\n- [AGENTS.md](./AGENTS.md): baseline guidance for AI-assisted implementation\n- [CLAUDE.md](./CLAUDE.md): baseline guidance for Anthropic Claude CLI workflows\n- [`.agents/`](./.agents/README.md): internal rules, prompts, learnings, plans, and skills\n- [docs/](./docs/README.md): public project documentation and Mermaid diagrams\n- [CONTRIBUTING.md](./CONTRIBUTING.md): contributor workflow\n- [SECURITY.md](./SECURITY.md): vulnerability reporting and security baseline\n\n## Contributing\n\nPlease follow the process in [CONTRIBUTING.md](./CONTRIBUTING.md).\n\nShort version:\n\n1. Create a dedicated feature branch.\n2. Implement your intended change or extension directly, preferably as reusable `.agents` updates (including rules, examples, prompts, learnings, or skills for agents like Claude, Kiro, Kilo, etc.).\n3. Keep documentation in sync with every behavior or workflow change.\n\n## License\n\nLicensed under AGPL-3.0. See [LICENSE.txt](./LICENSE.txt).\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiptoux%2Frepo-hc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiptoux%2Frepo-hc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiptoux%2Frepo-hc/lists"}