add-query-param
星标16
分支6
更新时间2026年7月1日 21:02
This rule describes how to add a new QueryParam feild to a function.
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
This rule describes how to add a new QueryParam feild to a function.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | add-query-param |
| description | This rule describes how to add a new QueryParam feild to a function. |
When adding a new query parameter to a function, follow these steps:
Identify the QueryParams Model
<Function>QueryParams class in the appropriate command directoryAdd the New Parameter
class FunctionQueryParams(BaseModel):
# ... existing code ...
new_param: type = Field(
default=default_value,
description="Description of the parameter",
examples=["example_value"]
)
Data Model Impact Assessment
<Function>Data model accordinglyUpdate Fetcher Logic
transform_query() if neededtransform_data() if the parameter affects data processingDocumentation
Testing
Example:
# Before
class MandelbrotChannelQueryParams(BaseModel):
window: str
rv_adjustment: bool
# After
class MandelbrotChannelQueryParams(BaseModel):
window: str
rv_adjustment: bool
new_param: bool = Field(
default=False,
description="New parameter description",
examples=[True, False]
)
Remember:
Field for parameter definitions