一键导入
dev-workflow
Common development commands and workflows for building and debugging the Federal Website Index
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Common development commands and workflows for building and debugging the Federal Website Index
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | dev-workflow |
| description | Common development commands and workflows for building and debugging the Federal Website Index |
| trigger | Use when user asks about running the builder, debugging output, understanding snapshots, or common development tasks |
Common development commands and workflows for the Federal Website Index.
cd builder
bun src/main.ts # Run the full index builder
bun start # Alternative using package.json script
Duration: 5-10 minutes for full build
cd dapDataCollapse
python main.py # Download and process DAP top 100k domains
This pre-processes DAP analytics data before the main builder runs.
data/site-scanning-target-url-list.csv - Final output consumed by Site Scanning Enginedata/site-scanning-target-url-list-analysis.csv - Summary statistics for each pipeline stepEach pipeline step writes a snapshot to data/process-snapshots/:
after-union.csv - Combined source listsafter-dedup.csv - After deduplicationafter-add-base_domain-tld.csv - With domain fields addedafter-GOV-agency-bureau-merge.csv - After .gov domain info mergeafter-MIL-agency-bureau-merge.csv - After .mil domain info mergeafter-OTHER-FEDERAL-agency-bureau-merge.csv - After other federal mergeafter-OMB-agency-bureau-merge.csv - After OMB IDEA overrideafter-gov_mil-filter.csv - After filtering to federal domainsafter-dap_top_100000_merge.csv - After analytics data mergeafter-dead-sites-filter.csv - After removing suspected dead sitesafter-column-reorder.csv - After column reorderingIndividual source lists are saved to data/source-list-snapshots/:
dotgov-registry-federal.csvpulse.csvdap.csvomb_idea.csvUse these to debug issues with specific data sources.
data/process-snapshots/data/source-list-snapshots/data/site-scanning-target-url-list-analysis.csv for countsAfter modifying a source list class:
data/source-list-snapshots/<source-name>.csv for your sourceafter-union.csv to ensure it merged correctlyEdit filter files in criteria/:
ignore-list-begins.csv - Add URL prefix patterns (e.g., "test.", "dev.")ignore-list-contains.csv - Add substring patterns (e.g., "staging")ignore-except.csv - Add exceptions to filter rulessuspected-dead-sites.csv - Add sites that consistently fail DNSThen rebuild and check Filtered column in output.
Check that output matches Site Scanning Engine expectations:
head -1 data/site-scanning-target-url-list.csv
Should show columns:
The GitHub Actions workflow auto-commits build results. For manual commits:
git add data/
git commit -m "Build target url list"
git push
Note: Don't commit local development changes to data files unless intentional.
git checkout -b feature/my-feature
# Make changes
cd builder
bun src/main.ts
# Test locally, review output
git add <changed-files>
git commit -m "Description of changes"
git push origin feature/my-feature
cd builder && bun src/main.tshead data/site-scanning-target-url-list.csvcat data/site-scanning-target-url-list-analysis.csvbun --versioncd builder && bun installbuilder/src/config/source-list.config.tsbuilder/src/utils/utilities.ts match expected outputfullColumnNameList constantcriteria/suspected-dead-sites.csv matches normalized formatafter-dead-sites-filter-removed.csv to see what was removedSource Lists (30+)
↓ fetch and normalize
Source Snapshots
↓ union
Combined List
↓ deduplicate
Unique URLs
↓ extract domains
URLs with base_domain/tld
↓ merge agency info
URLs with agency/bureau
↓ merge OMB overrides
URLs with accurate agency
↓ tag ignore patterns
URLs with Filtered flag
↓ filter to federal domains
Federal URLs only
↓ merge DAP analytics
URLs with pageviews/visits
↓ remove dead sites
Active URLs only
↓ reorder and sort
Final Target URL List
Each arrow represents a snapshot in data/process-snapshots/.