-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathassessment-20260212-110112.json
More file actions
995 lines (995 loc) · 39.5 KB
/
assessment-20260212-110112.json
File metadata and controls
995 lines (995 loc) · 39.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
{
"schema_version": "1.0.0",
"metadata": {
"agentready_version": "2.27.0",
"research_version": "1.0.1",
"assessment_timestamp": "2026-02-12T11:01:12.951042",
"assessment_timestamp_human": "February 12, 2026 at 11:01 AM",
"executed_by": "ddahlem@ddahlem-mac",
"command": "/Users/ddahlem/.local/bin/agentready assess .",
"working_directory": "/Users/ddahlem/Documents/repos/trusty/trustyai-explainability/llama-stack-provider-ragas"
},
"repository": {
"path": "/Users/ddahlem/Documents/repos/trusty/trustyai-explainability/llama-stack-provider-ragas",
"name": "llama-stack-provider-ragas",
"url": "https://github.com/trustyai-explainability/llama-stack-provider-ragas.git",
"branch": "main",
"commit_hash": "6b8ce2641ffa5bccf496d599582264a67ebdace1",
"languages": {
"YAML": 9,
"JSON": 4,
"Markdown": 3,
"Python": 24
},
"total_files": 54,
"total_lines": 20964
},
"timestamp": "2026-02-12T11:01:12.951042",
"overall_score": 63.0,
"certification_level": "Silver",
"attributes_assessed": 23,
"attributes_skipped": 2,
"attributes_total": 25,
"findings": [
{
"attribute": {
"id": "claude_md_file",
"name": "CLAUDE.md Configuration Files",
"category": "Context Window Optimization",
"tier": 1,
"description": "Project-specific configuration for Claude Code",
"criteria": "CLAUDE.md file exists in repository root",
"default_weight": 0.1
},
"status": "fail",
"score": 0.0,
"measured_value": "missing",
"threshold": "present",
"evidence": [
"CLAUDE.md not found in repository root",
"AGENTS.md not found (alternative)"
],
"remediation": {
"summary": "Create CLAUDE.md or AGENTS.md with project-specific configuration for AI coding assistants",
"steps": [
"Choose one of three approaches:",
" Option 1: Create standalone CLAUDE.md (>50 bytes) with project context",
" Option 2: Create AGENTS.md and symlink CLAUDE.md to it (cross-tool compatibility)",
" Option 3: Create AGENTS.md and reference it with @AGENTS.md in minimal CLAUDE.md",
"Add project overview and purpose",
"Document key architectural patterns",
"Specify coding standards and conventions",
"Include build/test/deployment commands",
"Add any project-specific context that helps AI assistants"
],
"tools": [],
"commands": [
"# Option 1: Standalone CLAUDE.md",
"touch CLAUDE.md",
"# Add content describing your project",
"",
"# Option 2: Symlink CLAUDE.md to AGENTS.md",
"touch AGENTS.md",
"# Add content to AGENTS.md",
"ln -s AGENTS.md CLAUDE.md",
"",
"# Option 3: @ reference in CLAUDE.md",
"echo '@AGENTS.md' > CLAUDE.md",
"touch AGENTS.md",
"# Add content to AGENTS.md"
],
"examples": [
"# Standalone CLAUDE.md (Option 1)\n\n## Overview\nBrief description of what this project does.\n\n## Architecture\nKey patterns and structure.\n\n## Development\n```bash\n# Install dependencies\nnpm install\n\n# Run tests\nnpm test\n\n# Build\nnpm run build\n```\n\n## Coding Standards\n- Use TypeScript strict mode\n- Follow ESLint configuration\n- Write tests for new features\n",
"# CLAUDE.md with @ reference (Option 3)\n@AGENTS.md\n",
"# AGENTS.md (shared by multiple tools)\n\n## Project Overview\nThis project implements a REST API for user management.\n\n## Architecture\n- Layered architecture: controllers, services, repositories\n- PostgreSQL database with SQLAlchemy ORM\n- FastAPI web framework\n\n## Development Workflow\n```bash\n# Setup\npython -m venv .venv\nsource .venv/bin/activate\npip install -e .\n\n# Run tests\npytest\n\n# Start server\nuvicorn app.main:app --reload\n```\n\n## Code Conventions\n- Use type hints for all functions\n- Follow PEP 8 style guide\n- Write docstrings for public APIs\n- Maintain >80% test coverage\n"
],
"citations": [
{
"source": "Anthropic",
"title": "Claude Code Documentation",
"url": "https://docs.anthropic.com/claude-code",
"relevance": "Official guidance on CLAUDE.md configuration"
},
{
"source": "agents.md",
"title": "AGENTS.md Specification",
"url": "https://agents.md/",
"relevance": "Emerging standard for cross-tool AI assistant configuration"
}
]
},
"error_message": null
},
{
"attribute": {
"id": "readme_structure",
"name": "README Structure",
"category": "Documentation Standards",
"tier": 1,
"description": "Well-structured README with key sections",
"criteria": "README.md with installation, usage, and development sections",
"default_weight": 0.1
},
"status": "fail",
"score": 66.66666666666666,
"measured_value": "2/3 sections",
"threshold": "3/3 sections",
"evidence": [
"Found 2/3 essential sections",
"Installation: \u2713",
"Usage: \u2713",
"Development: \u2717"
],
"remediation": {
"summary": "Create or enhance README.md with essential sections",
"steps": [
"Add project overview and description",
"Include installation/setup instructions",
"Document basic usage with examples",
"Add development/contributing guidelines",
"Include build and test commands"
],
"tools": [],
"commands": [],
"examples": [
"# Project Name\n\n## Overview\nWhat this project does and why it exists.\n\n## Installation\n```bash\npip install -e .\n```\n\n## Usage\n```bash\nmyproject --help\n```\n\n## Development\n```bash\n# Run tests\npytest\n\n# Format code\nblack .\n```\n"
],
"citations": [
{
"source": "GitHub",
"title": "About READMEs",
"url": "https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes",
"relevance": "Best practices for README structure"
}
]
},
"error_message": null
},
{
"attribute": {
"id": "type_annotations",
"name": "Type Annotations",
"category": "Code Quality",
"tier": 1,
"description": "Type hints in function signatures",
"criteria": ">80% of functions have type annotations",
"default_weight": 0.1
},
"status": "fail",
"score": 58.44155844155844,
"measured_value": "46.8%",
"threshold": "\u226580%",
"evidence": [
"Typed functions: 36/77",
"Coverage: 46.8%"
],
"remediation": {
"summary": "Add type annotations to function signatures",
"steps": [
"For Python: Add type hints to function parameters and return types",
"For TypeScript: Enable strict mode in tsconfig.json",
"Use mypy or pyright for Python type checking",
"Use tsc --strict for TypeScript",
"Add type annotations gradually to existing code"
],
"tools": [
"mypy",
"pyright",
"typescript"
],
"commands": [
"# Python",
"pip install mypy",
"mypy --strict src/",
"",
"# TypeScript",
"npm install --save-dev typescript",
"echo '{\"compilerOptions\": {\"strict\": true}}' > tsconfig.json"
],
"examples": [
"# Python - Before\ndef calculate(x, y):\n return x + y\n\n# Python - After\ndef calculate(x: float, y: float) -> float:\n return x + y\n",
"// TypeScript - tsconfig.json\n{\n \"compilerOptions\": {\n \"strict\": true,\n \"noImplicitAny\": true,\n \"strictNullChecks\": true\n }\n}\n"
],
"citations": [
{
"source": "Python.org",
"title": "Type Hints",
"url": "https://docs.python.org/3/library/typing.html",
"relevance": "Official Python type hints documentation"
},
{
"source": "TypeScript",
"title": "TypeScript Handbook",
"url": "https://www.typescriptlang.org/docs/handbook/2/everyday-types.html",
"relevance": "TypeScript type system guide"
}
]
},
"error_message": null
},
{
"attribute": {
"id": "standard_layout",
"name": "Standard Project Layouts",
"category": "Repository Structure",
"tier": 1,
"description": "Follows standard project structure for language",
"criteria": "Standard directories (src/, tests/, docs/) present",
"default_weight": 0.1
},
"status": "pass",
"score": 100.0,
"measured_value": "2/2 directories",
"threshold": "2/2 directories",
"evidence": [
"Found 2/2 standard directories",
"src/: \u2713",
"tests/: \u2713"
],
"remediation": null,
"error_message": null
},
{
"attribute": {
"id": "lock_files",
"name": "Dependency Pinning for Reproducibility",
"category": "Dependency Management",
"tier": 1,
"description": "Dependencies pinned to exact versions in lock files",
"criteria": "Lock file with pinned versions, updated within 6 months",
"default_weight": 0.1
},
"status": "pass",
"score": 100.0,
"measured_value": "package-lock.json, uv.lock, requirements.txt",
"threshold": "lock file with pinned versions, < 6 months old",
"evidence": [
"Found lock file(s): package-lock.json, uv.lock"
],
"remediation": null,
"error_message": null
},
{
"attribute": {
"id": "dependency_security",
"name": "Dependency Security & Vulnerability Scanning",
"category": "Security",
"tier": 1,
"description": "Security scanning tools configured for dependencies and code",
"criteria": "Dependabot, CodeQL, or SAST tools configured; secret detection enabled",
"default_weight": 0.04
},
"status": "pass",
"score": 35,
"measured_value": "Security tools configured: Dependabot",
"threshold": "\u226560 points (Dependabot + SAST or multiple scanners)",
"evidence": [
"\u2713 Dependabot configured for dependency alerts",
" 2 package ecosystem(s) monitored"
],
"remediation": {
"summary": "Add more security scanning tools for comprehensive coverage",
"steps": [
"Enable Dependabot alerts in GitHub repository settings",
"Add CodeQL scanning workflow for SAST",
"Configure secret detection (detect-secrets, gitleaks)",
"Set up language-specific scanners (pip-audit, npm audit, Snyk)"
],
"tools": [
"Dependabot",
"CodeQL",
"detect-secrets",
"pip-audit",
"npm audit"
],
"commands": [
"gh repo edit --enable-security",
"pip install detect-secrets # Python secret detection",
"npm audit # JavaScript dependency audit"
],
"examples": [
"# .github/dependabot.yml\nversion: 2\nupdates:\n - package-ecosystem: pip\n directory: /\n schedule:\n interval: weekly"
],
"citations": [
{
"source": "OWASP",
"title": "Dependency-Check Project",
"url": "https://owasp.org/www-project-dependency-check/",
"relevance": "Open-source tool for detecting known vulnerabilities in dependencies"
},
{
"source": "GitHub",
"title": "Dependabot Documentation",
"url": "https://docs.github.com/en/code-security/dependabot",
"relevance": "Official guide for configuring automated dependency updates and security alerts"
}
]
},
"error_message": null
},
{
"attribute": {
"id": "test_coverage",
"name": "Test Coverage Requirements",
"category": "Testing & CI/CD",
"tier": 2,
"description": "Test coverage thresholds configured and enforced",
"criteria": ">80% code coverage",
"default_weight": 0.03
},
"status": "pass",
"score": 100.0,
"measured_value": "configured",
"threshold": "configured with >80% threshold",
"evidence": [
"Coverage configuration found",
"pytest-cov dependency present"
],
"remediation": null,
"error_message": null
},
{
"attribute": {
"id": "precommit_hooks",
"name": "Pre-commit Hooks & CI/CD Linting",
"category": "Testing & CI/CD",
"tier": 2,
"description": "Pre-commit hooks configured for linting and formatting",
"criteria": ".pre-commit-config.yaml exists",
"default_weight": 0.03
},
"status": "pass",
"score": 100.0,
"measured_value": "configured",
"threshold": "configured",
"evidence": [
".pre-commit-config.yaml found"
],
"remediation": null,
"error_message": null
},
{
"attribute": {
"id": "conventional_commits",
"name": "Conventional Commit Messages",
"category": "Git & Version Control",
"tier": 2,
"description": "Follows conventional commit format",
"criteria": "\u226580% of recent commits follow convention",
"default_weight": 0.03
},
"status": "fail",
"score": 0.0,
"measured_value": "not configured",
"threshold": "configured",
"evidence": [
"No commitlint or husky configuration"
],
"remediation": {
"summary": "Configure conventional commits with commitlint",
"steps": [
"Install commitlint",
"Configure husky for commit-msg hook"
],
"tools": [
"commitlint",
"husky"
],
"commands": [
"npm install --save-dev @commitlint/cli @commitlint/config-conventional husky"
],
"examples": [],
"citations": []
},
"error_message": null
},
{
"attribute": {
"id": "gitignore_completeness",
"name": ".gitignore Completeness",
"category": "Git & Version Control",
"tier": 2,
"description": "Comprehensive .gitignore file with language-specific patterns",
"criteria": ".gitignore exists and includes language-specific patterns from GitHub templates",
"default_weight": 0.03
},
"status": "pass",
"score": 100.0,
"measured_value": "12/12 patterns",
"threshold": "\u226570% of language-specific patterns",
"evidence": [
".gitignore found (942 bytes)",
"Pattern coverage: 12/12 (100%)"
],
"remediation": null,
"error_message": null
},
{
"attribute": {
"id": "one_command_setup",
"name": "One-Command Build/Setup",
"category": "Build & Development",
"tier": 2,
"description": "Single command to set up development environment from fresh clone",
"criteria": "Single command (make setup, npm install, etc.) documented prominently",
"default_weight": 0.03
},
"status": "pass",
"score": 100,
"measured_value": "- Install",
"threshold": "single command",
"evidence": [
"Setup command found in README: '- Install'",
"Setup automation found: package.json, pyproject.toml",
"Setup instructions in prominent location"
],
"remediation": null,
"error_message": null
},
{
"attribute": {
"id": "file_size_limits",
"name": "File Size Limits",
"category": "Context Window Optimization",
"tier": 2,
"description": "Files are reasonably sized for AI context windows",
"criteria": "<5% of files >500 lines, no files >1000 lines",
"default_weight": 0.03
},
"status": "pass",
"score": 100.0,
"measured_value": "0 huge, 0 large out of 24",
"threshold": "<5% files >500 lines, 0 files >1000 lines",
"evidence": [
"All 24 source files are <500 lines"
],
"remediation": null,
"error_message": null
},
{
"attribute": {
"id": "separation_of_concerns",
"name": "Separation of Concerns",
"category": "Code Organization",
"tier": 2,
"description": "Code organized with single responsibility per module",
"criteria": "Feature-based organization, cohesive modules, low coupling",
"default_weight": 0.03
},
"status": "pass",
"score": 94.0,
"measured_value": "organization:100, cohesion:100, naming:80",
"threshold": "\u226575 overall",
"evidence": [
"Good directory organization (feature-based or flat)",
"File cohesion: 0/24 files >500 lines",
"Anti-pattern files found: utils.py"
],
"remediation": null,
"error_message": null
},
{
"attribute": {
"id": "concise_documentation",
"name": "Concise Documentation",
"category": "Documentation",
"tier": 2,
"description": "Documentation maximizes information density while minimizing token consumption",
"criteria": "README <500 lines with clear structure, bullet points over prose",
"default_weight": 0.03
},
"status": "pass",
"score": 75.0,
"measured_value": "102 lines, 10 headings, 17 bullets",
"threshold": "<500 lines, structured format",
"evidence": [
"README length: 102 lines (excellent)",
"Heading density: 9.8 per 100 lines (target: 3-5)",
"1 paragraphs exceed 10 lines (walls of text)"
],
"remediation": null,
"error_message": null
},
{
"attribute": {
"id": "inline_documentation",
"name": "Inline Documentation",
"category": "Documentation",
"tier": 2,
"description": "Function, class, and module-level documentation using language-specific conventions",
"criteria": "\u226580% of public functions/classes have docstrings",
"default_weight": 0.03
},
"status": "fail",
"score": 47.97979797979798,
"measured_value": "38.4%",
"threshold": "\u226580%",
"evidence": [
"Documented items: 38/99",
"Coverage: 38.4%",
"Many public functions/classes lack docstrings"
],
"remediation": {
"summary": "Add docstrings to public functions and classes",
"steps": [
"Identify functions/classes without docstrings",
"Add PEP 257 compliant docstrings for Python",
"Add JSDoc comments for JavaScript/TypeScript",
"Include: description, parameters, return values, exceptions",
"Add examples for complex functions",
"Run pydocstyle to validate docstring format"
],
"tools": [
"pydocstyle",
"jsdoc"
],
"commands": [
"# Install pydocstyle",
"pip install pydocstyle",
"",
"# Check docstring coverage",
"pydocstyle src/",
"",
"# Generate documentation",
"pip install sphinx",
"sphinx-apidoc -o docs/ src/"
],
"examples": [
"# Python - Good docstring\ndef calculate_discount(price: float, discount_percent: float) -> float:\n \"\"\"Calculate discounted price.\n\n Args:\n price: Original price in USD\n discount_percent: Discount percentage (0-100)\n\n Returns:\n Discounted price\n\n Raises:\n ValueError: If discount_percent not in 0-100 range\n\n Example:\n >>> calculate_discount(100.0, 20.0)\n 80.0\n \"\"\"\n if not 0 <= discount_percent <= 100:\n raise ValueError(\"Discount must be 0-100\")\n return price * (1 - discount_percent / 100)\n",
"// JavaScript - Good JSDoc\n/**\n * Calculate discounted price\n *\n * @param {number} price - Original price in USD\n * @param {number} discountPercent - Discount percentage (0-100)\n * @returns {number} Discounted price\n * @throws {Error} If discountPercent not in 0-100 range\n * @example\n * calculateDiscount(100.0, 20.0)\n * // Returns: 80.0\n */\nfunction calculateDiscount(price, discountPercent) {\n if (discountPercent < 0 || discountPercent > 100) {\n throw new Error(\"Discount must be 0-100\");\n }\n return price * (1 - discountPercent / 100);\n}\n"
],
"citations": [
{
"source": "Python.org",
"title": "PEP 257 - Docstring Conventions",
"url": "https://peps.python.org/pep-0257/",
"relevance": "Python docstring standards"
},
{
"source": "TypeScript",
"title": "TSDoc Reference",
"url": "https://tsdoc.org/",
"relevance": "TypeScript documentation standard"
}
]
},
"error_message": null
},
{
"attribute": {
"id": "cyclomatic_complexity",
"name": "Cyclomatic Complexity Thresholds",
"category": "Code Quality",
"tier": 3,
"description": "Cyclomatic complexity thresholds enforced",
"criteria": "Average complexity <10, no functions >15",
"default_weight": 0.03
},
"status": "skipped",
"score": null,
"measured_value": null,
"threshold": null,
"evidence": [
"Missing tool: radon"
],
"remediation": {
"summary": "Install with: pip install radon",
"steps": [
"Install with: pip install radon"
],
"tools": [],
"commands": [],
"examples": [],
"citations": []
},
"error_message": null
},
{
"attribute": {
"id": "architecture_decisions",
"name": "Architecture Decision Records (ADRs)",
"category": "Documentation Standards",
"tier": 3,
"description": "Lightweight documents capturing architectural decisions",
"criteria": "ADR directory with documented decisions",
"default_weight": 0.015
},
"status": "fail",
"score": 0.0,
"measured_value": "no ADR directory",
"threshold": "ADR directory with decisions",
"evidence": [
"No ADR directory found (checked docs/adr/, .adr/, adr/, docs/decisions/)"
],
"remediation": {
"summary": "Create Architecture Decision Records (ADRs) directory and document key decisions",
"steps": [
"Create docs/adr/ directory in repository root",
"Use Michael Nygard ADR template or MADR format",
"Document each significant architectural decision",
"Number ADRs sequentially (0001-*.md, 0002-*.md)",
"Include Status, Context, Decision, and Consequences sections",
"Update ADR status when decisions are revised (Superseded, Deprecated)"
],
"tools": [
"adr-tools",
"log4brains"
],
"commands": [
"# Create ADR directory",
"mkdir -p docs/adr",
"",
"# Create first ADR using template",
"cat > docs/adr/0001-use-architecture-decision-records.md << 'EOF'",
"# 1. Use Architecture Decision Records",
"",
"Date: 2025-11-22",
"",
"## Status",
"Accepted",
"",
"## Context",
"We need to record architectural decisions made in this project.",
"",
"## Decision",
"We will use Architecture Decision Records (ADRs) as described by Michael Nygard.",
"",
"## Consequences",
"- Decisions are documented with context",
"- Future contributors understand rationale",
"- ADRs are lightweight and version-controlled",
"EOF"
],
"examples": [
"# Example ADR Structure\n\n```markdown\n# 2. Use PostgreSQL for Database\n\nDate: 2025-11-22\n\n## Status\nAccepted\n\n## Context\nWe need a relational database for complex queries and ACID transactions.\nTeam has PostgreSQL experience. Need full-text search capabilities.\n\n## Decision\nUse PostgreSQL 15+ as primary database.\n\n## Consequences\n- Positive: Robust ACID, full-text search, team familiarity\n- Negative: Higher resource usage than SQLite\n- Neutral: Need to manage migrations, backups\n```\n"
],
"citations": [
{
"source": "Michael Nygard",
"title": "Documenting Architecture Decisions",
"url": "https://cognitect.com/blog/2011/11/15/documenting-architecture-decisions",
"relevance": "Original ADR format and rationale"
},
{
"source": "GitHub adr/madr",
"title": "Markdown ADR (MADR) Template",
"url": "https://github.com/adr/madr",
"relevance": "Modern ADR template with examples"
}
]
},
"error_message": null
},
{
"attribute": {
"id": "issue_pr_templates",
"name": "Issue & Pull Request Templates",
"category": "Repository Structure",
"tier": 3,
"description": "Standardized templates for issues and PRs",
"criteria": "PR template and issue templates in .github/",
"default_weight": 0.015
},
"status": "pass",
"score": 100,
"measured_value": "PR:True, Issues:2",
"threshold": "PR template + \u22652 issue templates",
"evidence": [
"PR template found",
"Issue templates found: 2 templates"
],
"remediation": null,
"error_message": null
},
{
"attribute": {
"id": "cicd_pipeline_visibility",
"name": "CI/CD Pipeline Visibility",
"category": "Testing & CI/CD",
"tier": 3,
"description": "Clear, well-documented CI/CD configuration files",
"criteria": "CI config with descriptive names, caching, parallelization",
"default_weight": 0.015
},
"status": "fail",
"score": 70,
"measured_value": "basic config",
"threshold": "CI with best practices",
"evidence": [
"CI config found: .github/workflows/security.yml, .github/workflows/docs.yml, .github/workflows/tests.yml, .github/workflows/agentready-assessment.yml, .github/workflows/ci.yml, .github/workflows/release.yaml",
"Descriptive job/step names found",
"No caching detected",
"Parallel job execution detected"
],
"remediation": {
"summary": "Add or improve CI/CD pipeline configuration",
"steps": [
"Create CI config for your platform (GitHub Actions, GitLab CI, etc.)",
"Define jobs: lint, test, build",
"Use descriptive job and step names",
"Configure dependency caching",
"Enable parallel job execution",
"Upload artifacts: test results, coverage reports",
"Add status badge to README"
],
"tools": [
"github-actions",
"gitlab-ci",
"circleci"
],
"commands": [
"# Create GitHub Actions workflow",
"mkdir -p .github/workflows",
"touch .github/workflows/ci.yml",
"",
"# Validate workflow",
"gh workflow view ci.yml"
],
"examples": [
"# .github/workflows/ci.yml - Good example\n\nname: CI Pipeline\n\non:\n push:\n branches: [main]\n pull_request:\n branches: [main]\n\njobs:\n lint:\n name: Lint Code\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n\n - name: Set up Python\n uses: actions/setup-python@v5\n with:\n python-version: '3.11'\n cache: 'pip' # Caching\n\n - name: Install dependencies\n run: pip install -r requirements.txt\n\n - name: Run linters\n run: |\n black --check .\n isort --check .\n ruff check .\n\n test:\n name: Run Tests\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n\n - name: Set up Python\n uses: actions/setup-python@v5\n with:\n python-version: '3.11'\n cache: 'pip'\n\n - name: Install dependencies\n run: pip install -r requirements.txt\n\n - name: Run tests with coverage\n run: pytest --cov --cov-report=xml\n\n - name: Upload coverage reports\n uses: codecov/codecov-action@v3\n with:\n files: ./coverage.xml\n\n build:\n name: Build Package\n runs-on: ubuntu-latest\n needs: [lint, test] # Runs after lint/test pass\n steps:\n - uses: actions/checkout@v4\n\n - name: Build package\n run: python -m build\n\n - name: Upload build artifacts\n uses: actions/upload-artifact@v3\n with:\n name: dist\n path: dist/\n"
],
"citations": [
{
"source": "GitHub",
"title": "GitHub Actions Documentation",
"url": "https://docs.github.com/en/actions",
"relevance": "Official GitHub Actions guide"
},
{
"source": "CircleCI",
"title": "CI/CD Best Practices",
"url": "https://circleci.com/blog/ci-cd-best-practices/",
"relevance": "Industry best practices for CI/CD"
}
]
},
"error_message": null
},
{
"attribute": {
"id": "semantic_naming",
"name": "Semantic Naming",
"category": "Code Quality",
"tier": 3,
"description": "Systematic naming patterns following language conventions",
"criteria": "Language conventions followed, avoid generic names",
"default_weight": 0.015
},
"status": "pass",
"score": 100.0,
"measured_value": "functions:100%, classes:100%",
"threshold": "\u226575% compliance",
"evidence": [
"Functions: 56/56 follow snake_case (100.0%)",
"Classes: 19/19 follow PascalCase (100.0%)",
"No generic names (temp, data, obj) detected"
],
"remediation": null,
"error_message": null
},
{
"attribute": {
"id": "structured_logging",
"name": "Structured Logging",
"category": "Code Quality",
"tier": 3,
"description": "Logging in structured format (JSON) with consistent fields",
"criteria": "Structured logging library configured (structlog, winston, zap)",
"default_weight": 0.015
},
"status": "fail",
"score": 0.0,
"measured_value": "not configured",
"threshold": "structured logging library",
"evidence": [
"No structured logging library found",
"Checked files: pyproject.toml, requirements.txt",
"Using built-in logging module (unstructured)"
],
"remediation": {
"summary": "Add structured logging library for machine-parseable logs",
"steps": [
"Choose structured logging library (structlog for Python, winston for Node.js)",
"Install library and configure JSON formatter",
"Add standard fields: timestamp, level, message, context",
"Include request context: request_id, user_id, session_id",
"Use consistent field naming (snake_case for Python)",
"Never log sensitive data (passwords, tokens, PII)",
"Configure different formats for dev (pretty) and prod (JSON)"
],
"tools": [
"structlog",
"winston",
"zap"
],
"commands": [
"# Install structlog",
"pip install structlog",
"",
"# Configure structlog",
"# See examples for configuration"
],
"examples": [
"# Python with structlog\nimport structlog\n\n# Configure structlog\nstructlog.configure(\n processors=[\n structlog.stdlib.add_log_level,\n structlog.processors.TimeStamper(fmt=\"iso\"),\n structlog.processors.JSONRenderer()\n ]\n)\n\nlogger = structlog.get_logger()\n\n# Good: Structured logging\nlogger.info(\n \"user_login\",\n user_id=\"123\",\n email=\"user@example.com\",\n ip_address=\"192.168.1.1\"\n)\n\n# Bad: Unstructured logging\nlogger.info(f\"User {user_id} logged in from {ip}\")\n"
],
"citations": [
{
"source": "structlog",
"title": "structlog Documentation",
"url": "https://www.structlog.org/en/stable/",
"relevance": "Python structured logging library"
}
]
},
"error_message": null
},
{
"attribute": {
"id": "openapi_specs",
"name": "OpenAPI/Swagger Specifications",
"category": "API Documentation",
"tier": 3,
"description": "Machine-readable API documentation in OpenAPI format",
"criteria": "OpenAPI 3.x spec with complete endpoint documentation",
"default_weight": 0.015
},
"status": "fail",
"score": 0.0,
"measured_value": "no OpenAPI spec",
"threshold": "OpenAPI 3.x spec present",
"evidence": [
"No OpenAPI specification found",
"Searched recursively for: openapi.yaml, openapi.yml, openapi.json, swagger.yaml, swagger.yml, swagger.json"
],
"remediation": {
"summary": "Create OpenAPI specification for API endpoints",
"steps": [
"Create openapi.yaml in repository root",
"Define OpenAPI version 3.x",
"Document all API endpoints with full schemas",
"Add request/response examples",
"Define security schemes (API keys, OAuth, etc.)",
"Validate spec with Swagger Editor or Spectral",
"Generate API documentation with Swagger UI or ReDoc"
],
"tools": [
"swagger-editor",
"spectral",
"openapi-generator"
],
"commands": [
"# Install OpenAPI validator",
"npm install -g @stoplight/spectral-cli",
"",
"# Validate spec",
"spectral lint openapi.yaml",
"",
"# Generate client SDK",
"npx @openapitools/openapi-generator-cli generate \\",
" -i openapi.yaml \\",
" -g python \\",
" -o client/"
],
"examples": [
"# openapi.yaml - Minimal example\nopenapi: 3.1.0\ninfo:\n title: My API\n version: 1.0.0\n description: API for managing users\n\nservers:\n - url: https://api.example.com/v1\n\npaths:\n /users/{userId}:\n get:\n summary: Get user by ID\n parameters:\n - name: userId\n in: path\n required: true\n schema:\n type: string\n responses:\n '200':\n description: User found\n content:\n application/json:\n schema:\n $ref: '#/components/schemas/User'\n '404':\n description: User not found\n\ncomponents:\n schemas:\n User:\n type: object\n required:\n - id\n - email\n properties:\n id:\n type: string\n example: \"user_123\"\n email:\n type: string\n format: email\n example: \"user@example.com\"\n name:\n type: string\n example: \"John Doe\"\n"
],
"citations": [
{
"source": "OpenAPI Initiative",
"title": "OpenAPI Specification",
"url": "https://spec.openapis.org/oas/v3.1.0",
"relevance": "Official OpenAPI 3.1 specification"
},
{
"source": "Swagger",
"title": "API Documentation Best Practices",
"url": "https://swagger.io/resources/articles/best-practices-in-api-documentation/",
"relevance": "Guide to writing effective API docs"
}
]
},
"error_message": null
},
{
"attribute": {
"id": "branch_protection",
"name": "Branch Protection Rules",
"category": "Git & Version Control",
"tier": 4,
"description": "Required status checks and review approvals before merging",
"criteria": "Branch protection enabled with status checks and required reviews",
"default_weight": 0.005
},
"status": "not_applicable",
"score": null,
"measured_value": null,
"threshold": null,
"evidence": [
"Requires GitHub API integration for branch protection checks. Future implementation will verify: required status checks, required reviews, force push prevention, and branch update requirements."
],
"remediation": null,
"error_message": null
},
{
"attribute": {
"id": "code_smells",
"name": "Code Smell Elimination",
"category": "Code Quality",
"tier": 4,
"description": "Linter configuration for detecting code smells and anti-patterns",
"criteria": "Language-specific linters configured (pylint, ESLint, RuboCop, etc.)",
"default_weight": 0.01
},
"status": "pass",
"score": 66.66666666666666,
"measured_value": "pylint, ruff",
"threshold": "\u226560% of applicable linters configured",
"evidence": [
"Linters configured: pylint, ruff",
"Coverage: 40/60 points (67%)"
],
"remediation": null,
"error_message": null
},
{
"attribute": {
"id": "container_setup",
"name": "Container/Virtualization Setup",
"category": "Build & Development",
"tier": 4,
"description": "Container configuration for consistent development environments",
"criteria": "Dockerfile/Containerfile, docker-compose.yml, .dockerignore, multi-stage builds",
"default_weight": 0.01
},
"status": "pass",
"score": 60,
"measured_value": "60 points",
"threshold": "\u226570 points (Dockerfile + compose + .dockerignore)",
"evidence": [
"\u2713 Containerfile present (Podman)",
"\u2139\ufe0f Single-stage build (consider multi-stage for smaller images)",
"\u2713 .dockerignore present (excludes unnecessary files)"
],
"remediation": {
"summary": "Improve container configuration",
"steps": [
"Add docker-compose.yml for multi-service development",
"Create .dockerignore to exclude build artifacts and secrets",
"Consider multi-stage builds to reduce image size"
],
"tools": [
"docker",
"podman",
"docker-compose"
],
"commands": [
"docker build -t myapp .",
"docker-compose up -d"
],
"examples": [
"# .dockerignore example\n.git\n.venv\n__pycache__\n*.pyc\n.env\nnode_modules",
"# Multi-stage Dockerfile example\nFROM node:18 AS builder\nWORKDIR /app\nCOPY . .\nRUN npm ci && npm run build\n\nFROM node:18-alpine\nWORKDIR /app\nCOPY --from=builder /app/dist ./dist\nCMD [\"node\", \"dist/index.js\"]"
],
"citations": [
{
"source": "Docker",
"title": "Dockerfile Best Practices",
"url": "https://docs.docker.com/develop/develop-images/dockerfile_best-practices/",
"relevance": "Official Docker guide for writing efficient and secure Dockerfiles"
}
]
},
"error_message": null
}
],
"config": {
"weights": {},
"excluded_attributes": [],
"language_overrides": {},
"output_dir": null,
"report_theme": "default",
"custom_theme": null
},
"duration_seconds": 0.3,
"discovered_skills": []
}