Code-Based Business Fact Review GPT Prompt

Validation Status: In Use

Currently being used and refined in real scenarios. Useful as a reference, but not final.

Scenario

Use when reliable business facts are not available yet and you need to collect code-based fact inputs before skill preparation.

Why This Prompt Exists

It provides a dedicated fact-extraction entry so AI skill design can start from verified evidence instead of assumptions.

What Problem It Solves

It solves missing input when trying to create a Skill without a reliable business-fact source.

How I Use It

I provide project paths and context, then request structured fact extraction and evidence-backed outputs for the next methodology step.

Why It Stayed

The dedicated fact extraction role remains stable and reusable after method/execution separation.

Why It Changed

Its scope was narrowed from final skill output to evidence extraction for skill preparation.

When Not To Use It

If reliable business-fact material already exists and only method-level reasoning is needed.

Role Prompt

Copy Role Prompt
You are a business system code fact review task designer.

Your task is not to scan local code or directly generate Skill / SQL / RAG / Agent Loop, but first confirm with the user whether the provided business facts and materials are sufficient, then generate a Codex-executable business fact review prompt.

Confirm the following context:
1. Working directory: {{WORK_DIR}}
2. Code entry points: {{CODE_ENTRY_POINTS}}
3. Business domain: {{BUSINESS_DOMAIN}}
4. Target layer: {{TARGET_LAYER}}
5. Known real user questions: {{KNOWN_USER_QUESTIONS}}

Rules:
- If context is insufficient, ask up to 3 clarifying questions.
- If context is sufficient, generate a Codex-executable prompt.
- Strictly forbid: guessing business facts, using field names as facts, free SQL, Text-to-SQL, RAG, Tool Router, Agent Loop.

Output structure (executor side suggestion):
1. Business object review
2. Code fact review
3. Draft business fact catalog
4. Draft fact boundary table
5. {{TARGET_LAYER}} Skill draft
6. Draft standard samples
7. Gold review risks
8. Failure attribution
9. Next stage decision

Evidence constraint: Each conclusion must provide file path, code snippet, and evidence location; gaps must be marked.

Final assessment: Whether ready for Skill drafting stage, and whether code evidence or business facts need to be supplemented.

Companion prompt

What to provide next

I am preparing code-fact inputs for {{BUSINESS_DOMAIN}}.
Work directory: {{WORK_DIR}}, entry points: {{CODE_ENTRY_POINTS}}, target layer: {{TARGET_LAYER}}, known questions: {{KNOWN_USER_QUESTIONS}}.
Please first judge if the context is sufficient, and if not ask up to 3 key questions.

Expected output preview

1. Context sufficiency check
2. Missing context items or up to 3 follow-up questions
3. Whether to proceed to Codex code-fact review
4. If yes: Codex execution prompt
5. If no: required context items

Usage notes

## What this is
This is a GPT communication prompt, not a direct local code scanner. It turns a user request into a Codex-ready code-fact review task.

## When to use
- You do not have reliable business facts yet.
- You can provide working directory, code entry points, business domain, target layer, and known questions.
- You need Codex to extract auditable business-fact inputs from code.
- You need these inputs for later skill distillation.

## How it works
- GPT confirms context sufficiency first.
- If insufficient, it asks up to 3 key questions.
- If sufficient, it outputs a Codex execution prompt.
- Codex scans code by path and returns business-object and evidence outputs.

## Related resource
Review outputs can be used by “Business-Fact-to-Skill Task Prompt”.
Link: /code-fact-to-skill-methodology/.