@bgicli/bgicli 2.2.8 → 2.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/data/skills/anthropic-algorithmic-art/SKILL.md +405 -0
  2. package/data/skills/anthropic-canvas-design/SKILL.md +130 -0
  3. package/data/skills/anthropic-claude-api/SKILL.md +243 -0
  4. package/data/skills/anthropic-doc-coauthoring/SKILL.md +375 -0
  5. package/data/skills/anthropic-docx/SKILL.md +590 -0
  6. package/data/skills/anthropic-frontend-design/SKILL.md +42 -0
  7. package/data/skills/anthropic-internal-comms/SKILL.md +32 -0
  8. package/data/skills/anthropic-mcp-builder/SKILL.md +236 -0
  9. package/data/skills/anthropic-pdf/SKILL.md +314 -0
  10. package/data/skills/anthropic-pptx/SKILL.md +232 -0
  11. package/data/skills/anthropic-skill-creator/SKILL.md +485 -0
  12. package/data/skills/anthropic-webapp-testing/SKILL.md +96 -0
  13. package/data/skills/anthropic-xlsx/SKILL.md +292 -0
  14. package/data/skills/arxiv-database/SKILL.md +362 -0
  15. package/data/skills/astropy/SKILL.md +329 -0
  16. package/data/skills/ctx-advanced-evaluation/SKILL.md +402 -0
  17. package/data/skills/ctx-bdi-mental-states/SKILL.md +311 -0
  18. package/data/skills/ctx-context-compression/SKILL.md +272 -0
  19. package/data/skills/ctx-context-degradation/SKILL.md +206 -0
  20. package/data/skills/ctx-context-fundamentals/SKILL.md +201 -0
  21. package/data/skills/ctx-context-optimization/SKILL.md +195 -0
  22. package/data/skills/ctx-evaluation/SKILL.md +251 -0
  23. package/data/skills/ctx-filesystem-context/SKILL.md +287 -0
  24. package/data/skills/ctx-hosted-agents/SKILL.md +260 -0
  25. package/data/skills/ctx-memory-systems/SKILL.md +225 -0
  26. package/data/skills/ctx-multi-agent-patterns/SKILL.md +257 -0
  27. package/data/skills/ctx-project-development/SKILL.md +291 -0
  28. package/data/skills/ctx-tool-design/SKILL.md +271 -0
  29. package/data/skills/dhdna-profiler/SKILL.md +162 -0
  30. package/data/skills/generate-image/SKILL.md +183 -0
  31. package/data/skills/geomaster/SKILL.md +365 -0
  32. package/data/skills/get-available-resources/SKILL.md +275 -0
  33. package/data/skills/hamelsmu-build-review-interface/SKILL.md +96 -0
  34. package/data/skills/hamelsmu-error-analysis/SKILL.md +164 -0
  35. package/data/skills/hamelsmu-eval-audit/SKILL.md +183 -0
  36. package/data/skills/hamelsmu-evaluate-rag/SKILL.md +177 -0
  37. package/data/skills/hamelsmu-generate-synthetic-data/SKILL.md +131 -0
  38. package/data/skills/hamelsmu-validate-evaluator/SKILL.md +212 -0
  39. package/data/skills/hamelsmu-write-judge-prompt/SKILL.md +144 -0
  40. package/data/skills/hf-cli/SKILL.md +174 -0
  41. package/data/skills/hf-mcp/SKILL.md +178 -0
  42. package/data/skills/hugging-face-dataset-viewer/SKILL.md +121 -0
  43. package/data/skills/hugging-face-datasets/SKILL.md +542 -0
  44. package/data/skills/hugging-face-evaluation/SKILL.md +651 -0
  45. package/data/skills/hugging-face-jobs/SKILL.md +1042 -0
  46. package/data/skills/hugging-face-model-trainer/SKILL.md +717 -0
  47. package/data/skills/hugging-face-paper-pages/SKILL.md +239 -0
  48. package/data/skills/hugging-face-paper-publisher/SKILL.md +624 -0
  49. package/data/skills/hugging-face-tool-builder/SKILL.md +110 -0
  50. package/data/skills/hugging-face-trackio/SKILL.md +115 -0
  51. package/data/skills/hugging-face-vision-trainer/SKILL.md +593 -0
  52. package/data/skills/huggingface-gradio/SKILL.md +245 -0
  53. package/data/skills/matlab/SKILL.md +376 -0
  54. package/data/skills/modal/SKILL.md +381 -0
  55. package/data/skills/openai-cloudflare-deploy/SKILL.md +224 -0
  56. package/data/skills/openai-develop-web-game/SKILL.md +149 -0
  57. package/data/skills/openai-doc/SKILL.md +80 -0
  58. package/data/skills/openai-figma/SKILL.md +42 -0
  59. package/data/skills/openai-figma-implement-design/SKILL.md +264 -0
  60. package/data/skills/openai-gh-address-comments/SKILL.md +25 -0
  61. package/data/skills/openai-gh-fix-ci/SKILL.md +69 -0
  62. package/data/skills/openai-imagegen/SKILL.md +174 -0
  63. package/data/skills/openai-jupyter-notebook/SKILL.md +107 -0
  64. package/data/skills/openai-linear/SKILL.md +87 -0
  65. package/data/skills/openai-netlify-deploy/SKILL.md +247 -0
  66. package/data/skills/openai-notion-knowledge-capture/SKILL.md +56 -0
  67. package/data/skills/openai-notion-meeting-intelligence/SKILL.md +60 -0
  68. package/data/skills/openai-notion-research-documentation/SKILL.md +59 -0
  69. package/data/skills/openai-notion-spec-to-implementation/SKILL.md +58 -0
  70. package/data/skills/openai-openai-docs/SKILL.md +69 -0
  71. package/data/skills/openai-pdf/SKILL.md +67 -0
  72. package/data/skills/openai-playwright/SKILL.md +147 -0
  73. package/data/skills/openai-render-deploy/SKILL.md +479 -0
  74. package/data/skills/openai-screenshot/SKILL.md +267 -0
  75. package/data/skills/openai-security-best-practices/SKILL.md +86 -0
  76. package/data/skills/openai-security-ownership-map/SKILL.md +206 -0
  77. package/data/skills/openai-security-threat-model/SKILL.md +81 -0
  78. package/data/skills/openai-sentry/SKILL.md +123 -0
  79. package/data/skills/openai-sora/SKILL.md +178 -0
  80. package/data/skills/openai-speech/SKILL.md +144 -0
  81. package/data/skills/openai-spreadsheet/SKILL.md +145 -0
  82. package/data/skills/openai-transcribe/SKILL.md +81 -0
  83. package/data/skills/openai-vercel-deploy/SKILL.md +77 -0
  84. package/data/skills/openai-yeet/SKILL.md +28 -0
  85. package/data/skills/pennylane/SKILL.md +224 -0
  86. package/data/skills/polars-bio/SKILL.md +374 -0
  87. package/data/skills/primekg/SKILL.md +97 -0
  88. package/data/skills/pymatgen/SKILL.md +689 -0
  89. package/data/skills/qiskit/SKILL.md +273 -0
  90. package/data/skills/qutip/SKILL.md +316 -0
  91. package/data/skills/recursive-decomposition/SKILL.md +185 -0
  92. package/data/skills/rowan/SKILL.md +427 -0
  93. package/data/skills/scholar-evaluation/SKILL.md +298 -0
  94. package/data/skills/sentry-create-alert/SKILL.md +210 -0
  95. package/data/skills/sentry-fix-issues/SKILL.md +126 -0
  96. package/data/skills/sentry-pr-code-review/SKILL.md +105 -0
  97. package/data/skills/sentry-python-sdk/SKILL.md +317 -0
  98. package/data/skills/sentry-setup-ai-monitoring/SKILL.md +217 -0
  99. package/data/skills/stable-baselines3/SKILL.md +297 -0
  100. package/data/skills/sympy/SKILL.md +498 -0
  101. package/data/skills/trailofbits-ask-questions-if-underspecified/SKILL.md +85 -0
  102. package/data/skills/trailofbits-audit-context-building/SKILL.md +302 -0
  103. package/data/skills/trailofbits-differential-review/SKILL.md +220 -0
  104. package/data/skills/trailofbits-insecure-defaults/SKILL.md +117 -0
  105. package/data/skills/trailofbits-modern-python/SKILL.md +333 -0
  106. package/data/skills/trailofbits-property-based-testing/SKILL.md +123 -0
  107. package/data/skills/trailofbits-semgrep-rule-creator/SKILL.md +172 -0
  108. package/data/skills/trailofbits-sharp-edges/SKILL.md +292 -0
  109. package/data/skills/trailofbits-variant-analysis/SKILL.md +142 -0
  110. package/data/skills/transformers.js/SKILL.md +637 -0
  111. package/data/skills/writing/SKILL.md +419 -0
  112. package/dist/bgi.js +66 -2
  113. package/package.json +1 -1
