Files
bortstack-forge/skills/project-commercial-management/SKILL.md
T

14 KiB
Raw Blame History

name, description
name description
project-commercial-management Connect development projects and tasks to quotes, invoices, payments, costs, and profitability while keeping the accounting system authoritative for money.

Project Commercial Management

Version: 2.0.

Repository workflow

In a BortStack project, use bortstack-context with the applicable repository AGENTS.md before task work. They govern scope and authorisation, branch/worktree policy, lifecycle, manual acceptance, and handoff. Find the maintained overview, current state, decisions, task and handoff records through repository instructions and layout. Use the paths and task IDs the project already uses. Follow context's canonical discussion, mission and lifecycle guidance when interpreting authority or changing task status. If a required BortStack skill is unavailable, report the dependency. If an installed skill lacks a required reference, use the reference from a verified Forge package with a matching manifest. If the required guidance is unavailable, pause the affected action.

For edits, inspect Git status and worktrees, confirm authorised scope and the source candidate, and follow the current branch policy. Use direct integration-branch work where authorised and a dedicated branch/worktree where required. Preserve unrelated work. Read-only specialist work does not require a new worktree. When acting as an authorised contributor, use bortstack-contributor for contributor permissions, finalisation and submission. For ordinary specialist work, use the project's normal authority.

When manual testing is relevant, discover the documented commands, configuration and hooks in the target repository. Use its supported workflow, including an existing testtask wrapper and its project-specific config or hook where documented. Preserve a working adapter and its supported invocation. Before use, inspect its supported arguments, candidate handling, runtime and cleanup behavior. If no adapter is required, use the established development environment. Record candidate identity, actual checks, limitations and pending human acceptance in the project's handoff. Refresh stale candidates after edits and make fixes in the authoritative source. A source snapshot, wrapper, automated check or startup alone does not establish a manual pass. Follow context and repository rules for task transitions and closure.

Outside BortStack, follow the repository's own scope, branch, test and reporting conventions and proceed with the specialist workflow. BortStack skills and records are optional there.

Purpose

Use this skill when development work needs to be related to commercial/accounting activity.

Typical questions:

  • Is this task covered by an accepted quote?
  • Is this new feature additional scope?
  • Which quote line does this task belong to?
  • Which completed work is ready for billing review?
  • What has been invoiced, paid, outstanding, or left unbilled?
  • Which costs belong to this project?
  • What is the commercial position or profitability of the project?

This skill bridges:

development repository/context
        ↕
commercial mapping
        ↕
accounting CLI/API
        ↕
accounting database

It does not replace the repository context system and does not replace the accounting application.

Source-of-truth boundaries

Development truth

The project repository owns requirements, tasks, implementation status, technical decisions, acceptance criteria, and current application state.

Read the applicable repository instructions and maintained development records. Find any commercial mapping through the project’s documentation and existing files.

Accounting truth

The accounting application/database owns:

  • quote IDs, amounts, acceptance/status;
  • invoice IDs, dates, lines, totals, and financial status;
  • payments and allocations;
  • expenses/costs;
  • client/accounting-project records;
  • balances and profitability calculations.

Do not treat repository Markdown as authoritative for current money values when the accounting system is available.

Commercial mapping

Use references/commercial-workflow.md for the scope-to-billing workflow and references/accounting-interface.md to discover the accounting interface.

The development repository may contain lightweight references mapping engineering work to accounting records.

Use the project’s existing commercial mapping path. If an authorised mapping task needs a new file, follow repository conventions.

This is a navigation/mapping document only. It must not become a shadow ledger.

Operating modes

Commercial status

Summarize quoted, invoiced, paid, outstanding, unbilled, and cost information by reading repository mappings and querying the accounting system when available.

Read-only unless a write is explicitly requested.

Scope check

Compare a requested feature/task to accepted quote scope and supplementary quotes.

Classify:

  • Covered by accepted scope
  • Partially covered / needs clarification
  • Potential additional scope
  • Explicitly excluded
  • Commercial status unknown

Do not infer coverage merely because work is technically related.

Quote planning

Translate agreed requirements into clear commercial line items while preserving useful task/milestone boundaries.

Separate:

  • included scope;
  • exclusions/non-goals;
  • assumptions;
  • dependencies;
  • optional work;
  • milestones.

Do not invent prices, tax treatment, discounts, payment terms, or client commitments.

Billing review

For completed work, determine:

  • what maps to quoted scope;
  • what is already invoiced;
  • what appears ready for billing review;
  • what remains incomplete/blocked;
  • what may be unquoted extra scope.

Do not issue/send an invoice without explicit authorization.

Cost attribution

Relate accounting expenses to a project using existing accounting references/categories.

Distinguish:

  • direct project cost;
  • shared/overhead cost;
  • unallocated cost;
  • uncertain attribution.

Do not silently allocate shared costs when policy is unclear.

Profitability / commercial performance

Use accounting records to summarize:

  • accepted/contracted value where available;
  • invoiced amount;
  • payments received;
  • outstanding invoices;
  • uninvoiced approved work;
  • directly attributable project costs;
  • optional time/labour measures only if actually tracked.

Never present repository estimates as actual revenue or payment.

Accounting-system integration

The user's accounting software is a local Python CLI first, with SQLite as the primary datastore, and is intended to become a Flask API + React frontend later. It also supports/targets ODS/CSV exports and branded ODS/PDF reports.

Prefer integration in this order:

  1. documented accounting CLI;
  2. documented accounting API;
  3. structured export produced by the accounting application;
  4. only if explicitly authorized and no supported interface exists, inspect the accounting project/schema to determine a safe read path.

Do not manipulate SQLite directly by default.

Do not invent CLI command names. Inspect the accounting repository/documentation and use commands that actually exist.

