grc-block-query
Installation
SKILL.md
GRC Block Query
Purpose
Provide a reusable lookup workflow for GNU Radio GRC block field data.
Allowed sources
${GRC_RADIOCONDA_PATH}or$HOME/radioconda/Library/share/gnuradio- https://github.com/gnuradio/gnuradio
- https://wiki.gnuradio.org/
- https://www.ettus.com/
Query order
- local-db
- radioconda
- gnuradio-github
- gnuradio-wiki
- ettus
Rules
- Never invent field values.
- If no evidence is found, return not_found.
- If local-db misses, query external sources in order.
- Save verified hits back to local-db unless
--no-update-dbis set. - Hooks only enforce field-format validation.
- For GRC block parameters, prefer
*.block.yml/*.block.yamlparameters:definitions. - Do not use Python or C++ CLI argument semantics as GUI parameter fields.
Procedure
- Run query script with
--blockand optional--field. - Check JSON output for
status,source, andsource_location. - If result is
foundfrom external sources, confirmdb_fileis returned (when update is enabled). - If result is
not_found, do not infer values. - When
--fieldis omitted, expect__grc_parameters__with the full parameter list from YAML. - Use
--refreshwhen you need to rebuild data from upstream sources instead of local cache. - For cross-project reuse, DB root is fixed to
~/Documents/grc-block-query/dband is auto-initialized on first query. - Set
GRC_RADIOCONDA_PATHonly when your radioconda installation is non-default. - For bootstrap or cross-project setup details, read README or cross-project plan only when needed.
Examples
- From this skill root:
python ./scripts/query_grc_blocks.py --block "Constellation Object" - From this skill root:
python ./scripts/query_grc_blocks.py --block "Constellation Object" --field "Constellation Type" - From this skill root:
python ./scripts/query_grc_blocks.py --block "USRP Source" --field "samp_rate" --no-update-db - From this skill root:
python ./scripts/query_grc_blocks.py --block "Constellation Object" --refresh
Related skills