@ghostbyte/agent-docs-kit 0.0.0-stage → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +82 -2
  3. package/bin/agent-docs.mjs +8 -0
  4. package/content/catalog.json +196 -0
  5. package/content/engineering/01-query-performance.md +48 -0
  6. package/content/engineering/02-networking-fundamentals.md +48 -0
  7. package/content/engineering/03-rate-limiting-algorithms.md +48 -0
  8. package/content/engineering/04-production-debugging.md +48 -0
  9. package/content/engineering/05-code-review-practices.md +48 -0
  10. package/content/engineering/06-data-modeling.md +48 -0
  11. package/content/engineering/07-cloud-cost-saving.md +48 -0
  12. package/content/engineering/08-testing-types.md +48 -0
  13. package/content/engineering/09-message-queues.md +48 -0
  14. package/content/engineering/full-reference.md +144 -0
  15. package/content/security/01-design-architecture.md +39 -0
  16. package/content/security/02-local-development.md +41 -0
  17. package/content/security/03-database-backend.md +46 -0
  18. package/content/security/04-api-layer.md +51 -0
  19. package/content/security/05-frontend-ui.md +44 -0
  20. package/content/security/06-application-security-testing.md +48 -0
  21. package/content/security/07-cicd-release-engineering.md +41 -0
  22. package/content/security/08-cloud-infrastructure.md +45 -0
  23. package/content/security/09-edge-cdn-dns.md +44 -0
  24. package/content/security/10-release-rollout.md +41 -0
  25. package/content/security/11-post-release-monitoring-ir.md +43 -0
  26. package/content/security/12-ongoing-operations.md +52 -0
  27. package/content/security/full-reference.md +3173 -0
  28. package/docs/ARCHITECTURE.md +107 -0
  29. package/docs/CONTENT_MAINTENANCE.md +9 -0
  30. package/docs/GITHUB_AND_NPM_SETUP.md +104 -0
  31. package/docs/PURPOSE.md +23 -0
  32. package/docs/RELEASE_PROCESS.md +11 -0
  33. package/docs/SECURITY_MODEL.md +9 -0
  34. package/docs/archive/AGENT_DOCS_KIT_v3.2.md +1025 -0
  35. package/package.json +57 -4
  36. package/skills/manage-project-quality/SKILL.md +78 -0
  37. package/skills/manage-project-quality/agents/openai.yaml +4 -0
  38. package/skills/manage-project-quality/assets/documentation-report.md +12 -0
  39. package/skills/manage-project-quality/assets/engineering-report.md +13 -0
  40. package/skills/manage-project-quality/assets/security-report.md +18 -0
  41. package/skills/manage-project-quality/references/documentation-governance.md +39 -0
  42. package/skills/manage-project-quality/references/engineering-01-query-performance.md +48 -0
  43. package/skills/manage-project-quality/references/engineering-02-networking-fundamentals.md +48 -0
  44. package/skills/manage-project-quality/references/engineering-03-rate-limiting-algorithms.md +48 -0
  45. package/skills/manage-project-quality/references/engineering-04-production-debugging.md +48 -0
  46. package/skills/manage-project-quality/references/engineering-05-code-review-practices.md +48 -0
  47. package/skills/manage-project-quality/references/engineering-06-data-modeling.md +48 -0
  48. package/skills/manage-project-quality/references/engineering-07-cloud-cost-saving.md +48 -0
  49. package/skills/manage-project-quality/references/engineering-08-testing-types.md +48 -0
  50. package/skills/manage-project-quality/references/engineering-09-message-queues.md +48 -0
  51. package/skills/manage-project-quality/references/engineering-full-reference.md +144 -0
  52. package/skills/manage-project-quality/references/engineering-protocol.md +23 -0
  53. package/skills/manage-project-quality/references/evidence-and-reporting.md +19 -0
  54. package/skills/manage-project-quality/references/security-01-design-architecture.md +39 -0
  55. package/skills/manage-project-quality/references/security-02-local-development.md +41 -0
  56. package/skills/manage-project-quality/references/security-03-database-backend.md +46 -0
  57. package/skills/manage-project-quality/references/security-04-api-layer.md +51 -0
  58. package/skills/manage-project-quality/references/security-05-frontend-ui.md +44 -0
  59. package/skills/manage-project-quality/references/security-06-application-security-testing.md +48 -0
  60. package/skills/manage-project-quality/references/security-07-cicd-release-engineering.md +41 -0
  61. package/skills/manage-project-quality/references/security-08-cloud-infrastructure.md +45 -0
  62. package/skills/manage-project-quality/references/security-09-edge-cdn-dns.md +44 -0
  63. package/skills/manage-project-quality/references/security-10-release-rollout.md +41 -0
  64. package/skills/manage-project-quality/references/security-11-post-release-monitoring-ir.md +43 -0
  65. package/skills/manage-project-quality/references/security-12-ongoing-operations.md +52 -0
  66. package/skills/manage-project-quality/references/security-full-reference.md +3173 -0
  67. package/skills/manage-project-quality/references/security-protocol.md +22 -0
  68. package/skills/manage-project-quality/scripts/check-report.mjs +23 -0
  69. package/src/api/index.mjs +4 -0
  70. package/src/cli/arguments.mjs +30 -0
  71. package/src/cli/help.mjs +24 -0
  72. package/src/cli/main.mjs +65 -0
  73. package/src/commands/audit.mjs +49 -0
  74. package/src/commands/doctor.mjs +12 -0
  75. package/src/commands/list.mjs +11 -0
  76. package/src/commands/setup.mjs +42 -0
  77. package/src/commands/skill.mjs +14 -0
  78. package/src/commands/validate.mjs +20 -0
  79. package/src/core/catalog.mjs +19 -0
  80. package/src/core/files.mjs +42 -0
  81. package/src/core/paths.mjs +5 -0
