opencode-skills-collection 4.1.0 → 4.1.2

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 (219) hide show
  1. package/README.md +46 -42
  2. package/bundled-skills/.antigravity-install-manifest.json +127 -1
  3. package/bundled-skills/360-feedback-system/SKILL.md +481 -0
  4. package/bundled-skills/access-matrix/SKILL.md +338 -0
  5. package/bundled-skills/accounting-audit-system-builder/SKILL.md +302 -0
  6. package/bundled-skills/accounting-audit-system-builder/references/catalog.md +114 -0
  7. package/bundled-skills/accounting-software-selection/SKILL.md +427 -0
  8. package/bundled-skills/accounting-software-selection/references/build-artifacts.md +362 -0
  9. package/bundled-skills/accounting-software-selection/references/common-pitfalls.md +44 -0
  10. package/bundled-skills/accounting-software-selection/references/field-reference.md +93 -0
  11. package/bundled-skills/accounting-software-selection/references/select-options.md +202 -0
  12. package/bundled-skills/admin-access-register/SKILL.md +381 -0
  13. package/bundled-skills/advanced-analytics-dashboard/SKILL.md +318 -0
  14. package/bundled-skills/ai-image-generation-studio/SKILL.md +259 -0
  15. package/bundled-skills/ai-logo-maker/SKILL.md +259 -0
  16. package/bundled-skills/ai-multilingual-dubbing/SKILL.md +259 -0
  17. package/bundled-skills/ai-photo-restyler/SKILL.md +259 -0
  18. package/bundled-skills/ai-podcast-voiceover/SKILL.md +259 -0
  19. package/bundled-skills/alumni-re-hire-tracker/SKILL.md +314 -0
  20. package/bundled-skills/announcement-board/SKILL.md +336 -0
  21. package/bundled-skills/antigravity-maintainer-batch-release/SKILL.md +48 -3
  22. package/bundled-skills/asset-it-management/SKILL.md +407 -0
  23. package/bundled-skills/attendance/SKILL.md +331 -0
  24. package/bundled-skills/audit-log/SKILL.md +314 -0
  25. package/bundled-skills/audit-preparation/SKILL.md +416 -0
  26. package/bundled-skills/beatra/SKILL.md +260 -0
  27. package/bundled-skills/board-governance/SKILL.md +360 -0
  28. package/bundled-skills/brand-growth-system-builder/SKILL.md +360 -0
  29. package/bundled-skills/brand-kit-print-collateral/SKILL.md +498 -0
  30. package/bundled-skills/buddy-program-manager/SKILL.md +329 -0
  31. package/bundled-skills/budget-cash-flow/SKILL.md +352 -0
  32. package/bundled-skills/busabase/SKILL.md +118 -0
  33. package/bundled-skills/business-email-template/SKILL.md +480 -0
  34. package/bundled-skills/business-email-template/references/common-pitfalls.md +30 -0
  35. package/bundled-skills/business-website-setup/SKILL.md +489 -0
  36. package/bundled-skills/business-website-setup/references/common-pitfalls.md +32 -0
  37. package/bundled-skills/candidate-talent-pool/SKILL.md +359 -0
  38. package/bundled-skills/capacity-workload-planner/SKILL.md +354 -0
  39. package/bundled-skills/changelog-entry/SKILL.md +141 -0
  40. package/bundled-skills/clients-accounts/SKILL.md +398 -0
  41. package/bundled-skills/code-of-conduct/SKILL.md +488 -0
  42. package/bundled-skills/code-of-conduct/references/common-pitfalls.md +31 -0
  43. package/bundled-skills/company-email-accounts/SKILL.md +404 -0
  44. package/bundled-skills/competency-matrix/SKILL.md +335 -0
  45. package/bundled-skills/contract-document-renewal/SKILL.md +396 -0
  46. package/bundled-skills/course-upskilling-requests/SKILL.md +354 -0
  47. package/bundled-skills/credit-cycle-analysis/SKILL.md +303 -0
  48. package/bundled-skills/credit-cycle-analysis/references/best-practices.md +35 -0
  49. package/bundled-skills/credit-cycle-analysis/references/common-pitfalls.md +5 -0
  50. package/bundled-skills/credit-cycle-analysis/references/examples.md +34 -0
  51. package/bundled-skills/credit-cycle-analysis/references/field-reference.md +47 -0
  52. package/bundled-skills/credit-cycle-analysis/references/how-it-works.md +494 -0
  53. package/bundled-skills/credit-cycle-analysis/references/security-notes.md +16 -0
  54. package/bundled-skills/credit-cycle-analysis/references/select-options.md +32 -0
  55. package/bundled-skills/csv-manual-export/SKILL.md +499 -0
  56. package/bundled-skills/csv-manual-export/references/common-pitfalls.md +19 -0
  57. package/bundled-skills/culture-retention/SKILL.md +346 -0
  58. package/bundled-skills/data-export-engine/SKILL.md +308 -0
  59. package/bundled-skills/data-privacy-controls/SKILL.md +317 -0
  60. package/bundled-skills/day-book/SKILL.md +499 -0
  61. package/bundled-skills/day-book/references/best-practices.md +32 -0
  62. package/bundled-skills/day-book/references/common-pitfalls.md +58 -0
  63. package/bundled-skills/day-book/references/field-reference.md +45 -0
  64. package/bundled-skills/day-book/references/how-it-works.md +7 -0
  65. package/bundled-skills/day-book/references/related-skills.md +18 -0
  66. package/bundled-skills/day-book/references/relations.md +14 -0
  67. package/bundled-skills/day-book/references/reusable-prompt.md +50 -0
  68. package/bundled-skills/day-book/references/security-safety-notes.md +19 -0
  69. package/bundled-skills/day-book/references/select-options.md +38 -0
  70. package/bundled-skills/dei-dashboard/SKILL.md +307 -0
  71. package/bundled-skills/design-theme-guide/SKILL.md +472 -0
  72. package/bundled-skills/disciplinary-pip-tracker/SKILL.md +345 -0
  73. package/bundled-skills/document-management-system/SKILL.md +328 -0
  74. package/bundled-skills/ecommerce-listing-image-set/SKILL.md +259 -0
  75. package/bundled-skills/employee-suggestion-hub/SKILL.md +322 -0
  76. package/bundled-skills/esop-equity-tracker/SKILL.md +331 -0
  77. package/bundled-skills/events-activities/SKILL.md +355 -0
  78. package/bundled-skills/expense-accounting/SKILL.md +496 -0
  79. package/bundled-skills/expense-accounting/references/common-pitfalls.md +41 -0
  80. package/bundled-skills/expense-accounting/references/related-skills.md +11 -0
  81. package/bundled-skills/expense-accounting/references/reusable-prompt.md +36 -0
  82. package/bundled-skills/expense-management/SKILL.md +351 -0
  83. package/bundled-skills/free-design-resources/SKILL.md +480 -0
  84. package/bundled-skills/free-design-resources/references/common-pitfalls.md +44 -0
  85. package/bundled-skills/free-design-resources/references/related-skills.md +24 -0
  86. package/bundled-skills/free-design-resources/references/reusable-prompt.md +12 -0
  87. package/bundled-skills/gamification-engine/SKILL.md +307 -0
  88. package/bundled-skills/gbp-local-seo-intent/SKILL.md +466 -0
  89. package/bundled-skills/gbp-local-seo-intent/references/best-practices.md +41 -0
  90. package/bundled-skills/gbp-local-seo-intent/references/common-pitfalls.md +40 -0
  91. package/bundled-skills/gbp-local-seo-intent/references/related-skills.md +17 -0
  92. package/bundled-skills/gbp-local-seo-intent/references/reusable-prompt.md +11 -0
  93. package/bundled-skills/gbp-local-seo-intent/references/security-safety-notes.md +27 -0
  94. package/bundled-skills/health-wellness/SKILL.md +334 -0
  95. package/bundled-skills/intern-program/SKILL.md +354 -0
  96. package/bundled-skills/internal-communication/SKILL.md +318 -0
  97. package/bundled-skills/inventory-stock-reconciliation/SKILL.md +470 -0
  98. package/bundled-skills/inventory-stock-reconciliation/references/best-practices.md +18 -0
  99. package/bundled-skills/inventory-stock-reconciliation/references/common-pitfalls.md +42 -0
  100. package/bundled-skills/inventory-stock-reconciliation/references/related-skills.md +13 -0
  101. package/bundled-skills/inventory-stock-reconciliation/references/relations.md +8 -0
  102. package/bundled-skills/inventory-stock-reconciliation/references/reusable-prompt.md +31 -0
  103. package/bundled-skills/inventory-stock-reconciliation/references/security-safety-notes.md +17 -0
  104. package/bundled-skills/inventory-stock-reconciliation/references/select-options.md +45 -0
  105. package/bundled-skills/invoices-billing/SKILL.md +385 -0
  106. package/bundled-skills/issue-grievance-tracker/SKILL.md +400 -0
  107. package/bundled-skills/json-schema-manual/SKILL.md +309 -0
  108. package/bundled-skills/json-schema-manual/references/best-practices.md +9 -0
  109. package/bundled-skills/json-schema-manual/references/common-pitfalls.md +25 -0
  110. package/bundled-skills/json-schema-manual/references/input-modules.md +203 -0
  111. package/bundled-skills/json-schema-manual/references/related-skills.md +8 -0
  112. package/bundled-skills/json-schema-manual/references/reusable-prompt.md +10 -0
  113. package/bundled-skills/json-schema-manual/references/security-safety-notes.md +13 -0
  114. package/bundled-skills/knowledge-base/SKILL.md +318 -0
  115. package/bundled-skills/kpi-tracker/SKILL.md +345 -0
  116. package/bundled-skills/learning-career-development/SKILL.md +349 -0
  117. package/bundled-skills/leave-management/SKILL.md +341 -0
  118. package/bundled-skills/legal-compliance-vault/SKILL.md +324 -0
  119. package/bundled-skills/linktree-link-hub/SKILL.md +453 -0
  120. package/bundled-skills/logo-image-design/SKILL.md +459 -0
  121. package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package-lock.json +3 -3
  122. package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package.json +2 -1
  123. package/bundled-skills/mentorship-program/SKILL.md +332 -0
  124. package/bundled-skills/mirrord/SKILL.md +90 -0
  125. package/bundled-skills/monthly-closing-statements/SKILL.md +488 -0
  126. package/bundled-skills/monthly-closing-statements/references/related-skills.md +17 -0
  127. package/bundled-skills/monthly-closing-statements/references/reusable-prompt.md +8 -0
  128. package/bundled-skills/music-generation-studio/SKILL.md +259 -0
  129. package/bundled-skills/notification-reminder-hub/SKILL.md +324 -0
  130. package/bundled-skills/notion-manual-import/SKILL.md +376 -0
  131. package/bundled-skills/notion-manual-import/references/best-practices.md +10 -0
  132. package/bundled-skills/notion-manual-import/references/common-pitfalls.md +26 -0
  133. package/bundled-skills/notion-manual-import/references/input-modules.md +203 -0
  134. package/bundled-skills/notion-manual-import/references/related-skills.md +7 -0
  135. package/bundled-skills/notion-manual-import/references/reusable-prompt.md +8 -0
  136. package/bundled-skills/notion-manual-import/references/security-safety-notes.md +15 -0
  137. package/bundled-skills/observability-cloud-planning/SKILL.md +487 -0
  138. package/bundled-skills/observability-cloud-planning/references/common-pitfalls.md +39 -0
  139. package/bundled-skills/observability-cloud-planning/references/related-skills.md +20 -0
  140. package/bundled-skills/observability-cloud-planning/references/reusable-prompt.md +12 -0
  141. package/bundled-skills/observability-cloud-planning/references/security-safety-notes.md +30 -0
  142. package/bundled-skills/offboarding-exit/SKILL.md +343 -0
  143. package/bundled-skills/offer-appointment/SKILL.md +351 -0
  144. package/bundled-skills/okr-system/SKILL.md +355 -0
  145. package/bundled-skills/omentir-linkedin-outreach/SKILL.md +96 -0
  146. package/bundled-skills/onboarding-playbook/SKILL.md +292 -0
  147. package/bundled-skills/organization-design/SKILL.md +324 -0
  148. package/bundled-skills/party-ledger-reconciliation/SKILL.md +411 -0
  149. package/bundled-skills/payment-accounting/SKILL.md +421 -0
  150. package/bundled-skills/payments-received/SKILL.md +315 -0
  151. package/bundled-skills/payroll-finance/SKILL.md +351 -0
  152. package/bundled-skills/people-directory/SKILL.md +459 -0
  153. package/bundled-skills/performance-management/SKILL.md +367 -0
  154. package/bundled-skills/petty-cash-management/SKILL.md +448 -0
  155. package/bundled-skills/policy-acknowledgement/SKILL.md +314 -0
  156. package/bundled-skills/policy-library/SKILL.md +327 -0
  157. package/bundled-skills/poster-design-studio/SKILL.md +259 -0
  158. package/bundled-skills/pre-boarding/SKILL.md +326 -0
  159. package/bundled-skills/presentation-deck/SKILL.md +491 -0
  160. package/bundled-skills/presentation-deck/references/related-skills.md +19 -0
  161. package/bundled-skills/presentation-deck/references/reusable-prompt.md +11 -0
  162. package/bundled-skills/probation-tracker/SKILL.md +347 -0
  163. package/bundled-skills/product-photo-studio/SKILL.md +259 -0
  164. package/bundled-skills/project-based-performance/SKILL.md +323 -0
  165. package/bundled-skills/projects-work-management/SKILL.md +368 -0
  166. package/bundled-skills/promotion-upgrade-requests/SKILL.md +377 -0
  167. package/bundled-skills/purchase-accounting/SKILL.md +414 -0
  168. package/bundled-skills/receipt-accounting/SKILL.md +424 -0
  169. package/bundled-skills/recognition-rewards/SKILL.md +324 -0
  170. package/bundled-skills/recruitment-pipeline/SKILL.md +399 -0
  171. package/bundled-skills/remote-work-tracker/SKILL.md +306 -0
  172. package/bundled-skills/reports-analytics/SKILL.md +320 -0
  173. package/bundled-skills/salary-benchmarking/SKILL.md +318 -0
  174. package/bundled-skills/salary-wage-accounting/SKILL.md +412 -0
  175. package/bundled-skills/sales-accounting/SKILL.md +494 -0
  176. package/bundled-skills/sales-accounting/references/common-pitfalls.md +28 -0
  177. package/bundled-skills/sales-accounting/references/related-skills.md +13 -0
  178. package/bundled-skills/sales-accounting/references/reusable-prompt.md +8 -0
  179. package/bundled-skills/seo-directory-backlinks/SKILL.md +484 -0
  180. package/bundled-skills/seo-directory-backlinks/references/common-pitfalls.md +36 -0
  181. package/bundled-skills/seo-directory-backlinks/references/related-skills.md +15 -0
  182. package/bundled-skills/seo-directory-backlinks/references/reusable-prompt.md +11 -0
  183. package/bundled-skills/since-cutoff/SKILL.md +68 -0
  184. package/bundled-skills/skill-gap-analysis/SKILL.md +338 -0
  185. package/bundled-skills/social-media-setup/SKILL.md +477 -0
  186. package/bundled-skills/social-media-setup/references/common-pitfalls.md +34 -0
  187. package/bundled-skills/social-media-setup/references/related-skills.md +19 -0
  188. package/bundled-skills/social-media-setup/references/reusable-prompt.md +11 -0
  189. package/bundled-skills/social-media-setup/references/security-safety-notes.md +27 -0
  190. package/bundled-skills/sop-company-wiki/SKILL.md +324 -0
  191. package/bundled-skills/source-document-filing/SKILL.md +368 -0
  192. package/bundled-skills/spreadsheet-manual-build/SKILL.md +493 -0
  193. package/bundled-skills/spreadsheet-manual-build/references/best-practices.md +9 -0
  194. package/bundled-skills/spreadsheet-manual-build/references/common-pitfalls.md +22 -0
  195. package/bundled-skills/spreadsheet-manual-build/references/related-skills.md +8 -0
  196. package/bundled-skills/spreadsheet-manual-build/references/reusable-prompt.md +9 -0
  197. package/bundled-skills/spreadsheet-manual-build/references/security-safety-notes.md +16 -0
  198. package/bundled-skills/stakeholder-investor-reports/SKILL.md +303 -0
  199. package/bundled-skills/suno-lyrics-to-song/SKILL.md +259 -0
  200. package/bundled-skills/talking-avatar-video/SKILL.md +260 -0
  201. package/bundled-skills/tax-register/SKILL.md +363 -0
  202. package/bundled-skills/tds-booking-payment/SKILL.md +405 -0
  203. package/bundled-skills/team-calendar/SKILL.md +312 -0
  204. package/bundled-skills/telegram/assets/boilerplate/nodejs/package-lock.json +3 -3
  205. package/bundled-skills/telegram/assets/boilerplate/nodejs/package.json +1 -0
  206. package/bundled-skills/template-library/SKILL.md +304 -0
  207. package/bundled-skills/time-tracking/SKILL.md +353 -0
  208. package/bundled-skills/vendor-contractor-management/SKILL.md +327 -0
  209. package/bundled-skills/viral-video-teardown-remake/SKILL.md +260 -0
  210. package/bundled-skills/voice-cloning-studio/SKILL.md +260 -0
  211. package/bundled-skills/voiceover-narration-studio/SKILL.md +259 -0
  212. package/bundled-skills/whatsapp-cloud-api/assets/boilerplate/nodejs/package-lock.json +3 -3
  213. package/bundled-skills/whatsapp-cloud-api/assets/boilerplate/nodejs/package.json +1 -0
  214. package/dist/skill-pointer/index.d.ts +2 -1
  215. package/dist/skill-pointer/index.js +2 -1
  216. package/dist/skill-pointer/pointer-generator.d.ts +4 -2
  217. package/dist/skill-pointer/pointer-generator.js +4 -2
  218. package/package.json +1 -1
  219. package/skills_index.json +4312 -0
