dark-intelligence-workflow-step-1-identify
Sub-skill of dark-intelligence-workflow: Step 1 — Identify (+4).
Best use case
dark-intelligence-workflow-step-1-identify is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of dark-intelligence-workflow: Step 1 — Identify (+4).
Teams using dark-intelligence-workflow-step-1-identify should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/step-1-identify/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How dark-intelligence-workflow-step-1-identify Compares
| Feature / Agent | dark-intelligence-workflow-step-1-identify | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of dark-intelligence-workflow: Step 1 — Identify (+4).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Step 1 — Identify (+4)
## Step 1 — Identify
Locate the Excel/file containing engineering calculations.
**What to look for:**
- Formulas (cell formulas, array formulas)
- Named ranges (often contain key parameters)
- VBA macros (may contain iterative solvers or logic)
- Validation/check sheets (comparison against known answers)
- Input sheets with units and descriptions
- README or documentation tabs
**Check doc index for the file:**
```bash
uv run --no-project python -c "
import json
matches = []
with open('data/document-index/index.jsonl') as f:
for line in f:
rec = json.loads(line)
path_lower = rec.get('path', '').lower()
if '<filename>' in path_lower or '<category>' in path_lower:
matches.append(rec)
print(f'Found {len(matches)} matching documents')
for m in matches[:20]:
print(f\" {m.get('source', '?'):15s} {m.get('path', '')[:80]}\")
"
```
**Output:** file path, description of what the spreadsheet calculates, list of tabs/sheets.
## Step 2 — Extract
Pull out generic methodology from the file. Extract each of these:
| Item | What to capture |
|------|----------------|
| **Equations** | Convert Excel formulas to LaTeX notation |
| **Input ranges** | Parameter names, symbols, units, typical value ranges |
| **Output ranges** | Result names, symbols, units, expected values for test cases |
| **Standard references** | Any codes/standards cited (API, DNV, ISO, ASME, etc.) |
| **Methodology notes** | Documentation within the file, assumptions, limitations |
| **Unit systems** | SI, Imperial, or mixed — note conversions used |
| **Worked examples** | Complete input-output pairs with known-correct answers |
**Tips for Excel formula extraction:**
- `=` formulas: translate operators directly to math notation
- Named ranges: map to variable names in the archive
- `IF/AND/OR`: translate to conditional logic descriptions
- `VLOOKUP/INDEX/MATCH`: identify the lookup table data
- Array formulas (`Ctrl+Shift+Enter`): note array dimensions
- VBA `Function`: extract algorithm as pseudocode
## Step 3 — Sanitize (HARD GATE)
**This step is non-negotiable. Extraction cannot proceed without passing.**
Run the legal sanity scan on all extracted content:
```bash
bash scripts/legal/legal-sanity-scan.sh
```
**Check for and remove:**
- Client names, project names, project numbers
- Proprietary labels and internal codenames
- Client infrastructure identifiers (field names, platform names)
- Client-specific file paths or network locations
- Employee names (other than yourself for academic work)
**If ANY block-severity violations are found: STOP.**
Remediate all violations before proceeding to Step 4.
Replace all client-specific references with generic equivalents:
- Project names -> generic descriptive names (e.g. "example_platform")
- Field names -> "field_A", "field_B" or generic descriptions
- Client tool names -> generic equivalents
## Step 4 — Archive
Save extracted methodology as structured YAML.
**Location:** `knowledge/dark-intelligence/<category>/<subcategory>/`
**Filename:** `dark-intelligence-<descriptive-name>.yaml`
**Schema:**
```yaml
# dark-intelligence-<name>.yaml
source_type: "excel|python|matlab|fortran"
source_description: "Generic description of what this calculates (no client refs)"
extracted_date: "YYYY-MM-DD"
legal_scan_passed: true
category: "<engineering category>"
subcategory: "<specific topic>"
equations:
- name: "<equation name>"
latex: "<LaTeX formula>"
excel_formula: "<original Excel formula, sanitized>"
standard: "<standard reference if any>"
description: "<what it computes>"
inputs:
- name: "<input name>"
symbol: "<LaTeX symbol>"
unit: "<unit>"
typical_range: [min, max]
test_value: <value for TDD>
outputs:
- name: "<output name>"
symbol: "<LaTeX symbol>"
unit: "<unit>"
test_expected: <expected value for TDD>
tolerance: <acceptable error>
worked_examples:
- description: "<example problem statement>"
inputs: {key: value}
outputs: {key: value}
use_as_test: true
assumptions:
- "<assumption 1>"
- "<assumption 2>"
references:
- "<standard or textbook reference>"
notes: "<any methodology notes, limitations, applicability>"
```
**Validation:** ensure `legal_scan_passed: true` is present and all fields
use generic descriptions free of client identifiers.
## Step 5 — Generate TDD Test Data
Convert each worked example from the archive into a pytest test function.
**Template:**
```python
def test_<calc_name>_from_dark_intelligence():
"""Extracted from legacy calculation — verified against original output."""
# Arrange — inputs from archive
<input_name> = <test_value>
# Act — call the implementation
result = <function>(<inputs>)
# Assert — expected output from archive
assert abs(result - <expected>) < <tolerance>, (
f"Expected {<expected>}, got {result}"
)
```
**Rules:**
- One test per worked example where `use_as_test: true`
- Use `tolerance` from the archive for floating-point comparisons
- Include the source description in the docstring
- Tests MUST fail initially (Red phase of TDD)Related Skills
digitalmodel-orcawave-orcaflex-proof-workflows
Class-level digitalmodel OrcaWave/OrcaFlex readiness, semantic-proof, fixture-proof, and closeout workflows.
portable-pattern-verification-workflow
Multi-package implementation with verification strategy for cross-platform configuration hardening
plan-gated-issue-validation-workflow
Systematic validation pattern for plan-approved GitHub issues with pre-existing deliverables
multi-year-tax-filing-verification-workflow
Verify and reconcile complex multi-form tax filings by cross-referencing source documents, identifying data dependencies, and validating line-by-line against authoritative records.
multi-file-tax-reconciliation-workflow
Systematic parallel review and reconciliation of multi-document tax filings with cross-reference validation
metadata-only-wiki-sweep-workflow
Disciplined inventory process for cataloging documents by filename/path without content claims, using parent-centric grouping to prevent stub proliferation
freetaxusa-efiling-workflow
Navigate FreeTaxUSA e-filing process through final steps, handling session timeouts and identifying required manual signature steps
financial-site-bypass-workflow
Workflow for accessing restricted financial sites when browser automation is blocked
financial-data-export-workflow
Structured process for exporting and analyzing multi-year brokerage transaction history when browser automation is blocked
cash-basis-tax-reconciliation-workflow
Multi-source document reconciliation to establish authoritative tax basis and complete Form 1120 for C-Corps using cash method
digitalmodel-orcawave-orcaflex-workflow
Current-state workflow for navigating and extending digitalmodel OrcaWave/OrcaFlex capabilities across code, tests, issues, queue tooling, and licensed-machine boundaries.
gtm-workflow-gif-generation
Generate workflow-style GTM GIFs from validated HTML demo reports using synthetic scene slides plus Playwright/Pillow scroll capture, with Python 3.12 fallback and GIF size optimization.