@@ -0,0 +1,107 @@
1
+ # Architecture and file structure
2
+
3
+ The repository separates executable behavior, canonical reference content, the installable skill, project templates, maintainer automation, tests, and the static website.
4
+
5
+ ```text
6
+ Agent_Docs_Kit/
7
+ ├─ .github/
8
+ │ └─ workflows/
9
+ │ ├─ ci.yml # tests, validation, package smoke check
10
+ │ ├─ pages.yml # GitHub Pages build and deployment
11
+ │ └─ publish-npm.yml # npm trusted-publishing release
12
+ ├─ bin/
13
+ │ └─ agent-docs.mjs # npm executable entry point
14
+ ├─ src/
15
+ │ ├─ api/
16
+ │ │ └─ index.mjs # programmatic public exports
17
+ │ ├─ cli/
18
+ │ │ ├─ arguments.mjs # option and positional parsing
19
+ │ │ ├─ help.mjs # command reference
20
+ │ │ └─ main.mjs # direct-command and menu router
21
+ │ ├─ commands/
22
+ │ │ ├─ audit.mjs # docs/security report creation
23
+ │ │ ├─ doctor.mjs # prerequisite checks
24
+ │ │ ├─ list.mjs # phase/topic discovery
25
+ │ │ ├─ setup.mjs # project docs scaffold
26
+ │ │ ├─ skill.mjs # explicit skill installation
27
+ │ │ └─ validate.mjs # package integrity checks
28
+ │ └─ core/
29
+ │ ├─ catalog.mjs # canonical catalog loader
30
+ │ ├─ files.mjs # safe write/copy primitives
31
+ │ └─ paths.mjs # package-relative resolution
32
+ ├─ content/
33
+ │ ├─ catalog.json # phase/topic IDs, slugs, sources
34
+ │ ├─ security/
35
+ │ │ ├─ 01-design-architecture.md
36
+ │ │ ├─ ... # phases 02–11
37
+ │ │ ├─ 12-ongoing-operations.md
38
+ │ │ └─ full-reference.md # deep lookup; not loaded by default
39
+ │ └─ engineering/
40
+ │ ├─ 01-query-performance.md
41
+ │ ├─ ... # topics 02–08
42
+ │ ├─ 09-message-queues.md
43
+ │ └─ full-reference.md
44
+ ├─ skills/
45
+ │ └─ manage-project-quality/
46
+ │ ├─ agents/
47
+ │ │ └─ openai.yaml # skill UI metadata
48
+ │ ├─ assets/
49
+ │ │ ├─ documentation-report.md
50
+ │ │ ├─ engineering-report.md
51
+ │ │ └─ security-report.md
52
+ │ ├─ references/
53
+ │ │ ├─ documentation-governance.md
54
+ │ │ ├─ engineering-protocol.md
55
+ │ │ ├─ evidence-and-reporting.md
56
+ │ │ ├─ security-protocol.md
57
+ │ │ ├─ security-01-....md # 12 progressive phase files
58
+ │ │ └─ engineering-01-....md # 9 progressive topic files
59
+ │ ├─ scripts/
60
+ │ │ └─ check-report.mjs
61
+ │ └─ SKILL.md # concise routing instructions
62
+ ├─ scripts/
63
+ │ ├─ build-site.mjs
64
+ │ ├─ build-skill.mjs
65
+ │ └─ validate-content.mjs
66
+ ├─ site/
67
+ │ ├─ index.html
68
+ │ └─ styles.css
69
+ ├─ tests/
70
+ │ ├─ cli.test.mjs
71
+ │ └─ content.test.mjs
72
+ ├─ build/ # generated, ignored
73
+ │ └─ site/
74
+ ├─ docs/
75
+ │ ├─ ARCHITECTURE.md
76
+ │ ├─ GITHUB_AND_NPM_SETUP.md
77
+ │ ├─ PURPOSE.md
78
+ │ ├─ RELEASE_PROCESS.md
79
+ │ └─ SECURITY_MODEL.md
80
+ ├─ docs/archive/
81
+ │ └─ AGENT_DOCS_KIT_v3.2.md # retained legacy compiled edition
82
+ ├─ LICENSE
83
+ ├─ README.md
84
+ └─ package.json
85
+ ```
86
+
87
+ ## Installed project structure
88
+
89
+ `agent-docs setup` creates only the starting documents needed to establish ownership and navigation:
90
+
91
+ ```text
92
+ .agent-docs/config.json
93
+ docs/
94
+ ├─ README.md
95
+ ├─ 01-system/overview.md
96
+ ├─ 02-project/README.md
97
+ ├─ 03-development/
98
+ │ └─ engineering-reviews/
99
+ ├─ 04-testing/
100
+ │ ├─ security-audits/
101
+ │ └─ evidence/
102
+ ├─ 05-operations/README.md
103
+ ├─ 06-future-enhancements/README.md
104
+ └─ archive/README.md
105
+ ```
106
+
107
+ The CLI creates audit reports beneath this tree. It does not copy the entire reference library into each consumer project.
@@ -0,0 +1,9 @@
1
+ # Content maintenance
2
+
3
+ The files under `content/` are canonical. Run `npm run build` after changing them so the installable skill receives the same progressive references.
4
+
5
+ Review security guidance at least quarterly and after material changes to major standards, threat models, supported platforms, or tooling. Record the source and review date in the changed content or pull request. Verify external claims against primary sources.
6
+
7
+ Review engineering topics when supported runtimes, architectural assumptions, or operational scale change. Keep recommendations contextual and avoid presenting preferences as universal rules.
8
+
9
+ Before release, run the content validator. It checks catalog/source consistency and common encoding corruption. A human review is still required for technical accuracy and link freshness.
@@ -0,0 +1,104 @@
1
+ # GitHub and npm setup
2
+
3
+ These commands assume the GitHub owner is `ghostbyte1014`, the repository is `Agent_Docs_Kit`, and the npm package is owned by the separate npm account `ghostbyte` at `@ghostbyte/agent-docs-kit`.
4
+
5
+ ## 1. Validate locally
6
+
7
+ On Windows PowerShell, use `npm.cmd` if execution policy blocks `npm.ps1`:
8
+
9
+ ```powershell
10
+ npm.cmd install
11
+ npm.cmd test
12
+ npm.cmd run validate
13
+ npm.cmd run build
14
+ npm.cmd pack --dry-run
15
+ ```
16
+
17
+ ## 2. Create and push the GitHub repository
18
+
19
+ With GitHub CLI:
20
+
21
+ ```powershell
22
+ git add .
23
+ git commit -m "feat: unify Agent Docs and Quality Kit"
24
+ gh auth login
25
+ gh repo create ghostbyte1014/Agent_Docs_Kit --public --source . --remote origin --push
26
+ ```
27
+
28
+ If `origin` already exists, inspect it before changing anything:
29
+
30
+ ```powershell
31
+ git remote -v
32
+ git push -u origin main
33
+ ```
34
+
35
+ The web alternative is to create an empty repository on GitHub, then run:
36
+
37
+ ```powershell
38
+ git remote add origin https://github.com/ghostbyte1014/Agent_Docs_Kit.git
39
+ git branch -M main
40
+ git push -u origin main
41
+ ```
42
+
43
+ Do not add a second README, license, or `.gitignore` when creating the remote because this local repository already has them.
44
+
45
+ ## 3. Enable GitHub Pages
46
+
47
+ The `pages.yml` workflow builds `build/site` and deploys it. In GitHub, open **Settings → Pages** and select **GitHub Actions** as the source. Then run the workflow or push to `main`.
48
+
49
+ With GitHub CLI/API after the first push:
50
+
51
+ ```powershell
52
+ gh api --method POST repos/ghostbyte1014/Agent_Docs_Kit/pages -f build_type=workflow
53
+ gh workflow run pages.yml
54
+ gh run watch
55
+ ```
56
+
57
+ If Pages already exists with another source, use:
58
+
59
+ ```powershell
60
+ gh api --method PUT repos/ghostbyte1014/Agent_Docs_Kit/pages -f build_type=workflow
61
+ ```
62
+
63
+ ## 4. Prepare npm
64
+
65
+ Create or sign in to the npm account that owns the `@ghostbyte1014` scope. Confirm package-name access and authentication:
66
+
67
+ ```powershell
68
+ npm.cmd view @ghostbyte/agent-docs-kit name version
69
+ npm.cmd login
70
+ npm.cmd whoami
71
+ ```
72
+
73
+ An npm `E404` from `view` usually means no public package currently exists under that exact name; it does not prove that the signed-in account owns the scope.
74
+
75
+ ## 5. Publish the first version
76
+
77
+ Review the archive before publishing:
78
+
79
+ ```powershell
80
+ npm.cmd pack --dry-run
81
+ npm.cmd publish --access public
82
+ ```
83
+
84
+ The first publication establishes the package. Test it from a disposable directory:
85
+
86
+ ```powershell
87
+ npx --yes @ghostbyte/agent-docs-kit@latest --help
88
+ npx --yes @ghostbyte/agent-docs-kit@latest setup --dry-run
89
+ ```
90
+
91
+ ## 6. Configure trusted publishing
92
+
93
+ In npm package settings, add a trusted publisher for GitHub Actions using the exact owner, repository, and workflow filename `.github/workflows/publish-npm.yml`. Configure a protected GitHub environment named `npm` if release approval is desired.
94
+
95
+ After that, publish releases by updating the version, committing, creating a GitHub release, and allowing the workflow to use OIDC. No long-lived `NPM_TOKEN` is required.
96
+
97
+ ```powershell
98
+ npm.cmd version patch
99
+ git push --follow-tags
100
+ $version = node -p "require('./package.json').version"
101
+ gh release create "v$version" --generate-notes
102
+ ```
103
+
104
+ Never reuse an existing npm version: registry versions are immutable. Use `npm deprecate` for a bad release and publish a corrected version.
@@ -0,0 +1,23 @@
1
+ # Purpose and boundaries
2
+
3
+ Agent Docs & Quality Kit is a library and command-line interface for establishing repeatable project-quality practices. It unifies three related activities without pretending they have the same consequences.
4
+
5
+ ## Documentation
6
+
7
+ The documentation workflow preserves project memory. It creates a predictable place for system facts, current scope, decisions, development records, test evidence, operations, future proposals, and superseded material. Its audit detects gaps and drift.
8
+
9
+ Documentation is not a security boundary. A statement such as “change freeze is on” is a collaboration policy until a hook, branch rule, or CI check enforces it.
10
+
11
+ ## Security
12
+
13
+ The security workflow assesses controls that protect confidentiality, integrity, availability, and privacy. It requires evidence for every verdict and distinguishes a real pass from an unverified condition. Critical and High failures are release blockers by default.
14
+
15
+ Passive repository review is safe to start. Active testing of a running service, cloud account, network, credential, or production environment requires explicit authorization for the exact target.
16
+
17
+ ## Engineering
18
+
19
+ The engineering workflow reviews practices that influence maintainability, reliability, performance, testability, operability, and cost. Its recommendations are contextual and normally non-blocking. A finding that is actually a vulnerability, correctness defect, or data-loss risk is reported separately with the appropriate urgency.
20
+
21
+ ## Interaction styles
22
+
23
+ `standard` produces concise findings and actions. `learning` adds why a control matters and a practical example. Both modes use the same evidence rules and verdicts.
@@ -0,0 +1,11 @@
1
+ # Release process
2
+
3
+ 1. Update canonical content and run `npm run build` to refresh progressive skill references and the site.
4
+ 2. Run `npm test`, `npm run validate`, and `npm pack --dry-run`.
5
+ 3. Confirm the package archive contains no credentials, local reports, nested repositories, or generated consumer data.
6
+ 4. Update the version with `npm version patch`, `minor`, or `major` according to compatibility.
7
+ 5. Push the commit and tag, then create the matching GitHub release.
8
+ 6. Let `.github/workflows/publish-npm.yml` publish through npm trusted publishing.
9
+ 7. Verify `npx --yes @ghostbyte/agent-docs-kit@<version> --help` from a clean directory.
10
+
11
+ The first publish is manual because the npm package must exist before its trusted publisher can be configured.
@@ -0,0 +1,9 @@
1
+ # Security model
2
+
3
+ The CLI is inert on installation: `package.json` defines no `preinstall`, `install`, or `postinstall` script. Explicit commands are required to create files.
4
+
5
+ Project setup skips existing files by default. `--force` is required to replace files owned by a command, and `--dry-run` previews writes. The package does not install Git hooks automatically, execute network scans, read credentials, or contact a telemetry service.
6
+
7
+ Audit reports begin as `Unverified`. The tool scaffolds the review; it does not claim that generated text proves a control. Agents and reviewers must attach repository paths, line numbers, reproducible command output, or authorized external evidence.
8
+
9
+ Publishing uses npm provenance through GitHub trusted publishing when configured. Protect the GitHub release environment, require reviews as appropriate, and never store a long-lived npm token when OIDC is available.