@@ -0,0 +1,329 @@
1
+ ---
2
+ name: astropy
3
+ description: Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve coordinate transformations, unit conversions, FITS file manipulation, cosmological distance calculations, time scale conversions, or astronomical data processing.
4
+ license: BSD-3-Clause license
5
+ metadata:
6
+ skill-author: K-Dense Inc.
7
+ ---
8
+
9
+ # Astropy
10
+
11
+ ## Overview
12
+
13
+ Astropy is the core Python package for astronomy, providing essential functionality for astronomical research and data analysis. Use astropy for coordinate transformations, unit and quantity calculations, FITS file operations, cosmological calculations, precise time handling, tabular data manipulation, and astronomical image processing.
14
+
15
+ ## When to Use This Skill
16
+
17
+ Use astropy when tasks involve:
18
+ - Converting between celestial coordinate systems (ICRS, Galactic, FK5, AltAz, etc.)
19
+ - Working with physical units and quantities (converting Jy to mJy, parsecs to km, etc.)
20
+ - Reading, writing, or manipulating FITS files (images or tables)
21
+ - Cosmological calculations (luminosity distance, lookback time, Hubble parameter)
22
+ - Precise time handling with different time scales (UTC, TAI, TT, TDB) and formats (JD, MJD, ISO)
23
+ - Table operations (reading catalogs, cross-matching, filtering, joining)
24
+ - WCS transformations between pixel and world coordinates
25
+ - Astronomical constants and calculations
26
+
27
+ ## Quick Start
28
+
29
+ ```python
30
+ import astropy.units as u
31
+ from astropy.coordinates import SkyCoord
32
+ from astropy.time import Time
33
+ from astropy.io import fits
34
+ from astropy.table import Table
35
+ from astropy.cosmology import Planck18
36
+
37
+ # Units and quantities
38
+ distance = 100 * u.pc
39
+ distance_km = distance.to(u.km)
40
+
41
+ # Coordinates
42
+ coord = SkyCoord(ra=10.5*u.degree, dec=41.2*u.degree, frame='icrs')
43
+ coord_galactic = coord.galactic
44
+
45
+ # Time
46
+ t = Time('2023-01-15 12:30:00')
47
+ jd = t.jd # Julian Date
48
+
49
+ # FITS files
50
+ data = fits.getdata('image.fits')
51
+ header = fits.getheader('image.fits')
52
+
53
+ # Tables
54
+ table = Table.read('catalog.fits')
55
+
56
+ # Cosmology
57
+ d_L = Planck18.luminosity_distance(z=1.0)
58
+ ```
59
+
60
+ ## Core Capabilities
61
+
62
+ ### 1. Units and Quantities (`astropy.units`)
63
+
64
+ Handle physical quantities with units, perform unit conversions, and ensure dimensional consistency in calculations.
65
+
66
+ **Key operations:**
67
+ - Create quantities by multiplying values with units
68
+ - Convert between units using `.to()` method
69
+ - Perform arithmetic with automatic unit handling
70
+ - Use equivalencies for domain-specific conversions (spectral, doppler, parallax)
71
+ - Work with logarithmic units (magnitudes, decibels)
72
+
73
+ **See:** `references/units.md` for comprehensive documentation, unit systems, equivalencies, performance optimization, and unit arithmetic.
74
+
75
+ ### 2. Coordinate Systems (`astropy.coordinates`)
76
+
77
+ Represent celestial positions and transform between different coordinate frames.
78
+
79
+ **Key operations:**
80
+ - Create coordinates with `SkyCoord` in any frame (ICRS, Galactic, FK5, AltAz, etc.)
81
+ - Transform between coordinate systems
82
+ - Calculate angular separations and position angles
83
+ - Match coordinates to catalogs
84
+ - Include distance for 3D coordinate operations
85
+ - Handle proper motions and radial velocities
86
+ - Query named objects from online databases
87
+
88
+ **See:** `references/coordinates.md` for detailed coordinate frame descriptions, transformations, observer-dependent frames (AltAz), catalog matching, and performance tips.
89
+
90
+ ### 3. Cosmological Calculations (`astropy.cosmology`)
91
+
92
+ Perform cosmological calculations using standard cosmological models.
93
+
94
+ **Key operations:**
95
+ - Use built-in cosmologies (Planck18, WMAP9, etc.)
96
+ - Create custom cosmological models
97
+ - Calculate distances (luminosity, comoving, angular diameter)
98
+ - Compute ages and lookback times
99
+ - Determine Hubble parameter at any redshift
100
+ - Calculate density parameters and volumes
101
+ - Perform inverse calculations (find z for given distance)
102
+
103
+ **See:** `references/cosmology.md` for available models, distance calculations, time calculations, density parameters, and neutrino effects.
104
+
105
+ ### 4. FITS File Handling (`astropy.io.fits`)
106
+
107
+ Read, write, and manipulate FITS (Flexible Image Transport System) files.
108
+
109
+ **Key operations:**
110
+ - Open FITS files with context managers
111
+ - Access HDUs (Header Data Units) by index or name
112
+ - Read and modify headers (keywords, comments, history)
113
+ - Work with image data (NumPy arrays)
114
+ - Handle table data (binary and ASCII tables)
115
+ - Create new FITS files (single or multi-extension)
116
+ - Use memory mapping for large files
117
+ - Access remote FITS files (S3, HTTP)
118
+
119
+ **See:** `references/fits.md` for comprehensive file operations, header manipulation, image and table handling, multi-extension files, and performance considerations.
120
+
121
+ ### 5. Table Operations (`astropy.table`)
122
+
123
+ Work with tabular data with support for units, metadata, and various file formats.
124
+
125
+ **Key operations:**
126
+ - Create tables from arrays, lists, or dictionaries
127
+ - Read/write tables in multiple formats (FITS, CSV, HDF5, VOTable)
128
+ - Access and modify columns and rows
129
+ - Sort, filter, and index tables
130
+ - Perform database-style operations (join, group, aggregate)
131
+ - Stack and concatenate tables
132
+ - Work with unit-aware columns (QTable)
133
+ - Handle missing data with masking
134
+
135
+ **See:** `references/tables.md` for table creation, I/O operations, data manipulation, sorting, filtering, joins, grouping, and performance tips.
136
+
137
+ ### 6. Time Handling (`astropy.time`)
138
+
139
+ Precise time representation and conversion between time scales and formats.
140
+
141
+ **Key operations:**
142
+ - Create Time objects in various formats (ISO, JD, MJD, Unix, etc.)
143
+ - Convert between time scales (UTC, TAI, TT, TDB, etc.)
144
+ - Perform time arithmetic with TimeDelta
145
+ - Calculate sidereal time for observers
146
+ - Compute light travel time corrections (barycentric, heliocentric)
147
+ - Work with time arrays efficiently
148
+ - Handle masked (missing) times
149
+
150
+ **See:** `references/time.md` for time formats, time scales, conversions, arithmetic, observing features, and precision handling.
151
+
152
+ ### 7. World Coordinate System (`astropy.wcs`)
153
+
154
+ Transform between pixel coordinates in images and world coordinates.
155
+
156
+ **Key operations:**
157
+ - Read WCS from FITS headers
158
+ - Convert pixel coordinates to world coordinates (and vice versa)
159
+ - Calculate image footprints
160
+ - Access WCS parameters (reference pixel, projection, scale)
161
+ - Create custom WCS objects
162
+
163
+ **See:** `references/wcs_and_other_modules.md` for WCS operations and transformations.
164
+
165
+ ## Additional Capabilities
166
+
167
+ The `references/wcs_and_other_modules.md` file also covers:
168
+
169
+ ### NDData and CCDData
170
+ Containers for n-dimensional datasets with metadata, uncertainty, masking, and WCS information.
171
+
172
+ ### Modeling
173
+ Framework for creating and fitting mathematical models to astronomical data.
174
+
175
+ ### Visualization
176
+ Tools for astronomical image display with appropriate stretching and scaling.
177
+
178
+ ### Constants
179
+ Physical and astronomical constants with proper units (speed of light, solar mass, Planck constant, etc.).
180
+
181
+ ### Convolution
182
+ Image processing kernels for smoothing and filtering.
183
+
184
+ ### Statistics
185
+ Robust statistical functions including sigma clipping and outlier rejection.
186
+
187
+ ## Installation
188
+
189
+ ```bash
190
+ # Install astropy
191
+ uv pip install astropy
192
+
193
+ # With optional dependencies for full functionality
194
+ uv pip install astropy[all]
195
+ ```
196
+
197
+ ## Common Workflows
198
+
199
+ ### Converting Coordinates Between Systems
200
+
201
+ ```python
202
+ from astropy.coordinates import SkyCoord
203
+ import astropy.units as u
204
+
205
+ # Create coordinate
206
+ c = SkyCoord(ra='05h23m34.5s', dec='-69d45m22s', frame='icrs')
207
+
208
+ # Transform to galactic
209
+ c_gal = c.galactic
210
+ print(f"l={c_gal.l.deg}, b={c_gal.b.deg}")
211
+
212
+ # Transform to alt-az (requires time and location)
213
+ from astropy.time import Time
214
+ from astropy.coordinates import EarthLocation, AltAz
215
+
216
+ observing_time = Time('2023-06-15 23:00:00')
217
+ observing_location = EarthLocation(lat=40*u.deg, lon=-120*u.deg)
218
+ aa_frame = AltAz(obstime=observing_time, location=observing_location)
219
+ c_altaz = c.transform_to(aa_frame)
220
+ print(f"Alt={c_altaz.alt.deg}, Az={c_altaz.az.deg}")
221
+ ```
222
+
223
+ ### Reading and Analyzing FITS Files
224
+
225
+ ```python
226
+ from astropy.io import fits
227
+ import numpy as np
228
+
229
+ # Open FITS file
230
+ with fits.open('observation.fits') as hdul:
231
+ # Display structure
232
+ hdul.info()
233
+
234
+ # Get image data and header
235
+ data = hdul[1].data
236
+ header = hdul[1].header
237
+
238
+ # Access header values
239
+ exptime = header['EXPTIME']
240
+ filter_name = header['FILTER']
241
+
242
+ # Analyze data
243
+ mean = np.mean(data)
244
+ median = np.median(data)
245
+ print(f"Mean: {mean}, Median: {median}")
246
+ ```
247
+
248
+ ### Cosmological Distance Calculations
249
+
250
+ ```python
251
+ from astropy.cosmology import Planck18
252
+ import astropy.units as u
253
+ import numpy as np
254
+
255
+ # Calculate distances at z=1.5
256
+ z = 1.5
257
+ d_L = Planck18.luminosity_distance(z)
258
+ d_A = Planck18.angular_diameter_distance(z)
259
+
260
+ print(f"Luminosity distance: {d_L}")
261
+ print(f"Angular diameter distance: {d_A}")
262
+
263
+ # Age of universe at that redshift
264
+ age = Planck18.age(z)
265
+ print(f"Age at z={z}: {age.to(u.Gyr)}")
266
+
267
+ # Lookback time
268
+ t_lookback = Planck18.lookback_time(z)
269
+ print(f"Lookback time: {t_lookback.to(u.Gyr)}")
270
+ ```
271
+
272
+ ### Cross-Matching Catalogs
273
+
274
+ ```python
275
+ from astropy.table import Table
276
+ from astropy.coordinates import SkyCoord, match_coordinates_sky
277
+ import astropy.units as u
278
+
279
+ # Read catalogs
280
+ cat1 = Table.read('catalog1.fits')
281
+ cat2 = Table.read('catalog2.fits')
282
+
283
+ # Create coordinate objects
284
+ coords1 = SkyCoord(ra=cat1['RA']*u.degree, dec=cat1['DEC']*u.degree)
285
+ coords2 = SkyCoord(ra=cat2['RA']*u.degree, dec=cat2['DEC']*u.degree)
286
+
287
+ # Find matches
288
+ idx, sep, _ = coords1.match_to_catalog_sky(coords2)
289
+
290
+ # Filter by separation threshold
291
+ max_sep = 1 * u.arcsec
292
+ matches = sep < max_sep
293
+
294
+ # Create matched catalogs
295
+ cat1_matched = cat1[matches]
296
+ cat2_matched = cat2[idx[matches]]
297
+ print(f"Found {len(cat1_matched)} matches")
298
+ ```
299
+
300
+ ## Best Practices
301
+
302
+ 1. **Always use units**: Attach units to quantities to avoid errors and ensure dimensional consistency
303
+ 2. **Use context managers for FITS files**: Ensures proper file closing
304
+ 3. **Prefer arrays over loops**: Process multiple coordinates/times as arrays for better performance
305
+ 4. **Check coordinate frames**: Verify the frame before transformations
306
+ 5. **Use appropriate cosmology**: Choose the right cosmological model for your analysis
307
+ 6. **Handle missing data**: Use masked columns for tables with missing values
308
+ 7. **Specify time scales**: Be explicit about time scales (UTC, TT, TDB) for precise timing
309
+ 8. **Use QTable for unit-aware tables**: When table columns have units
310
+ 9. **Check WCS validity**: Verify WCS before using transformations
311
+ 10. **Cache frequently used values**: Expensive calculations (e.g., cosmological distances) can be cached
312
+
313
+ ## Documentation and Resources
314
+
315
+ - Official Astropy Documentation: https://docs.astropy.org/en/stable/
316
+ - Tutorials: https://learn.astropy.org/
317
+ - GitHub: https://github.com/astropy/astropy
318
+
319
+ ## Reference Files
320
+
321
+ For detailed information on specific modules:
322
+ - `references/units.md` - Units, quantities, conversions, and equivalencies
323
+ - `references/coordinates.md` - Coordinate systems, transformations, and catalog matching
324
+ - `references/cosmology.md` - Cosmological models and calculations
325
+ - `references/fits.md` - FITS file operations and manipulation
326
+ - `references/tables.md` - Table creation, I/O, and operations
327
+ - `references/time.md` - Time formats, scales, and calculations
328
+ - `references/wcs_and_other_modules.md` - WCS, NDData, modeling, visualization, constants, and utilities
329
+