If the accounting system is unavailable, distinguish repository-derived references, user-supplied facts, and accounting facts that cannot be verified.

Commercial mapping file

When useful, maintain the project’s commercial mapping file using references/commercial-file-template.md.

Keep it concise.

Good content:

  • accounting project/client reference;
  • accepted quote IDs;
  • task/feature/milestone → quote mappings;
  • known commercial constraints;
  • supplementary quote references;
  • high-level billing references;
  • unresolved commercial questions.

Bad content:

  • duplicated invoice ledger;
  • copied payment history;
  • stale financial totals;
  • bank/payment secrets;
  • tax records that belong in accounting;
  • speculative client commitments.

If the accounting system and the commercial mapping disagree, report the conflict and treat accounting as authoritative for financial state.

Task ↔ quote mapping

A task may map to one quote line, several quote lines, one milestone, approved additional work, internal/non-billable work, or no commercial scope.

Do not force every engineering task to become a quote line.

A quote line may span multiple engineering tasks.

Use actual IDs where available; never manufacture official accounting IDs.

Scope-creep guard

If commercial coverage is uncertain, check it before opening implementation work where practical. Return scope evidence to the repository’s planning workflow (bortstack-context in BortStack). A commercial classification does not authorise implementation or financial writes.

When a new client request is not clearly covered:

  1. identify the requested change;
  2. inspect accepted commercial scope;
  3. compare inclusions, exclusions, assumptions, and milestones;
  4. classify commercial status;
  5. recommend commercial review before implementation where needed.

For potential additional scope, say so plainly.

Do not block emergency/security work solely because it lacks a quote; surface the commercial issue separately from technical urgency.

Billing-review workflow

  1. read completed/accepted development tasks and milestones;
  2. query the accounting system for accepted quotes and invoices;
  3. map completed work to quote lines/milestones;
  4. identify already invoiced work;
  5. identify eligible uninvoiced work;
  6. identify incomplete/blocked work;
  7. identify potential additional scope;
  8. report the result.

Useful classifications:

  • Already invoiced
  • Ready for billing review
  • Not yet billable
  • Potential additional scope
  • Cannot verify accounting state

Do not mark an invoice paid unless accounting records show payment.

Cost workflow

Query accounting records using the project/client/accounting reference.

Summarize only supported records/categories. Likely categories may include hosting, domains, third-party services, AI/API usage, travel/mileage, subcontractors, and other project-specific expenses.

The accounting project must preserve its distinction between pre-trading expenses and post-commencement transactions where relevant.

Financial safety rules

Do not:

  • fabricate amounts, dates, payments, quote acceptance, invoice status, or tax treatment;
  • mark invoices paid from conversation claims when accounting records disagree;
  • create/send quotes or invoices without explicit authorization;
  • delete/void financial records without explicit authorization;
  • silently alter historical financial records;
  • store bank/payment secrets in repository docs;
  • duplicate the accounting ledger into Git;
  • treat projected revenue as received income;
  • treat invoice issue as payment;
  • assume costs are deductible/tax-allowable without authoritative support.

Separate project-management facts from tax/accounting judgement when needed.

Writes and authorization

Read/review operations are allowed when requested.

Treat these as accounting mutations requiring clear user instruction:

  • create/update/send quote;
  • accept/reject quote on behalf of a party;
  • create/update/send invoice;
  • record/allocate payment;
  • create/change/delete expense;
  • issue credit note;
  • void/cancel financial document;
  • change accounting project/client assignments.

Use documented accounting CLI/API for writes and report exactly what changed.

The project’s commercial mapping file may be updated during an explicitly requested commercial reconciliation/mapping task, but do not rewrite financial state from assumptions.

Relationship to BortStack Context

BortStack Context should be commercially aware but not answer authoritative accounting-state questions itself.

Project Context may:

  • notice commercial mappings;
  • flag possible additional scope;
  • note completed work may need billing review;
  • recommend this skill;
  • read the project’s commercial mapping file.

Project Context should route here for:

  • quote coverage;
  • invoice/payment status;
  • project costs;
  • billing readiness;
  • profitability;
  • scope changes with financial implications.

This skill respects the repository task/decision lifecycle but does not redefine it.

Relationship to the development toolkit

New client feature

Project Commercial Management — scope check
        ↓
BortStack Design for concept/approval/handoff (if needed in BortStack)
        ↓
Frontend UI Design for implementation details (if needed)
        ↓
Webapp Feature
        ↓
Frontend Visual QA
        ↓
Code Review
        ↓
Project Commercial Management — billing review

Client asks for extra work

Project Context identifies requirement
        ↓
Project Commercial Management — scope check
        ↓
if additional scope:
    supplementary quote/approval
        ↓
accepted development task
        ↓
implementation

Completed milestone

BortStack Context
        ↓
confirm accepted work complete
        ↓
Project Commercial Management — billing review
        ↓
invoice action only if explicitly authorized

Output conventions

For commercial status:

Commercial status
Scope:
Quote:
Billing:
Payments:
Costs:
Potential additional scope:
Uncertainties:
Recommended next action:

For scope check:

Scope classification:
Evidence:
Mapped quote/milestone:
Why:
Commercial action:
Development action:

For billing review:

Ready for billing review:
Already invoiced:
Not yet billable:
Potential additional scope:
Accounting state not verified:
Recommended next action:

Stop conditions

Stop rather than guess when:

  • accounting data is unavailable and required;
  • quote/invoice IDs are ambiguous;
  • accepted scope cannot be distinguished from draft scope;
  • repository task and accounting mapping conflict;
  • client acceptance/payment cannot be verified;
  • tax/legal treatment would be required for an accurate answer;
  • a requested financial write is ambiguous or destructive.

Keep technical delivery and commercial truth aligned without making either system dependent on chat history.