@@ -0,0 +1,354 @@
1
+ ---
2
+ name: course-upskilling-requests
3
+ description: 'Training request register: course, provider, cost, duration, budget line, the three approval steps, service bond and completion evidence. Use for upskilling approvals.'
4
+ category: business
5
+ risk: safe
6
+ source: self
7
+ source_type: self
8
+ date_added: "2026-09-26"
9
+ author: WHOISABHISHEKADHIKARI
10
+ tags: [sme, business, operations, database, csv, notion, sql, develop]
11
+ tools: []
12
+ source_repo: WHOISABHISHEKADHIKARI/sme-ops-system-builder
13
+ ---
14
+
15
+ # Course & Upskilling Requests
16
+
17
+ **What it is:** Staff ask for a course, managers and finance approve, LMS tracks it.
18
+
19
+ ## Overview
20
+
21
+ Works out the smallest useful **Course & Upskilling Requests** setup for the business in front of it, then
22
+ builds it only when asked. The default output is a short recommendation, not a
23
+ spreadsheet. Artifacts - CSV, SQL DDL, JSON Schema, Notion mapping - are produced on
24
+ request, from one field list so they cannot drift apart.
25
+
26
+ Layer: Layer 5: Develop. Fits: Growth stage. Table code: n/a.
27
+
28
+ ## When to Use This Skill
29
+
30
+ - training request form
31
+ - upskilling request tracker
32
+ - staff training request
33
+
34
+ Also use it when the user says "staff ask for a course, managers and finance approve, lms tracks it", or describes the same process happening in a
35
+ spreadsheet, a document or someone inboxes.
36
+
37
+ Do not use it for: payroll calculation, tax filing, or legal advice. This skill produces
38
+ empty templates only - it never holds or processes real employee or customer data.
39
+
40
+ ## How It Works
41
+
42
+ Follow the shared execution contract. The module-specific rules below define only domain fields, decisions, calculations, and safety constraints.
43
+
44
+ ### Step 1 - Identify intent
45
+
46
+ Read the request and pick the intent before asking anything.
47
+
48
+ - "set up" or "build" or "create" -> the user wants artifacts; go to Step 2.
49
+ - "our process is ..." or "it is in a sheet" -> the user wants to move an existing process; capture it, then Step 2.
50
+ - "is this right" or "review" or "audit" -> the user wants a check, not a build; answer from what they share.
51
+ - "how do I ..." -> advice question; answer directly and offer the build only if it helps.
52
+
53
+ Ask only if this is the highest-value missing fact; otherwise proceed without an opener:
54
+
55
+ > **Q:** What is the training budget per person?
56
+
57
+ ### Step 2 - Ask only what is missing
58
+
59
+ Skip anything the user already answered, in any earlier message. Ask the rest one at a
60
+ time, and stop as soon as the remaining answers would not change the output.
61
+
62
+ - **Budget** - Budget per person? / Annual pool or per request? / Currency?
63
+ - **Approval** - Who approves? / Manager then finance? / Fast track under what amount?
64
+ - **After approval** - Bond needed? / LMS or external? / Certificate tracked?
65
+ - **Current process** - How do people ask now? / Email or form? / What gets lost?
66
+ - **Outcome** - What do you need? / A request form, approvals or tracking?
67
+
68
+ Never invent an answer. If the user does not know, record it as unknown and carry on.
69
+
70
+ ### Step 3 - Hold the internal context
71
+
72
+ Hold the answers in this shape. It stays internal - it is not shown to the user unless
73
+ they ask, and it never carries a value the user did not give.
74
+
75
+ ```yaml
76
+ module: course-upskilling-requests
77
+ intent: null # setup | advice | review | fix | build | convert | export
78
+ scale: null # Starter | Growth | Scale, only if the answer changes it
79
+ areas:
80
+ "Budget": null
81
+ "Approval": null
82
+ "After approval": null
83
+ "Current process": null
84
+ "Outcome": null
85
+ requested_outputs: [] # csv | sql | json | notion | xlsx - requested formats only
86
+ confirmed_facts: [] # only what the user actually said
87
+ open_questions: [] # the unanswered ones, in the order worth asking
88
+ ```
89
+
90
+ ### Step 4 - Recommend the smallest workflow
91
+
92
+ If an artifact was requested, build it after resolving essential missing facts. Otherwise give a short recommendation and offer the relevant artifact.
93
+
94
+ **Recommended approach:** Route by cost, and record the decision. Tracking completion only matters if completion affects something.
95
+
96
+ **Why this one:** Training requests stall at approval, not at enrolment. A cost threshold with a named approver removes the bottleneck.
97
+
98
+ **Workflow:** Request → Manager approval → Finance approval → Enrolment → Completion and certificate
99
+
100
+ ### Step 5 - Build only on request
101
+
102
+ Once the user asks for it, derive the fields from the confirmed context and emit the
103
+ requested artifacts. For machine-readable text, keep prose outside the data; for files,
104
+ provide a usable link. Report material validation failures or limitations separately.
105
+
106
+ **A selected Notion output is rendered by `notion-manual-import`, so route the
107
+ Notion step there.** When the user selects Notion, hand that step to
108
+ @notion-manual-import: it holds the CSV, the property
109
+ mapping, the import steps and the verification checklist, and it renders the Field
110
+ Reference below instead of defining a table of its own. Do not restate the mapping
111
+ here and do not improvise the import steps. Manual CSV and mapping outputs need no
112
+ connection. For requested workspace changes, follow the shared contract: verify actual
113
+ tool access and the target before writing. A user saying "connected" is not tool evidence.
114
+ Never ask for a Notion password or token.
115
+
116
+ For an Excel-compatible CSV, use UTF-8 with a byte order mark so Excel opens the
117
+ text correctly. A CSV is not an `.xlsx` workbook; create `.xlsx` only when the user
118
+ requests a workbook.
119
+ A CSV carries no types, so after it, name the columns
120
+ that need a number, date or currency format applied.
121
+
122
+ ```csv
123
+ Request Title,Employee Name,Department,Course Name,Provider,Course Link,Linked Skill Gap,Reason,Cost,Currency,Duration (Hours),Start Date,Manager Approval,HR Approval,Finance Approval,Budget Line,Service Bond (Months),Enrolled in LMS,Completion Date,Certificate Received,Status,Course Request ID
124
+ Promotion to L3,Aarav Sharma,Delivery,Advanced SQL, Udemy,https://example.com/courses/safety,GAP-2026-003,Skill gap identified in the quarterly review,98000.00,INR,2.5,2026-01-15,FALSE,FALSE,FALSE,BL-114 Travel,12,FALSE,2026-01-15,FALSE,Approved,
125
+ ```
126
+
127
+ ```sql
128
+ CREATE TABLE course_upskilling_requests (
129
+ request_title VARCHAR(255),
130
+ employee_name VARCHAR(255),
131
+ department VARCHAR(255),
132
+ course_name VARCHAR(255),
133
+ provider VARCHAR(255),
134
+ course_link TEXT,
135
+ linked_skill_gap VARCHAR(255), -- relation -> target record
136
+ reason VARCHAR(255),
137
+ cost NUMERIC(14,2) NOT NULL,
138
+ currency VARCHAR(255),
139
+ duration_hours NUMERIC NOT NULL,
140
+ start_date DATE NOT NULL,
141
+ manager_approval BOOLEAN NOT NULL,
142
+ hr_approval BOOLEAN NOT NULL,
143
+ finance_approval BOOLEAN NOT NULL,
144
+ budget_line VARCHAR(255),
145
+ service_bond_months NUMERIC NOT NULL,
146
+ enrolled_in_lms BOOLEAN NOT NULL,
147
+ completion_date DATE NOT NULL,
148
+ certificate_received BOOLEAN NOT NULL,
149
+ status VARCHAR(100) NOT NULL,
150
+ course_request_id SERIAL PRIMARY KEY,
151
+ created_at TIMESTAMP DEFAULT NOW(),
152
+ updated_at TIMESTAMP DEFAULT NOW()
153
+ );
154
+
155
+ CREATE INDEX idx_course_upskilling_requests_status ON course_upskilling_requests (status);
156
+ ```
157
+
158
+ ```json
159
+ {
160
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
161
+ "title": "Course & Upskilling Requests",
162
+ "type": "object",
163
+ "additionalProperties": false,
164
+ "properties": {
165
+ "Request Title": { "type": "string" },
166
+ "Employee Name": { "type": "string" },
167
+ "Department": { "type": "string" },
168
+ "Course Name": { "type": "string" },
169
+ "Provider": { "type": "string" },
170
+ "Course Link": { "type": "string", "format": "uri" },
171
+ "Linked Skill Gap": { "type": "string" },
172
+ "Reason": { "type": "string" },
173
+ "Cost": { "type": "number" },
174
+ "Currency": { "type": "string" },
175
+ "Duration (Hours)": { "type": "number" },
176
+ "Start Date": { "type": "string", "format": "date" },
177
+ "Manager Approval": { "type": "boolean" },
178
+ "HR Approval": { "type": "boolean" },
179
+ "Finance Approval": { "type": "boolean" },
180
+ "Budget Line": { "type": "string" },
181
+ "Service Bond (Months)": { "type": "number" },
182
+ "Enrolled in LMS": { "type": "boolean" },
183
+ "Completion Date": { "type": "string", "format": "date" },
184
+ "Certificate Received": { "type": "boolean" },
185
+ "Status": { "type": "string" },
186
+ "Course Request ID": { "type": "integer" }
187
+ },
188
+ "required": [
189
+ "Cost",
190
+ "Duration (Hours)",
191
+ "Start Date",
192
+ "Service Bond (Months)",
193
+ "Completion Date",
194
+ "Status"
195
+ ]
196
+ }
197
+ ```
198
+
199
+ ```markdown
200
+ | CSV column | Notion property | Set after import |
201
+ |---|---|---|
202
+ | Request Title | Title | Use as the database title |
203
+ | Employee Name | Text | Leave as Text |
204
+ | Department | Text | Leave as Text |
205
+ | Course Name | Text | Leave as Text |
206
+ | Provider | Text | Leave as Text |
207
+ | Course Link | URL | Convert to URL |
208
+ | Linked Skill Gap | Relation (link to the target database) | Convert to Relation, link to the target database |
209
+ | Reason | Text | Leave as Text |
210
+ | Cost | Number (format: currency) | Convert to Number, set format to Currency |
211
+ | Currency | Text | Leave as Text |
212
+ | Duration (Hours) | Number | Convert to Number |
213
+ | Start Date | Date | Convert to Date |
214
+ | Manager Approval | Checkbox | Convert to Checkbox |
215
+ | HR Approval | Checkbox | Convert to Checkbox |
216
+ | Finance Approval | Checkbox | Convert to Checkbox |
217
+ | Budget Line | Text | Leave as Text |
218
+ | Service Bond (Months) | Number | Convert to Number |
219
+ | Enrolled in LMS | Checkbox | Convert to Checkbox |
220
+ | Completion Date | Date | Convert to Date |
221
+ | Certificate Received | Checkbox | Convert to Checkbox |
222
+ | Status | Select (add options after import) | Convert to Select, add options: "Requested", "Approved", "Scheduled", "In Progress", "Completed", "Rejected" |
223
+ | Course Request ID | Text (preserve source ID) | Keep imported IDs as Text; optionally add a separate Unique ID property |
224
+ ```
225
+
226
+ The rows above are documentation examples only. Emit empty templates unless the user explicitly requests examples. Money stays `currency`, dates stay `date`,
227
+ and anything pointing at another table stays `relation`.
228
+
229
+ ## Field Reference
230
+
231
+ | # | Field | Type | SQL | JSON Schema | Notion | CSV example |
232
+ |---:|---|---|---|---|---|---|
233
+ | 1 | Request Title | `text` | `VARCHAR(255)` | `string` | Text | `Promotion to L3` |
234
+ | 2 | Employee Name | `text` | `VARCHAR(255)` | `string` | Text | `Aarav Sharma` |
235
+ | 3 | Department | `text` | `VARCHAR(255)` | `string` | Text | `Delivery` |
236
+ | 4 | Course Name | `text` | `VARCHAR(255)` | `string` | Text | `Advanced SQL` |
237
+ | 5 | Provider | `text` | `VARCHAR(255)` | `string` | Text | ` Udemy` |
238
+ | 6 | Course Link | `url` | `TEXT` | `string, format: uri` | URL | `https://example.com/courses/safety` |
239
+ | 7 | Linked Skill Gap | `relation` | `VARCHAR(255)` | `string` | Relation (link to the target database) | `GAP-2026-003` |
240
+ | 8 | Reason | `text` | `VARCHAR(255)` | `string` | Text | `Skill gap identified in the quarterly review` |
241
+ | 9 | Cost | `currency` | `NUMERIC(14,2)` | `number` | Number (format: currency) | `98000.00` |
242
+ | 10 | Currency | `text` | `VARCHAR(255)` | `string` | Text | `INR` |
243
+ | 11 | Duration (Hours) | `number` | `NUMERIC` | `number` | Number | `2.5` |
244
+ | 12 | Start Date | `date` | `DATE` | `string, format: date` | Date | `2026-01-15` |
245
+ | 13 | Manager Approval | `checkbox` | `BOOLEAN` | `boolean` | Checkbox | `FALSE` |
246
+ | 14 | HR Approval | `checkbox` | `BOOLEAN` | `boolean` | Checkbox | `FALSE` |
247
+ | 15 | Finance Approval | `checkbox` | `BOOLEAN` | `boolean` | Checkbox | `FALSE` |
248
+ | 16 | Budget Line | `text` | `VARCHAR(255)` | `string` | Text | `BL-114 Travel` |
249
+ | 17 | Service Bond (Months) | `number` | `NUMERIC` | `number` | Number | `12` |
250
+ | 18 | Enrolled in LMS | `checkbox` | `BOOLEAN` | `boolean` | Checkbox | `FALSE` |
251
+ | 19 | Completion Date | `date` | `DATE` | `string, format: date` | Date | `2026-01-15` |
252
+ | 20 | Certificate Received | `checkbox` | `BOOLEAN` | `boolean` | Checkbox | `FALSE` |
253
+ | 21 | Status | `select` | `VARCHAR(100)` | `string` | Select (add options after import) | `Approved` |
254
+ | 22 | Course Request ID | `id` | `SERIAL PRIMARY KEY` | `integer` | Text (preserve source ID) | `(blank)` |
255
+
256
+ ## Select Options
257
+
258
+ **Status**
259
+
260
+ ```
261
+ Requested | Approved | Scheduled | In Progress | Completed | Rejected
262
+ ```
263
+
264
+ ## Relations
265
+
266
+ Link fields: `Linked Skill Gap`
267
+
268
+ ## Examples
269
+
270
+ **Prompt**
271
+
272
+ ```
273
+ Course requests come by email and get lost in the thread.
274
+ ```
275
+
276
+ **Context first** - one question per message, nothing already answered:
277
+
278
+ > **Q:** Budget per person?
279
+ > **A:** Around 2,000 a year.
280
+ >
281
+ > **Q:** Who approves?
282
+ > **A:** Manager and finance.
283
+ >
284
+ > **Q:** Tracked now?
285
+ > **A:** Only in email.
286
+
287
+ **Recommended next step** - offered, not built:
288
+
289
+ > Route by cost, and record the decision. Tracking completion only matters if completion affects something.
290
+ >
291
+ > Workflow: Request → Manager approval → Finance approval → Enrolment → Completion and certificate
292
+ >
293
+ > Want the CSV, SQL, JSON Schema and Notion mapping for this?
294
+
295
+ ## Best Practices
296
+
297
+ - Build when requested; recommend and offer a build for advice-only requests.
298
+ - One question per message. A batched intake reads as a form and gets guessed at.
299
+ - Keep display names identical across CSV and JSON; document normalized SQL identifiers.
300
+ - Use `relation` for anything that points at another table, `text` only for free text.
301
+ - Money fields are `currency`, never `text`. Dates are `date`, never free text.
302
+ - If the user requests an example row, keep it obviously fake so nobody imports it as real data.
303
+
304
+ ## Limitations
305
+
306
+ - Empty template only. It does not compute payroll, tax, leave balances or KPIs.
307
+ - Notion relations need both databases imported before the link column resolves.
308
+ - Select options are a starting set. Rename them to match how the business talks.
309
+ - No automation, reminders or sync. Those need the integration layer.
310
+ - Does not deliver courses or manage an LMS.
311
+ - Legal, tax and HR review is still required before this drives real decisions.
312
+
313
+ ## Security & Safety Notes
314
+
315
+ - Never fill in real names, salaries, medical or banking data. Placeholders only.
316
+ - Label example rows as synthetic, and keep bank details masked.
317
+ - Local reads, generation commands, and validation are part of a requested artifact build.
318
+ External writes, messages, provisioning, and publication require authorization for that
319
+ action and target; existing explicit authorization does not need to be repeated.
320
+ - If sensitive data is supplied, avoid repeating unnecessary identifiers. Use only what
321
+ the requested review needs; keep generated templates empty. Do not claim deletion
322
+ from the conversation or service storage.
323
+ - Privacy, legal and disciplinary cases need a qualified human reviewer before anything
324
+ is acted on.
325
+
326
+ ## Common Pitfalls
327
+
328
+ - **Problem:** a static mapping is described as a completed workspace build.
329
+ **Solution:** deliver manual mappings without a connection; claim a live change only
330
+ after the authorized tool operation succeeds.
331
+ - **Problem:** asked all six questions in one message.
332
+ **Solution:** ask one, wait, and drop any the first answer already covered.
333
+ - **Problem:** built a full system when one table was asked for.
334
+ **Solution:** build what was requested; mention the parent skill separately.
335
+ - **Problem:** all four artifacts drift apart.
336
+ **Solution:** derive all four from the field list in this file, never by hand.
337
+ - **Problem:** Notion import shows every column as Text.
338
+ **Solution:** that is expected. Apply the property mapping table once, after import.
339
+
340
+ ## Related Skills
341
+
342
+ - [Module Catalog](https://github.com/sickn33/agentic-awesome-skills/blob/main/CATALOG.md) - find the relevant module, then read its skill.
343
+ - @people-directory - the employee master record most modules link to.
344
+ - @notification-reminder-hub - turns due dates in this module into reminders.
345
+
346
+ ## Reusable Prompt
347
+
348
+ ```
349
+ I want to set up staff ask for a course, managers and finance approve, lms tracks it for my company.
350
+ Ask me one short question at a time, and only about what I have not already told you.
351
+ Then recommend the smallest setup that fits, and wait for me to ask before you build it.
352
+ When I ask, output CSV, SQL DDL, JSON Schema, a Notion property mapping or an Excel workbook. Data only.
353
+ ```
354
+
@@ -0,0 +1,303 @@
1
+ ---
2
+ name: credit-cycle-analysis
3
+ description: 'Debtor and creditor credit-cycle analysis: weighted collection or payment days, ageing buckets, credit limit utilisation and gap against benchmark. Use for working-capital review.'
4
+ category: business
5
+ risk: safe
6
+ source: self
7
+ source_type: self
8
+ date_added: "2026-09-26"
9
+ author: WHOISABHISHEKADHIKARI
10
+ tags: [sme, accounting, audit, finance, database, csv, notion, sql, working-capital, receivables, payables, aging]
11
+ tools: []
12
+ source_repo: WHOISABHISHEKADHIKARI/sme-ops-system-builder
13
+ ---
14
+
15
+ # Debtor & Creditor Credit-Cycle Analysis
16
+
17
+ **What it is:** How long the business actually waits to be paid and how long it actually takes to pay, measured per party and per period.
18
+
19
+ ## Overview
20
+
21
+ Works out the smallest useful **Debtor & Creditor Credit-Cycle Analysis** setup for the business in
22
+ front of it, then builds it only when asked. The default output is a short recommendation, not a
23
+ spreadsheet. Artifacts - CSV, SQL DDL, JSON Schema, Notion mapping - are produced on request, from
24
+ one field list so they cannot drift apart.
25
+
26
+ Layer: Layer 8: Close & Analyse. Fits: Growth stage. Table code: n/a.
27
+
28
+ **The SOP rule this skill is built around:** analyse debtors on the average collection period,
29
+ outstanding invoices, overdue receivables and the aging of receivables; analyse creditors on the
30
+ average payment period, outstanding supplier balances, overdue payables and supplier aging; then
31
+ compare the debtor collection cycle with the creditor payment cycle. The comparison is the point.
32
+ Two cycles measured the same way can be read against each other, and the day-to-day pressure of
33
+ waiting longer than you take is invisible as a line on the balance sheet. That pressure is
34
+ measured in **days** here. Turning it into money is a separate calculation with its own basis,
35
+ below.
36
+
37
+ **Six concepts that never stand in for each other.** This table exists to keep them apart, and
38
+ most of the wrong answers come from swapping one for another:
39
+
40
+ | Concept | What it answers | Field that carries it |
41
+ |---|---|---|
42
+ | Contractual terms | What was agreed | `Contractual Terms Days` |
43
+ | Actual cycle | What actually happened | `Actual Collection/Payment Days`, `Weighted Days` |
44
+ | Benchmark | What to compare against | `Benchmark Days`, `Gap vs Benchmark` |
45
+ | Aging | How old the unpaid items are | bucket amounts, and `Aging Bucket` on the invoice/bill detail |
46
+ | Debtor-vs-creditor timing | Which side of the cycle is longer | `Cycle Gap Days` on the comparison record |
47
+ | Working-capital funding | What the timing difference costs in money | `Estimated Working-Capital Funding`, `Calculation Basis` |
48
+
49
+ Conflating them is the defect this module is built to prevent. Contractual terms of 30 days and
50
+ an actual collection cycle of 42 days are two facts about the same party, and the 42 is the one
51
+ that reaches the bank account. Writing the 30 into `Actual Collection/Payment Days` because it is
52
+ the number in the contract is a substituted value, not a measurement.
53
+
54
+ **Aging lives on the invoice, not on the party.** One party can hold open invoices in several
55
+ aging buckets on the same day. So the party-period record carries the bucket **amounts**
56
+ (`Current Amount`, `Aging 0-30 Amount`, `Aging 31-60 Amount`, `Aging 61-90 Amount`, `Aging 91-180 Amount`, `Aging Over 180 Amount`)
57
+ and the single `Aging Bucket` belongs to one invoice or one bill on the aging-detail record. A
58
+ party row carrying one `Aging Bucket` cannot describe a real aging position and is replaced by
59
+ the bucket amounts.
60
+
61
+ **Neutral field names.** The two movement fields are `Credit Movement` and `Settlement`, for
62
+ customers and for suppliers alike. `Credit Movement` is the credit-side activity that created the
63
+ balance in the period - customer invoices on the debtor side, supplier bills on the creditor
64
+ side. `Settlement` is what closed it - customer collections, supplier payments. A name like
65
+ `Total Billed` describes only the debtor side and quietly makes the creditor side unreadable.
66
+
67
+ **The balance identity, and what happens when it fails.**
68
+
69
+ ```
70
+ Closing Balance = Opening Balance + Credit Movement - Settlement +/- Adjustments
71
+ ```
72
+
73
+ Check it on every row. If it does not hold, the difference is **recorded and marked**, never
74
+ repaired by editing a component. A silently balanced row is worse than an unbalanced one,
75
+ because the next period inherits it.
76
+
77
+ **The cycle gap is descriptive, not a verdict.**
78
+
79
+ ```
80
+ Cycle Gap Days = Debtor Collection Days - Creditor Payment Days
81
+ ```
82
+
83
+ Positive means customers take longer to pay than the business takes to pay suppliers. Zero means
84
+ the two measured cycles are equal. Negative means suppliers are paid later than customers are
85
+ collected. A positive gap is not automatically bad - it is often the ordinary consequence of
86
+ selling on credit to a customer base and buying on shorter terms. The module states the
87
+ difference and leaves the judgement to the business.
88
+
89
+ **Working-capital funding needs a monetary basis, and the basis is always written down.**
90
+
91
+ ```
92
+ Estimated Working-Capital Funding = Cycle Gap Days x Relevant Daily Credit Movement
93
+ ```
94
+
95
+ This is only computed when the relevant monetary basis exists, and `Calculation Basis` always
96
+ records how that basis was built. A plausible daily figure is:
97
+
98
+ ```
99
+ Relevant Daily Credit Movement = Relevant annual credit movement / 365
100
+ ```
101
+
102
+ and it is only used when the selected annual movement is appropriate for the analysis. Where the
103
+ monetary basis is missing, `Estimated Working-Capital Funding` is `Unknown` and the record says so.
104
+ Never invent a monetary impact, and never divide a period's movement by 365 without checking that
105
+ the period is the year the analysis is about.
106
+
107
+ **Benchmarks are the user's, not the module's.** `Gap vs Benchmark` is `Actual Collection/Payment
108
+ Days - Benchmark Days`. A benchmark must be supplied by the user, explicitly selected by the
109
+ user, or clearly labelled a proposed default. It is never presented as a business target, and
110
+ never as an industry figure unless the user supplied that figure.
111
+
112
+ **Due dates are recorded, never derived.** `Days Overdue = Period End - Due Date`. Where a due date
113
+ is not recorded, the aging is `Unknown` - a due date is never reconstructed from payment terms,
114
+ because terms are an agreement and the due date is a fact about one invoice.
115
+
116
+ **Percentages, money and rounding.** A percentage is stored as `97` for 97%, never `0.97`, and the
117
+ convention is never mixed inside the table. Money is a bare number with no currency symbol in the
118
+ cell, and the currency itself is `Unknown` until the user states it. Amounts are the gross ledger
119
+ amounts as posted to the party's account, tax-inclusive; this module does not split tax out of a
120
+ balance. Every figure is rounded once, at the end, to two decimal places, so the components can be
121
+ re-derived from the row.
122
+
123
+ ## When to Use This Skill
124
+
125
+ - debtor collection analysis
126
+ - creditor payment analysis
127
+ - receivables aging and payables aging
128
+ - average collection period or average payment period
129
+ - customer payment behaviour and supplier payment behaviour
130
+ - working-capital cycle review
131
+ - converting an existing credit-cycle spreadsheet or process
132
+
133
+ Also use it when the user says "how long the business actually waits to be paid and how long it
134
+ actually takes to pay, measured per party", or describes the same process happening in a
135
+ spreadsheet, a document or someone inboxes.
136
+
137
+ Do not use it for: collections chasing, credit-control action plans, payment execution, banking
138
+ operations, employee analysis, disciplinary decisions, or legal advice. This skill designs
139
+ templates and analysis structures. It does not execute financial transactions, and it produces
140
+ empty templates only - it never holds or processes real customer or supplier data.
141
+
142
+ ## How It Works
143
+
144
+ Follow the shared execution contract and the detailed domain workflow in [the bundled how-it-works reference](references/how-it-works.md). Keep unknown values explicit and derive every output from confirmed fields.
145
+
146
+ ## Field Reference
147
+
148
+ The canonical fields and export mappings are maintained in [the bundled field-reference document](references/field-reference.md).
149
+
150
+ ## Select Options
151
+
152
+ See the [bundled select-options reference](references/select-options.md).
153
+
154
+ ## Relations
155
+
156
+ No relation fields. This table is standalone: `Party Name` is free text because no party master
157
+ table is created by this build, and inventing a link to a database that does not exist would give
158
+ a column that never resolves. Where the business later wants a live party link, add it once the
159
+ party database actually exists.
160
+
161
+ ## Examples
162
+
163
+ Worked examples are maintained in [the bundled examples reference](references/examples.md); keep identifiers fictional and preserve the evidence boundaries.
164
+
165
+ ## Best Practices
166
+
167
+ See the [bundled best-practices reference](references/best-practices.md).
168
+
169
+ ## Limitations
170
+
171
+ - Empty templates only. It does not calculate collection periods, chase anyone, set a credit limit
172
+ or recommend a change of terms. The days and the money on each row are the ones the business
173
+ entered.
174
+ - It measures the gap; it does not close it and it does not judge it. Whether a positive gap is
175
+ worth fixing is a commercial decision, not a record.
176
+ - A cycle measured from a ledger is only as good as the ledger. Reconcile the party balances
177
+ first, or the days will be precise and wrong.
178
+ - Overdue amounts depend on due dates being recorded against every invoice. Where they are not,
179
+ the aging bucket is `Unknown` and the row is not aged - a guessed due date is worse than none.
180
+ - `Estimated Working-Capital Funding` is an estimate on a stated basis, not a cash-flow forecast.
181
+ It excludes retention, factoring, bill discounting, foreign currency settlement timing and any
182
+ seasonality the annualised basis does not carry.
183
+ - Averages hide concentration. A party-period row is not evidence about how the total is
184
+ distributed across parties; read the detail dataset for that.
185
+ - `Data Quality Status` is a judgement the module cannot make for you. It records the checks that
186
+ were run and what they returned.
187
+ - Notion relations need both databases imported before a link column resolves; this module has no
188
+ relation columns to worry about.
189
+ - Select options are a starting set. Rename them to match how the business talks.
190
+ - No automation, reminders or sync. Those need the integration layer.
191
+ - Legal, tax and HR review is still required before this drives real decisions.
192
+
193
+ ## Security & Safety Notes
194
+
195
+ See the [bundled security-notes reference](references/security-notes.md).
196
+
197
+ ## Common Pitfalls
198
+
199
+ See the [bundled common-pitfalls reference](references/common-pitfalls.md) for review guidance.
200
+
201
+ ## Related Skills
202
+
203
+ - @accounting-audit-system-builder - routes to this skill and the other 15 modules.
204
+ - @party-ledger-reconciliation - agree the balances before measuring the cycle.
205
+ - @sales-accounting - where the credit movement on the debtor side is recorded.
206
+ - @purchase-accounting - where the credit movement on the creditor side is recorded.
207
+ - @receipt-accounting - the collections that shorten the debtor cycle.
208
+ - @payment-accounting - the payments that set the creditor cycle.
209
+ - @day-book - the cash movement behind both cycles.
210
+ - @monthly-closing-statements - the receivables and payables review this measures.
211
+ - @source-document-filing - where the invoice or bill behind an aging line is filed.
212
+ - @tds-booking-payment - deductions taken on collection, which change the settled amount.
213
+ - @petty-cash-management - the small working-capital swings this sits alongside.
214
+ - @expense-accounting - the expense detail behind a payment cycle.
215
+ - @inventory-stock-reconciliation - the same count discipline applied to stock.
216
+
217
+ ## Reusable Prompt
218
+
219
+ ```
220
+ I want to set up a system for measuring how long my business waits to be paid by customers and
221
+ how long it takes to pay suppliers, measured per party and per period.
222
+
223
+ Ask me one short question per message, and only about what I have not already told you. Do not
224
+ assume that contractual payment terms are the same as actual payment behaviour, and never batch
225
+ two questions into one message.
226
+
227
+ First understand: whether customers and suppliers are both included and how many parties; the
228
+ contractual payment terms and the actual cycle measured separately for customers and for
229
+ suppliers; the measurement basis (invoice or bill date to settlement date, to first settlement
230
+ date, due date to settlement date, or a weighted settlement date); whether due dates are recorded
231
+ and whether aging is possible at invoice or bill level; which aging buckets are already in use;
232
+ whether part-payments occur; the current process and how it is reconciled; and whether I need
233
+ cycle measurement, aging, the debtor-versus-creditor comparison, working-capital analysis, or all
234
+ of them.
235
+
236
+ Then recommend the smallest setup that fits, explain briefly why the layers are needed, and wait
237
+ for me to ask before you build anything.
238
+
239
+ Use three logical datasets, and do not force them into one table:
240
+ party-period credit-cycle summary
241
+ invoice/bill aging detail
242
+ per-period debtor-versus-creditor working-capital comparison
243
+
244
+ Keep these six concepts separate, and never substitute one for another:
245
+ contractual terms
246
+ actual cycle
247
+ benchmark
248
+ aging
249
+ debtor-creditor cycle gap
250
+ working-capital funding
251
+
252
+ The party-period summary uses: Analysis Number, Period Start, Period End, Party Type, Party Name,
253
+ Opening Balance, Credit Movement, Settlement, Adjustments, Closing Balance, Average Balance,
254
+ Measurement Basis, Contractual Terms Days, Actual Collection/Payment Days, Weighted Days, Overdue
255
+ Amount, Current Amount, Aging 0-30 Amount, Aging 31-60 Amount, Aging 61-90 Amount, Aging 91-180 Amount, Aging Over 180 Amount,
256
+ Customer Credit Limit, Customer Credit Utilisation %, Benchmark Days, Gap vs Benchmark, Cycle
257
+ Trend, Reconciliation Status, Data Quality Status, Reviewed By, Status, Notes, Cycle Analysis ID.
258
+ Customer Credit Limit and Customer Credit Utilisation % are customer-only and are never applied
259
+ to a supplier.
260
+
261
+ The invoice/bill aging detail uses: Aging Detail ID, Party Type, Party Name, Invoice/Bill Number,
262
+ Invoice/Bill Date, Due Date, Original Amount, Settled Amount, Outstanding Amount, Settlement Date,
263
+ Days Overdue, Aging Bucket, Period End, Notes. A party can hold several aging buckets at the same
264
+ time, so a single Aging Bucket never sits on a party-period row.
265
+
266
+ The working-capital comparison uses: Comparison ID, Period Start, Period End, Debtor Collection
267
+ Days, Creditor Payment Days, Cycle Gap Days, Relevant Daily Credit Movement, Estimated
268
+ Working-Capital Funding, Calculation Basis, Data Quality Status, Cycle Trend, Reviewed By, Status,
269
+ Notes.
270
+
271
+ Use these calculations:
272
+ Closing Balance = Opening Balance + Credit Movement - Settlement +/- Adjustments
273
+ Cycle Gap Days = Debtor Collection Days - Creditor Payment Days
274
+ Gap vs Benchmark = Actual Collection/Payment Days - Benchmark Days
275
+ Days Overdue = Period End - Due Date
276
+ Customer Credit Utilisation % = Outstanding Customer Balance / Customer Credit Limit x 100
277
+ Estimated Working-Capital Funding = Cycle Gap Days x Relevant Daily Credit Movement
278
+ Weighted Settlement Date = SUM (Settled Amount x Settlement Date) / SUM (Settled Amount)
279
+
280
+ Calculate actual collection and payment days from documented invoice/bill and settlement dates.
281
+ Support partial payments with the weighted settlement calculation and record that it was used. Do
282
+ not use contractual terms as actual cycle days. Interpret the cycle gap descriptively - a
283
+ positive gap is not automatically bad. Do not guess a due date from payment terms. Compute
284
+ working-capital funding only when a monetary basis exists, and always record Calculation Basis
285
+ alongside it.
286
+
287
+ A benchmark must be supplied by me, explicitly selected by me, or clearly labelled a proposed
288
+ default - never presented as a business target.
289
+
290
+ Before a record is complete, validate the balance reconciliation and the data quality, and record
291
+ Reconciliation Status and Data Quality Status. Never silently correct an inconsistent balance.
292
+ Never invent a missing value, benchmark, currency, date, payment behaviour, credit limit or
293
+ financial impact. Unknown is a correct answer and is never turned into zero.
294
+
295
+ When I explicitly ask for artifacts, build one canonical field dictionary first and derive every
296
+ requested artifact from it. If I ask for all four, produce CSV, SQL DDL, JSON Schema and the
297
+ Notion property mapping, with identical field names, types, order and required status across all
298
+ four. Use obviously fake example data only.
299
+
300
+ If I ask for a review, review the existing design instead of rebuilding it. If I ask for a fix,
301
+ preserve the valid information I supplied and correct only the structural, calculation,
302
+ data-quality and consistency problems.
303
+ ```