kortext 2.2.3 → 3.1.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.
- package/LICENSE +21 -0
- package/README.md +175 -65
- package/agents/architect.md +85 -0
- package/agents/compliance-expert.md +36 -75
- package/agents/copywriter.md +36 -92
- package/agents/db-admin.md +43 -91
- package/agents/designer.md +40 -77
- package/agents/devops-engineer.md +37 -113
- package/agents/growth-expert.md +45 -88
- package/agents/product-manager.md +38 -83
- package/agents/qa-engineer.md +51 -99
- package/agents/security-engineer.md +47 -92
- package/bin/kortext.js +2 -0
- package/dist/app.js +829 -0
- package/dist/cli-spawn.js +137 -0
- package/dist/daemon.js +40 -0
- package/dist/db.js +78 -0
- package/dist/design-preview.js +533 -0
- package/dist/docs.js +701 -0
- package/dist/engines.js +225 -0
- package/dist/index.js +109 -0
- package/dist/pick-directory.js +38 -0
- package/dist/projects.js +189 -0
- package/dist/readiness.js +288 -0
- package/dist/runner.js +771 -0
- package/dist/update.js +55 -0
- package/docs/CHANGELOG.md +11 -0
- package/package.json +53 -13
- package/templates/AGENTS.md +62 -0
- package/templates/docs/API.md +67 -0
- package/templates/docs/ARCHITECTURE.md +31 -0
- package/templates/docs/BRIEF.md +27 -0
- package/templates/docs/CONTENT.md +66 -0
- package/templates/docs/DATABASE.md +63 -0
- package/templates/docs/DESIGN.md +124 -0
- package/templates/docs/ENGINEERING.md +66 -0
- package/templates/docs/ENVIRONMENT.md +102 -0
- package/templates/docs/GROWTH.md +44 -0
- package/templates/docs/LEGAL.md +48 -0
- package/templates/docs/PRODUCT.md +43 -0
- package/templates/docs/SECURITY.md +65 -0
- package/templates/docs/STACK.md +57 -0
- package/templates/docs/STRUCTURE.md +73 -0
- package/templates/docs/TEST.md +62 -0
- package/ui/dist/assets/abnfDiagram-VCTEODGH-Bm7Q2BML.js +1 -0
- package/ui/dist/assets/arc-BV9hs0Hu.js +1 -0
- package/ui/dist/assets/architecture-7GRP2DOG-RckR3gBI.js +1 -0
- package/ui/dist/assets/architectureDiagram-5GKGNRK7-CHiJ6JFT.js +36 -0
- package/ui/dist/assets/array-BifhSqXX.js +1 -0
- package/ui/dist/assets/blockDiagram-I7D4REHJ-qCbaKVhd.js +129 -0
- package/ui/dist/assets/c4Diagram-7LVT6UL2-DidCDJrv.js +38 -0
- package/ui/dist/assets/channel-CNUQ11ne.js +1 -0
- package/ui/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/ui/dist/assets/chunk-4HAMMTFA-CDGFjfVp.js +62 -0
- package/ui/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
- package/ui/dist/assets/chunk-75Z2AOVW-CbNT4sDh.js +2 -0
- package/ui/dist/assets/chunk-DU6HZSFF-Cq2BVv26.js +127 -0
- package/ui/dist/assets/chunk-F27PBJKO-CE365m0v.js +1 -0
- package/ui/dist/assets/chunk-FOHPRMQF-DHwB1DNv.js +161 -0
- package/ui/dist/assets/chunk-GMAD6QVW-DxWL1VC-.js +72 -0
- package/ui/dist/assets/chunk-GVQU2GXP-aARV8YbK.js +1 -0
- package/ui/dist/assets/chunk-IMKFNOWR-CC790Kt2.js +231 -0
- package/ui/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/ui/dist/assets/chunk-L3NEJ4N5-BfE4VE8J.js +1 -0
- package/ui/dist/assets/chunk-OSK3NFVY-BImQbSWH.js +10 -0
- package/ui/dist/assets/chunk-P2QGCYS3-CN3XD313.js +1 -0
- package/ui/dist/assets/chunk-POPQ4Y6H-Dqb6jOrX.js +1 -0
- package/ui/dist/assets/chunk-PWAF6VOD-DfXX6rBk.js +1 -0
- package/ui/dist/assets/chunk-SHT3W25Y-DATyyqPK.js +168 -0
- package/ui/dist/assets/chunk-SVP7TREG-r1chwRmg.js +88 -0
- package/ui/dist/assets/chunk-TICWLB2K-DL4atHUC.js +206 -0
- package/ui/dist/assets/chunk-XXDRQBXY-DXrM6jh7.js +1 -0
- package/ui/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/ui/dist/assets/classDiagram-ZZMXUADV-BpQxfIQ7.js +1 -0
- package/ui/dist/assets/classDiagram-v2-VYDZK3BY-BpQxfIQ7.js +1 -0
- package/ui/dist/assets/cose-bilkent-JH36ORCC-Bhe-ZBlS.js +1 -0
- package/ui/dist/assets/cynefin-OW5HDTMX-D1koLd-G.js +1 -0
- package/ui/dist/assets/cynefinDiagram-5FMLGOSQ-BMcw40hV.js +62 -0
- package/ui/dist/assets/cytoscape.esm-CGd-uY3x.js +321 -0
- package/ui/dist/assets/dagre-GXQ25YYZ-DBun-Rs2.js +4 -0
- package/ui/dist/assets/dagre-PrKaheQc.js +1 -0
- package/ui/dist/assets/defaultLocale-BFoDCU3G.js +1 -0
- package/ui/dist/assets/diagram-S7CK7UJ4-C1fUIGvo.js +30 -0
- package/ui/dist/assets/diagram-UQ7AKVKN-B5FDfkvB.js +41 -0
- package/ui/dist/assets/diagram-VSXAHHWV-CCIpOCNC.js +3 -0
- package/ui/dist/assets/diagram-VX7I27RA-DV0q2xo_.js +24 -0
- package/ui/dist/assets/diagram-Z3DM3KII-B3LCdNgI.js +24 -0
- package/ui/dist/assets/dist-EcW76Zvr.js +1 -0
- package/ui/dist/assets/ebnfDiagram-PWID7BFC-De_oRbYe.js +1 -0
- package/ui/dist/assets/erDiagram-RLTQ6QDP-B9NikMr1.js +99 -0
- package/ui/dist/assets/eventmodeling-NTZA5JFV-DZ4t581k.js +1 -0
- package/ui/dist/assets/flowDiagram-HODETNUW-DuTOJp1C.js +1 -0
- package/ui/dist/assets/ganttDiagram-EL5Y4UJY-BVTqqlPw.js +292 -0
- package/ui/dist/assets/gitGraph-4MIJSDKK-xRFaEJdZ.js +1 -0
- package/ui/dist/assets/gitGraphDiagram-WWUBYQGX-CK5_GCmX.js +106 -0
- package/ui/dist/assets/graphlib-DS17s2tU.js +1 -0
- package/ui/dist/assets/index-CjkpNftW.js +46 -0
- package/ui/dist/assets/index-DVIDTWin.css +1 -0
- package/ui/dist/assets/info-A6RAGUB7-Dg7z-CTI.js +1 -0
- package/ui/dist/assets/infoDiagram-27XIBGKW-YaqsOXh0.js +2 -0
- package/ui/dist/assets/init-C-OQMol4.js +1 -0
- package/ui/dist/assets/ishikawaDiagram-5VMMS53U-C-wtxZPa.js +70 -0
- package/ui/dist/assets/journeyDiagram-3NMN7TZE-DsXSXf16.js +139 -0
- package/ui/dist/assets/kanban-definition-UXKFOSKX-Ct59fuWk.js +89 -0
- package/ui/dist/assets/katex-CXMH3UgJ.js +257 -0
- package/ui/dist/assets/line-BUVw9Mhs.js +1 -0
- package/ui/dist/assets/linear-D8ncLO0X.js +1 -0
- package/ui/dist/assets/mermaid-parser.core-BDC4bG-O.js +7 -0
- package/ui/dist/assets/mermaid.core-DZY3WwzX.js +44 -0
- package/ui/dist/assets/mindmap-definition-YA3MSWOX-DtiuF6Ce.js +96 -0
- package/ui/dist/assets/ordinal-BDEzSJ7C.js +1 -0
- package/ui/dist/assets/packet-AYTQ26CC-BX2-w9rD.js +1 -0
- package/ui/dist/assets/path-fybaL0A-.js +1 -0
- package/ui/dist/assets/pegDiagram-XKGWAZYB-CotwuIHB.js +1 -0
- package/ui/dist/assets/pie-WAS4IAKB-Hth8ZVpm.js +1 -0
- package/ui/dist/assets/pieDiagram-E7YTZNPT-D9-INs8B.js +39 -0
- package/ui/dist/assets/quadrantDiagram-AXDQQJYC-CMtBXZGV.js +7 -0
- package/ui/dist/assets/radar-RG4KPBEZ-6UuwQPsw.js +1 -0
- package/ui/dist/assets/railroad-74A4TZTK-BF5TZgj0.js +1 -0
- package/ui/dist/assets/railroad-abnf-HS5TGJTU-3KYovtYT.js +1 -0
- package/ui/dist/assets/railroad-ebnf-LZEXJU2U-DeP4WedE.js +1 -0
- package/ui/dist/assets/railroad-peg-WCYAUIDC-i42N1-yk.js +1 -0
- package/ui/dist/assets/railroadDiagram-O6MQD6OU-BS6zkU3Z.js +1 -0
- package/ui/dist/assets/requirementDiagram-BXWQKSXE-J4IOB-kP.js +84 -0
- package/ui/dist/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/ui/dist/assets/sankeyDiagram-P5KCCOFB-jYTCuYzQ.js +40 -0
- package/ui/dist/assets/sequenceDiagram-WJ2MYXX4-Cd2r6PW-.js +162 -0
- package/ui/dist/assets/sizeCapture-INFHLROL-B0uUizjq.js +1 -0
- package/ui/dist/assets/src-7TsfZXRO.js +1 -0
- package/ui/dist/assets/stateDiagram-D77RDMKH-DXOdtOKe.js +1 -0
- package/ui/dist/assets/stateDiagram-v2-MP3YSRHH-9h7sIf3R.js +1 -0
- package/ui/dist/assets/swimlanes-42K2YHIH-BvJGmGs1.js +1 -0
- package/ui/dist/assets/swimlanesDiagram-VR7AAH4N-QA4gPi6a.js +8 -0
- package/ui/dist/assets/timeline-definition-24CTP7MA-CAaD6-yd.js +120 -0
- package/ui/dist/assets/treeView-Q6P3EWNA-4gDEXIyJ.js +1 -0
- package/ui/dist/assets/treemap-WGGIJYW6-CGel5TwW.js +1 -0
- package/ui/dist/assets/vennDiagram-4TSXK5OY-DpxsKboL.js +34 -0
- package/ui/dist/assets/wardley-WFR3VGLG-Ck38v5ns.js +1 -0
- package/ui/dist/assets/wardleyDiagram-VM6X3IG4-Ba0grrqs.js +78 -0
- package/ui/dist/assets/xychartDiagram-S5SC5T6Z-DH_gC96K.js +7 -0
- package/ui/dist/index.html +13 -0
- package/ui/dist/kortext-logo-dark.svg +41 -0
- package/ui/dist/kortext-logo.svg +41 -0
- package/workflows/existing-project-analysis.md +87 -0
- package/workflows/new-project-analysis.md +98 -0
- package/workflows/planning-pipeline.md +61 -0
- package/AGENTS.md +0 -28
- package/agents/backend-developer.md +0 -132
- package/agents/delivery-manager.md +0 -121
- package/agents/engineering-manager.md +0 -208
- package/agents/frontend-developer.md +0 -174
- package/agents/operation-manager.md +0 -122
- package/hooks/audit-logger.sh +0 -25
- package/hooks/auto-locker.sh +0 -74
- package/hooks/auto-unlocker.sh +0 -17
- package/hooks/backlog-sync-guard.sh +0 -12
- package/hooks/branch-guard.sh +0 -32
- package/hooks/commit-msg-guard.sh +0 -43
- package/hooks/git-pre-commit.sh +0 -76
- package/hooks/git-pre-push.sh +0 -17
- package/hooks/handover-guard.sh +0 -33
- package/hooks/kortext-init.sh +0 -194
- package/hooks/kortext-lib.sh +0 -151
- package/hooks/lint-guard.sh +0 -50
- package/hooks/secret-scanner.sh +0 -89
- package/hooks/size-guard.sh +0 -48
- package/hooks/snapshot-guard.sh +0 -39
- package/hooks/write-guard.sh +0 -77
- package/rules/behavior.md +0 -252
- package/rules/branching.md +0 -82
- package/rules/commands.md +0 -112
- package/rules/emergency.md +0 -160
- package/rules/mcp.md +0 -47
- package/rules/models.md +0 -93
- package/scripts/kortext-backlog-add.py +0 -123
- package/scripts/kortext-backlog-health.py +0 -112
- package/scripts/kortext-backlog-sync.py +0 -117
- package/scripts/kortext-bulk-plan.py +0 -63
- package/scripts/kortext-cli.py +0 -376
- package/scripts/kortext-consistency-check.py +0 -74
- package/scripts/kortext-context-check.py +0 -146
- package/scripts/kortext-handover.py +0 -107
- package/scripts/kortext-item-check.py +0 -61
- package/scripts/kortext-item-start.py +0 -70
- package/scripts/kortext-item-transition.py +0 -78
- package/scripts/kortext-lock.py +0 -174
- package/scripts/kortext-session-start.py +0 -127
- package/scripts/lock_kortext.sh +0 -34
- package/settings/.claude-settings.template.json +0 -48
- package/settings/CHANGELOG.md +0 -176
- package/settings/INTEGRATION-MAP.md +0 -276
- package/settings/README.md +0 -255
- package/settings/USER-GUIDE.md +0 -502
- package/settings/VERSION +0 -1
- package/settings/config.md +0 -8
- package/settings/runtime-adapters.md +0 -104
- package/skills/backend-developer/.gitkeep +0 -0
- package/skills/compliance-expert/.gitkeep +0 -0
- package/skills/copywriter/.gitkeep +0 -0
- package/skills/db-admin/.gitkeep +0 -0
- package/skills/delivery-manager/.gitkeep +0 -0
- package/skills/designer/.gitkeep +0 -0
- package/skills/devops-engineer/.gitkeep +0 -0
- package/skills/engineering-manager/.gitkeep +0 -0
- package/skills/frontend-developer/.gitkeep +0 -0
- package/skills/growth-expert/.gitkeep +0 -0
- package/skills/operation-manager/.gitkeep +0 -0
- package/skills/product-manager/.gitkeep +0 -0
- package/skills/qa-engineer/.gitkeep +0 -0
- package/skills/security-engineer/.gitkeep +0 -0
- package/workflows/00-kortext-setup.md +0 -53
- package/workflows/01a-analysis-pipeline.md +0 -117
- package/workflows/01b-onboarding-pipeline.md +0 -110
- package/workflows/02-planning-pipeline.md +0 -146
- package/workflows/02b-spike-workflow.md +0 -120
- package/workflows/03-environment-setup.md +0 -99
- package/workflows/04-development-cycle.md +0 -203
- package/workflows/05-test-cycle.md +0 -123
- package/workflows/06-deployment-cycle.md +0 -224
- package/workflows/07-rollback-pipeline.md +0 -203
- package/workflows/08-hotfix-pipeline.md +0 -196
- package/workflows/09-maintenance-cycle.md +0 -133
- package/workspace/archive/.gitkeep +0 -0
- package/workspace/backups/.gitkeep +0 -0
- package/workspace/memory/backlog/.gitkeep +0 -0
- package/workspace/memory/backlog/BXX-[bug-name].md +0 -2
- package/workspace/memory/backlog/DXX-[debt-name].md +0 -2
- package/workspace/memory/backlog/README.md +0 -31
- package/workspace/memory/backlog/TXX-[task-name].md +0 -2
- package/workspace/memory/backlog/debt-dashboard.md +0 -3
- package/workspace/memory/backlog/epic-dashboard.md +0 -10
- package/workspace/memory/backlog/version-dashboard.md +0 -7
- package/workspace/memory/context/.gitkeep +0 -0
- package/workspace/memory/context/README.md +0 -35
- package/workspace/memory/context/[agent-name]-active.md +0 -2
- package/workspace/memory/decisions.md +0 -17
- package/workspace/memory/handover.md +0 -40
- package/workspace/memory/learned.md +0 -21
- package/workspace/references/access.md +0 -47
- package/workspace/references/api-reference.md +0 -59
- package/workspace/references/blueprint.md +0 -29
- package/workspace/references/content-strategy.md +0 -39
- package/workspace/references/db-schema.md +0 -51
- package/workspace/references/design-system.md +0 -107
- package/workspace/references/dictionary.md +0 -42
- package/workspace/references/file-system.md +0 -42
- package/workspace/references/growth-strategy.md +0 -46
- package/workspace/references/legal-strategy.md +0 -35
- package/workspace/references/required-skills.md +0 -11
- package/workspace/references/security-rules.md +0 -34
- package/workspace/references/tech-stack.md +0 -49
- package/workspace/references/test-strategy.md +0 -48
- package/workspace/reports/analysis-reports.md +0 -40
- package/workspace/reports/content-reports.md +0 -29
- package/workspace/reports/delivery-reports.md +0 -26
- package/workspace/reports/growth-reports.md +0 -9
- package/workspace/reports/legal-reports.md +0 -29
- package/workspace/reports/product-requirements.md +0 -28
- package/workspace/reports/release-notes.md +0 -20
- package/workspace/reports/security-reports.md +0 -27
- package/workspace/reports/status-reports.md +0 -48
- package/workspace/reports/tech-requirements.md +0 -30
- package/workspace/reports/test-reports.md +0 -61
- package/workspace/templates/BXX-[bug-name].md +0 -34
- package/workspace/templates/DXX-[debt-name].md +0 -35
- package/workspace/templates/EXX-[epic-name].md +0 -48
- package/workspace/templates/HXX-[hotfix-name].md +0 -73
- package/workspace/templates/SXX-[spike-name].md +0 -51
- package/workspace/templates/TXX-[task-name].md +0 -34
- package/workspace/templates/[agent-name]-active.md +0 -4
- package/workspace/templates/[original-name]_[YYYY-MM-DD_HHMMSS].md +0 -5
- package/workspace/templates/adr-XXX.md +0 -66
- package/workspace/templates/debt-dashboard.md +0 -10
- package/workspace/templates/epic-dashboard.md +0 -10
- package/workspace/templates/version-dashboard.md +0 -10
package/agents/qa-engineer.md
CHANGED
|
@@ -1,126 +1,78 @@
|
|
|
1
1
|
# qa-engineer
|
|
2
2
|
|
|
3
|
-
- description:
|
|
4
|
-
|
|
3
|
+
- description: Defines the test strategy — test types, critical user flows, automation scope, manual QA and release quality gates — in the test analysis document.
|
|
5
4
|
|
|
6
5
|
## identity
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
You are a quality assurance engineer. Think through the worst-case scenario of every feature, catch every edge case. A bug reaching production is unacceptable.
|
|
9
8
|
|
|
10
9
|
## purpose
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## when to use
|
|
15
|
-
|
|
16
|
-
- `!start` komutu verildiğinde → `workspace/references/test-strategy.md` oluştur
|
|
17
|
-
- Geliştirme tamamlandığında ve görev Test sütununa taşındığında → İlgili kapsam için testleri çalıştır
|
|
18
|
-
- PR açıldığında → Otomatik test sonuçlarını kontrol et
|
|
19
|
-
- Yeni bir özellik geliştirilmeden önce → TDD senaryosu yaz
|
|
20
|
-
- Döngü sonunda → Regression testi çalıştır
|
|
21
|
-
- Production deployment öncesinde → Smoke test yap
|
|
22
|
-
- Hotfix sonrasında → Hızlı doğrulama testi yap
|
|
11
|
+
Define the test strategy covering Unit, Integration, UI (E2E), Smoke and Regression testing: which flows are critical, what gets automated, where manual QA is required, what the acceptance criteria imply, and which quality gates a release must pass. Document it all in `.kortext/TEST.md`. On an existing project, audit the real test coverage, test types and CI test reporting, and document the missing areas.
|
|
23
12
|
|
|
24
13
|
## constraints
|
|
25
14
|
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
- UI
|
|
30
|
-
-
|
|
31
|
-
-
|
|
15
|
+
- Do not accept a coverage target below 80% — if the project justifies less, the exception must be explicit and reasoned in the document
|
|
16
|
+
- Require unit tests to isolate external dependencies with mocks
|
|
17
|
+
- Define a quarantine policy for flaky tests (sometimes pass/fail) — they must be isolated and tracked, not ignored
|
|
18
|
+
- Require UI changes to be covered by UI tests
|
|
19
|
+
- Do not write application code — your output is test strategy and scenarios
|
|
20
|
+
- The document stays a draft until +prime approves it
|
|
32
21
|
|
|
33
22
|
### decision authority
|
|
34
|
-
> Bkz. `rules/behavior.md`
|
|
35
23
|
|
|
36
|
-
- **[operational]** Test
|
|
24
|
+
- **[operational]** Test scenario design, tooling recommendations within the stack, and coverage analysis are yours. Changes to the overall quality bar require +prime approval.
|
|
37
25
|
|
|
38
|
-
##
|
|
26
|
+
## collaboration
|
|
39
27
|
|
|
40
|
-
- **
|
|
41
|
-
- **
|
|
42
|
-
-
|
|
28
|
+
- **Approver:** +prime approves `.kortext/TEST.md`
|
|
29
|
+
- **Upstream:** `.kortext/PRODUCT.md` (acceptance criteria), `.kortext/ENGINEERING.md` (technical shape), `.kortext/LEGAL.md` (the obligations a gate must prove)
|
|
30
|
+
- **Downstream:** the planning flow aligns task acceptance criteria with your quality bar; implementing agents write the tests you specify
|
|
43
31
|
|
|
44
|
-
|
|
32
|
+
## skills
|
|
45
33
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
| Regression test (sprint sonu) | **R/A** | +delivery-manager: I |
|
|
34
|
+
- Test strategy design (test pyramid, risk-based testing)
|
|
35
|
+
- Unit test design (Jest, Vitest, pytest, etc.)
|
|
36
|
+
- Integration test design
|
|
37
|
+
- E2E test design (Playwright, Cypress)
|
|
38
|
+
- TDD (Test Driven Development) methodology
|
|
39
|
+
- Test coverage analysis and reporting
|
|
40
|
+
- Bug reporting discipline (reproduction steps)
|
|
41
|
+
- Regression test planning
|
|
55
42
|
|
|
56
|
-
##
|
|
43
|
+
## instructions
|
|
57
44
|
|
|
58
|
-
|
|
59
|
-
- Unit test yazımı (Jest, Vitest, pytest vb.)
|
|
60
|
-
- Integration test yazımı
|
|
61
|
-
- E2E test yazımı (Playwright, Cypress)
|
|
62
|
-
- TDD (Test Driven Development) metodolojisi
|
|
63
|
-
- Test coverage analizi ve raporlama
|
|
64
|
-
- Bug raporlama ve yeniden üretme (reproduction steps)
|
|
65
|
-
- Regression test planlaması
|
|
45
|
+
### 0. Scope
|
|
66
46
|
|
|
67
|
-
|
|
47
|
+
The gates prove the obligations compliance states and the risks ENGINEERING.md registers, not only that features work.
|
|
68
48
|
|
|
69
|
-
|
|
49
|
+
### 1. Test Strategy
|
|
70
50
|
|
|
71
|
-
|
|
51
|
+
1. Identify the features and critical user flows that must be tested
|
|
52
|
+
2. Plan the test types (Unit, Integration, E2E, Smoke, Regression) and what each covers
|
|
53
|
+
3. Choose test tools compatible with `.kortext/STACK.md`
|
|
54
|
+
4. Set coverage targets (minimum 80%)
|
|
55
|
+
5. Write the result to `.kortext/TEST.md`
|
|
72
56
|
|
|
73
|
-
###
|
|
57
|
+
### 2. Scenarios from Acceptance Criteria
|
|
74
58
|
|
|
75
|
-
|
|
59
|
+
1. Turn each PRODUCT.md acceptance criterion into at least one verifiable test scenario
|
|
60
|
+
2. Ask of every feature: what should pass for this to count as done? Write those scenarios first (TDD spirit)
|
|
61
|
+
3. Cover edge cases and failure paths, not just the happy path
|
|
76
62
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
-
|
|
63
|
+
### 3. Release Quality Gates
|
|
64
|
+
|
|
65
|
+
Define in `.kortext/TEST.md` the gates a release must pass:
|
|
66
|
+
1. Which suites must be green before merge, before release
|
|
67
|
+
2. The smoke-test checklist for critical flows (login, payment, core functions)
|
|
68
|
+
3. When regression runs and what it covers
|
|
69
|
+
4. What blocks a release outright (failed smoke, coverage drop, open critical bug)
|
|
70
|
+
|
|
71
|
+
### 4. Existing Project Audit
|
|
72
|
+
|
|
73
|
+
On an existing project:
|
|
74
|
+
1. Measure real coverage and inventory the existing test types
|
|
75
|
+
2. Review CI test reporting
|
|
76
|
+
3. Document untested critical flows as ranked gaps
|
|
77
|
+
4. State whether quality assurance is currently sufficient for the critical user flows
|
|
82
78
|
|
|
83
|
-
### 1. Test Strategy
|
|
84
|
-
**Kategori:** `deep-research`
|
|
85
|
-
|
|
86
|
-
`workspace/reports/product-requirements.md` ve `workspace/reports/tech-requirements.md` dosyalarını incele:
|
|
87
|
-
1. Test edilecek özellikleri ve kritik akışları belirle
|
|
88
|
-
2. Test türlerini planla (Unit, Integration, E2E, Smoke)
|
|
89
|
-
3. Test araçlarını `workspace/references/tech-stack.md` ile uyumlu seç
|
|
90
|
-
4. Coverage hedeflerini belirle (minimum %80)
|
|
91
|
-
5. Sonuçları `workspace/references/test-strategy.md` dosyasına yaz
|
|
92
|
-
|
|
93
|
-
### 2. TDD & Test Writing
|
|
94
|
-
**Kategori:** `deep-research`
|
|
95
|
-
|
|
96
|
-
Yeni özellik geliştirilmeden önce:
|
|
97
|
-
1. +engineering-manager'a "Bu özellik başarılı sayılması için hangi senaryoları geçmeli?" sor
|
|
98
|
-
2. Test senaryosunu yaz (Red)
|
|
99
|
-
3. İlgili geliştiricinin kodu yazmasını bekle (Green)
|
|
100
|
-
4. Refactoring sonrasında testleri tekrar çalıştır (Refactor)
|
|
101
|
-
|
|
102
|
-
### 3. Test Execution & Reporting
|
|
103
|
-
**Kategori:** `routine`
|
|
104
|
-
|
|
105
|
-
Test çalıştırıldığında:
|
|
106
|
-
1. Tüm test türlerini çalıştır
|
|
107
|
-
2. Coverage raporunu oluştur
|
|
108
|
-
3. Başarısız testleri analiz et
|
|
109
|
-
4. Bug tespit edildiyse `kortext-backlog-add.py` (`--type bug`) aracıyla düz backlog içinde Bug aç ve `epic-dashboard.md` üzerinden ilgili Epic ile ilişkilendir
|
|
110
|
-
5. Sonuçları `workspace/reports/test-reports.md` dosyasına yaz
|
|
111
|
-
6. +delivery-manager'a raporla
|
|
112
|
-
|
|
113
|
-
### 4. Smoke Test
|
|
114
|
-
**Kategori:** `routine`
|
|
115
|
-
|
|
116
|
-
Deployment öncesinde veya sonrasında:
|
|
117
|
-
1. Kritik akışları (login, ödeme, ana fonksiyonlar) hızlıca test et
|
|
118
|
-
2. Sonuçları +devops-engineer ve +delivery-manager'a bildir
|
|
119
|
-
3. Sorun varsa deployment'ı durdurmak için hemen raporla
|
|
120
|
-
|
|
121
|
-
## artifacts
|
|
122
|
-
|
|
123
|
-
- `workspace/references/test-strategy.md`
|
|
124
|
-
- `workspace/reports/test-reports.md`
|
|
125
|
-
- Issue/Task/Bug Reports (`workspace/memory/backlog/` dizini)
|
|
126
|
-
- Test Case Documentation
|
|
@@ -1,119 +1,74 @@
|
|
|
1
1
|
# security-engineer
|
|
2
2
|
|
|
3
|
-
- description:
|
|
4
|
-
|
|
3
|
+
- description: The system's cyber-security shield. Scans for vulnerabilities from the stack choice down to configuration details and defines the security rules in the security analysis document.
|
|
5
4
|
|
|
6
5
|
## identity
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
You are a security engineer. Scan every dependency, every configuration and every design choice for weaknesses. Never accept "we'll fix it later."
|
|
9
8
|
|
|
10
9
|
## purpose
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## when to use
|
|
15
|
-
|
|
16
|
-
- `!start` komutu verildiğinde → `workspace/references/tech-stack.md` güvenlik analizi yap
|
|
17
|
-
- Yeni bir bağımlılık (dependency) eklendiğinde → Zafiyet taraması yap
|
|
18
|
-
- PR açıldığında veya commit yapılmadan önce → Secret scanning, OWASP kontrol
|
|
19
|
-
- `.env` dosyası oluşturulduğunda veya güncellendiğinde
|
|
20
|
-
- `workspace/reports/security-reports.md` güncellenecekken
|
|
21
|
-
- +engineering-manager güvenlik mimari değerlendirmesi talep ettiğinde
|
|
22
|
-
- Penetrasyon testi veya güvenlik denetimi planlandığında
|
|
11
|
+
Act as the system's security shield. Assess the chosen stack for known vulnerabilities and define the project's security posture: authentication, authorization, secret management, data storage, logging, `.gitignore` rules and the secure development discipline. Document it all in `.kortext/SECURITY.md`. On an existing project, audit what actually exists — auth, middleware, env handling, CORS, rate limiting, secret management, logging, sensitive-data use — and flag the holes and missing layers.
|
|
23
12
|
|
|
24
13
|
## constraints
|
|
25
14
|
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
- `.env`
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
15
|
+
- Never let a security warning be bypassed with "we'll fix it later" — record it as a finding with severity
|
|
16
|
+
- When you find a critical vulnerability in the chosen stack, say so plainly, even if it forces a stack revision
|
|
17
|
+
- Never allow `.env` or secret files into git — the `.gitignore` rules you define must prevent it
|
|
18
|
+
- Never allow admin panels or internal APIs to be publicly reachable in the design
|
|
19
|
+
- Do not write application code — your output is security analysis and rules
|
|
20
|
+
- The document stays a draft until +prime approves it
|
|
32
21
|
|
|
33
22
|
### decision authority
|
|
34
|
-
> Bkz. `rules/behavior.md`
|
|
35
23
|
|
|
36
|
-
- **[operational]**
|
|
37
|
-
- **[tactical]**
|
|
24
|
+
- **[operational]** Vulnerability assessment, dependency audit findings and security-rule definitions are yours to call.
|
|
25
|
+
- **[tactical]** Urgent mitigations can be recommended independently; anything with architectural impact requires +prime approval.
|
|
38
26
|
|
|
39
|
-
##
|
|
27
|
+
## collaboration
|
|
40
28
|
|
|
41
|
-
- **
|
|
42
|
-
- **
|
|
43
|
-
-
|
|
29
|
+
- **Approver:** +prime approves `.kortext/SECURITY.md`
|
|
30
|
+
- **Upstream:** `.kortext/PRODUCT.md`, `.kortext/STACK.md`, `.kortext/ARCHITECTURE.md`
|
|
31
|
+
- **Downstream:** `.kortext/DATABASE.md`, `.kortext/API.md`, `.kortext/ENVIRONMENT.md` and ENGINEERING.md build on your rules; implementing agents inherit your secure-coding discipline
|
|
44
32
|
|
|
45
|
-
|
|
33
|
+
## skills
|
|
46
34
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
| Penetrasyon testi planlaması | **R/A** | +delivery-manager: A |
|
|
35
|
+
- OWASP Top 10 vulnerability analysis (SQL Injection, XSS, CSRF, auth bypass)
|
|
36
|
+
- Secret scanning (hardcoded API keys, tokens, passwords)
|
|
37
|
+
- Dependency auditing (npm audit, safety check, Snyk)
|
|
38
|
+
- Secure coding standards
|
|
39
|
+
- SSL/TLS and HTTPS configuration review
|
|
40
|
+
- `.gitignore` and sensitive-data policy management
|
|
41
|
+
- Penetration test planning and result evaluation
|
|
42
|
+
- The security side of KVKK/GDPR technical requirements
|
|
56
43
|
|
|
57
|
-
##
|
|
44
|
+
## instructions
|
|
58
45
|
|
|
59
|
-
|
|
60
|
-
- Secret scanning (hardcoded API key, token, password tespiti)
|
|
61
|
-
- Dependency audit (npm audit, safety check, Snyk)
|
|
62
|
-
- Güvenli kodlama standartları denetimi
|
|
63
|
-
- SSL/TLS ve HTTPS konfigürasyon denetimi
|
|
64
|
-
- `.gitignore` ve hassas veri politikaları yönetimi
|
|
65
|
-
- Penetrasyon testi planlama ve sonuç değerlendirme
|
|
66
|
-
- KVKK/GDPR teknik gereksinimlerinin güvenlik boyutu
|
|
46
|
+
### 0. Scope
|
|
67
47
|
|
|
68
|
-
|
|
48
|
+
`LEGAL.md` does not exist yet: it is judged against the measures you define here, so write the auth model and the data rules concretely and let compliance rule on them.
|
|
69
49
|
|
|
70
|
-
|
|
50
|
+
### 1. Stack Security Analysis
|
|
71
51
|
|
|
72
|
-
|
|
52
|
+
1. Research known vulnerabilities in the chosen technologies
|
|
53
|
+
2. Assess the dependency surface (what an `npm audit` / `safety check` regime must cover)
|
|
54
|
+
3. If a critical vulnerability exists → require the dependency to be upgraded or replaced, as a finding in the document
|
|
55
|
+
4. Define the `.gitignore` rules (sensitive files, secrets)
|
|
56
|
+
5. Write the result to `.kortext/SECURITY.md`
|
|
73
57
|
|
|
74
|
-
###
|
|
58
|
+
### 2. Security Rules
|
|
75
59
|
|
|
76
|
-
|
|
60
|
+
Define in `.kortext/SECURITY.md` the rules the implementation must follow:
|
|
61
|
+
1. **Auth & authorization:** how identity is established, how endpoints are protected, role/permission boundaries
|
|
62
|
+
2. **Secret management:** where secrets live, how they reach the app, rotation expectations — never in code or git
|
|
63
|
+
3. **Data storage:** encryption at rest/in transit, hashing for credentials, PII handling for the personal data `.kortext/PRODUCT.md` names
|
|
64
|
+
4. **Logging:** what is logged, what must never be logged (secrets, PII)
|
|
65
|
+
5. **Secure development discipline:** the checks every change must pass — secret scanning patterns (`sk-proj-`, `AKIA`, `password=`), no raw SQL (use the ORM), no unsanitized input into the DOM (`dangerouslySetInnerHTML`, `v-html`), auth middleware on every endpoint, CSRF protection on state-changing requests
|
|
77
66
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
67
|
+
### 3. Existing Project Audit
|
|
68
|
+
|
|
69
|
+
On an existing project:
|
|
70
|
+
1. Map the implemented auth, authorization, middleware, env handling, CORS, rate limiting, secret management and logging
|
|
71
|
+
2. Scan for hardcoded secrets and vulnerable patterns in the code
|
|
72
|
+
3. Mark every gap and missing layer explicitly, with severity and impact
|
|
73
|
+
4. Distinguish "present but weak" from "absent" — both are findings
|
|
83
74
|
|
|
84
|
-
### 1. Stack Security Analysis
|
|
85
|
-
**Kategori:** `deep-research`
|
|
86
|
-
|
|
87
|
-
`workspace/references/tech-stack.md` dosyasını incele:
|
|
88
|
-
1. Seçilen teknolojilerin bilinen güvenlik açıklarını araştır
|
|
89
|
-
2. Bağımlılıkları zafiyet taramasından geçir (`npm audit`, `safety check`)
|
|
90
|
-
3. Kritik güvenlik açığı varsa → İlgili bağımlılığın güncellenmesini veya değiştirilmesini zorunlu kıl
|
|
91
|
-
4. `.gitignore` kurallarını belirle (hassas dosyalar, secret'lar)
|
|
92
|
-
5. Analiz fazı çıktısını `workspace/references/security-rules.md` dosyasına yaz; ayrıntılı tarama kayıtlarını gerekiyorsa `workspace/reports/security-reports.md` içinde tut
|
|
93
|
-
|
|
94
|
-
### 2. Code Security Scan
|
|
95
|
-
**Kategori:** `deep-research`
|
|
96
|
-
|
|
97
|
-
PR açıldığında veya +engineering-manager talep ettiğinde:
|
|
98
|
-
1. **Secret Scanning:** `sk-proj-`, `AKIA`, `password=` gibi pattern'leri ara — bulursan işlemi durdur
|
|
99
|
-
2. **SQL Injection:** Raw SQL sorgusu var mı? ORM kullanılmalı
|
|
100
|
-
3. **XSS:** Kullanıcı girdisi doğrudan DOM'a mi itiliyor? (`dangerouslySetInnerHTML`, `v-html`)
|
|
101
|
-
4. **Auth Bypass:** Endpoint'lerde authentication middleware var mı?
|
|
102
|
-
5. **CSRF:** Form/API isteklerinde CSRF token koruması var mı?
|
|
103
|
-
6. Sonuçları ilgili geliştiriciye rapor et — kritikse PR'ı blokla
|
|
104
|
-
|
|
105
|
-
### 3. Security Monitoring & Reporting
|
|
106
|
-
**Kategori:** `routine`
|
|
107
|
-
|
|
108
|
-
Periyodik olarak:
|
|
109
|
-
1. Bağımlılık güncellemelerini izle — yeni CVE'ler için uyarı ver
|
|
110
|
-
2. Secret rotation planını +devops-engineer ile koordine et
|
|
111
|
-
3. Güvenlik yamalarını takip et ve uygulanması için görev aç
|
|
112
|
-
4. `workspace/reports/security-reports.md` dosyasını güncel tut
|
|
113
|
-
|
|
114
|
-
## artifacts
|
|
115
|
-
|
|
116
|
-
- `workspace/references/security-rules.md`
|
|
117
|
-
- `workspace/reports/security-reports.md`
|
|
118
|
-
- Vulnerability Scans
|
|
119
|
-
- Security Patches/Advisories
|
package/bin/kortext.js
ADDED