sdtk-spec-kit 0.9.2 → 0.11.0
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.
- package/README.md +1 -1
- package/assets/manifest/toolkit-bundle.manifest.json +370 -35
- package/assets/manifest/toolkit-bundle.sha256.txt +84 -17
- package/assets/toolkit/toolkit/AGENTS.md +2 -1
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +11 -3
- package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +7 -0
- package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +46 -0
- package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +19 -0
- package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills/sdtk-ba/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills/sdtk-customer-qa-sheet/SKILL.md +117 -0
- package/assets/toolkit/toolkit/skills/sdtk-customer-qa-sheet/references/PROFILE_TEMPLATE.md +60 -0
- package/assets/toolkit/toolkit/skills/sdtk-customer-qa-sheet/scripts/oq_sync.py +349 -0
- package/assets/toolkit/toolkit/skills/sdtk-customer-qa-sheet/scripts/test_oq_sync.py +175 -0
- package/assets/toolkit/toolkit/skills/sdtk-db-design/SKILL.md +130 -0
- package/assets/toolkit/toolkit/skills/sdtk-db-design/references/REVIEW_PROCESS.md +82 -0
- package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +2 -0
- package/assets/toolkit/toolkit/skills/sdtk-qa/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/SKILL.md +104 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/references/REVIEW_AND_MISTAKES.md +63 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/references/SCR01.json +46 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/references/SCR01.png +0 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/references/SPEC_SCHEMA.md +208 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/references/example_spec.yaml +115 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/build_design_xlsx.py +550 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/design_spec.py +305 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/export_preview.py +111 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/export_spec_md.py +181 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/make_template.py +113 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/test_screen_design.py +198 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/uia_dump.py +64 -0
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-xlsx/scripts/validate_spec.py +260 -0
- package/assets/toolkit/toolkit/skills/sdtk-session-handoff/SKILL.md +76 -0
- package/assets/toolkit/toolkit/skills/sdtk-session-handoff/references/HANDOFF_TEMPLATE.md +63 -0
- package/assets/toolkit/toolkit/skills/sdtk-session-handoff/references/MOVING_A_PROJECT.md +18 -0
- package/assets/toolkit/toolkit/skills/sdtk-session-handoff/scripts/dirty_files.py +133 -0
- package/assets/toolkit/toolkit/skills/sdtk-session-handoff/scripts/test_dirty_files.py +94 -0
- package/assets/toolkit/toolkit/skills/sdtk-smoke-test-spec/SKILL.md +69 -0
- package/assets/toolkit/toolkit/skills/sdtk-smoke-test-spec/scripts/test_validate_smoke_test.py +58 -0
- package/assets/toolkit/toolkit/skills/sdtk-smoke-test-spec/scripts/validate_smoke_test.py +152 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/SKILL.md +297 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/prompts/agent_brief_template.md +59 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/check_coverage.py +50 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/extract_sources.py +224 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/merge_parts.py +78 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/render_testcase.py +421 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/template_set.py +57 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/test_write_results.py +89 -0
- package/assets/toolkit/toolkit/skills/sdtk-test-case-xlsx/scripts/write_results.py +126 -0
- package/assets/toolkit/toolkit/skills/sdtk-xlsx-safe-edit/SKILL.md +149 -0
- package/assets/toolkit/toolkit/skills/sdtk-xlsx-safe-edit/scripts/pictures.py +68 -0
- package/assets/toolkit/toolkit/skills/sdtk-xlsx-safe-edit/scripts/test_metadata.py +76 -0
- package/assets/toolkit/toolkit/skills/sdtk-xlsx-safe-edit/scripts/test_pictures.py +55 -0
- package/assets/toolkit/toolkit/skills/sdtk-xlsx-safe-edit/scripts/xlsafe.py +137 -0
- package/assets/toolkit/toolkit/skills/sdtk-xlsx-safe-edit/scripts/xlsx_xml_edit.py +217 -0
- package/assets/toolkit/toolkit/skills/skills.catalog.yaml +172 -0
- package/assets/toolkit/toolkit/skills-claude/arch/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills-claude/ba/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills-claude/customer-qa-sheet/SKILL.md +115 -0
- package/assets/toolkit/toolkit/skills-claude/db-design/SKILL.md +128 -0
- package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills-claude/qa/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills-claude/screen-design-xlsx/SKILL.md +101 -0
- package/assets/toolkit/toolkit/skills-claude/session-handoff/SKILL.md +74 -0
- package/assets/toolkit/toolkit/skills-claude/smoke-test-spec/SKILL.md +66 -0
- package/assets/toolkit/toolkit/skills-claude/test-case-xlsx/SKILL.md +294 -0
- package/assets/toolkit/toolkit/skills-claude/xlsx-safe-edit/SKILL.md +146 -0
- package/assets/toolkit/toolkit/templates/README.md +11 -1
- package/assets/toolkit/toolkit/templates/docs/database/DATABASE_SPEC_TEMPLATE.md +14 -0
- package/assets/toolkit/toolkit/templates/screen-design-xlsx/ja-default/TEMPLATE.md +247 -0
- package/assets/toolkit/toolkit/templates/screen-design-xlsx/ja-default/template.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/smoke-test/PROFILE_TEMPLATE.md +36 -0
- package/assets/toolkit/toolkit/templates/smoke-test/vi-default/AUTHORING_RULES.md +32 -0
- package/assets/toolkit/toolkit/templates/smoke-test/vi-default/SMOKE_TEST_TEMPLATE.md +147 -0
- package/assets/toolkit/toolkit/templates/smoke-test/vi-default/TEMPLATE.md +25 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/PROFILE_TEMPLATE.md +78 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/TEMPLATE.md +28 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/README.md +73 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/_template.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/common/common.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/platform/mobile_app.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/platform/smartphone_web.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/platform/web.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default/viewpoints/platform/windows_app.xlsx +0 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default//343/203/206/343/202/271/343/203/210/344/273/225/346/247/230/346/233/270/344/275/234/346/210/220/343/203/253/343/203/274/343/203/253.md +514 -0
- package/assets/toolkit/toolkit/templates/test-case-xlsx/ja-default//343/203/206/343/202/271/343/203/210/344/273/225/346/247/230/346/233/270/351/233/233/345/236/213.xlsx +0 -0
- package/package.json +1 -1
- package/src/lib/scope.js +6 -4
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"""XML route: change cell values / row heights in ONE worksheet of an .xlsx without Excel saving the workbook.
|
|
2
|
+
|
|
3
|
+
Only that sheet's part (xl/worksheets/sheetN.xml) is rewritten; every other part is copied byte-for-byte, so fonts,
|
|
4
|
+
styles, row heights and column widths of every other sheet cannot drift. Strings are written as inline strings
|
|
5
|
+
(Excel converts them to shared strings on its next save).
|
|
6
|
+
|
|
7
|
+
from xlsx_xml_edit import SheetXml, package_diff, layout_diff, excel_open_check
|
|
8
|
+
sx = SheetXml(src_path, "Sheet name")
|
|
9
|
+
sx.set_row(46, {"D": 43, "N": "text\\nline 2"}, template_row=48, height=120) # fill/insert a row
|
|
10
|
+
sx.extend_ranges(old_last_row=48, new_last_row=58) # DV / CF / dimension
|
|
11
|
+
sx.save(out_path)
|
|
12
|
+
package_diff(src_path, out_path) # -> ['xl/worksheets/sheet6.xml']
|
|
13
|
+
excel_open_check(out_path, "Sheet name", ["N46"]) # read-only, private Excel instance
|
|
14
|
+
"""
|
|
15
|
+
import os, re, zipfile
|
|
16
|
+
from xml.sax.saxutils import escape
|
|
17
|
+
|
|
18
|
+
_CELL = re.compile(r'<c r="([A-Z]+)(\d+)"([^>]*?)(?:/>|>(.*?)</c>)', re.S)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def col_num(col):
|
|
22
|
+
n = 0
|
|
23
|
+
for ch in col:
|
|
24
|
+
n = n * 26 + ord(ch) - 64
|
|
25
|
+
return n
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def sheet_part(zf, sheet_name):
|
|
29
|
+
wb = zf.read("xl/workbook.xml").decode("utf-8")
|
|
30
|
+
m = re.search(r'<sheet [^>]*name="%s"[^>]*r:id="(rId\d+)"' % re.escape(escape(sheet_name, {'"': """})), wb)
|
|
31
|
+
if not m:
|
|
32
|
+
raise KeyError(f"sheet not found: {sheet_name}")
|
|
33
|
+
rels = zf.read("xl/_rels/workbook.xml.rels").decode("utf-8")
|
|
34
|
+
t = re.search(r'<Relationship [^>]*Id="%s"[^>]*Target="([^"]+)"' % m.group(1), rels) or \
|
|
35
|
+
re.search(r'<Relationship [^>]*Target="([^"]+)"[^>]*Id="%s"' % m.group(1), rels)
|
|
36
|
+
target = t.group(1).lstrip("/")
|
|
37
|
+
return target if target.startswith("xl/") else "xl/" + target
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class SheetXml:
|
|
41
|
+
def __init__(self, path, sheet_name):
|
|
42
|
+
self.path, self.zf = path, zipfile.ZipFile(path)
|
|
43
|
+
self.part = sheet_part(self.zf, sheet_name)
|
|
44
|
+
self.xml = self.zf.read(self.part).decode("utf-8")
|
|
45
|
+
|
|
46
|
+
def _row_span(self, r):
|
|
47
|
+
m = re.search(r'<row r="%d"[^>]*?(?:/>|>.*?</row>)' % r, self.xml, re.S)
|
|
48
|
+
return (m.start(), m.end()) if m else None
|
|
49
|
+
|
|
50
|
+
def row_cells(self, r):
|
|
51
|
+
span = self._row_span(r)
|
|
52
|
+
if not span:
|
|
53
|
+
return {}
|
|
54
|
+
return {c: (attrs, inner) for c, rr, attrs, inner in _CELL.findall(self.xml[span[0]:span[1]]) if int(rr) == r}
|
|
55
|
+
|
|
56
|
+
def cell_value_raw(self, ref):
|
|
57
|
+
col, r = re.match(r"([A-Z]+)(\d+)", ref).groups()
|
|
58
|
+
return self.row_cells(int(r)).get(col)
|
|
59
|
+
|
|
60
|
+
def set_row(self, r, values, template_row, height=None):
|
|
61
|
+
"""Write `values` {col: str|int|float|None} into row r. Missing cells/row are created with the styles of
|
|
62
|
+
template_row. Existing cells keep their style; other existing cells are left as they are."""
|
|
63
|
+
tmpl = {c: re.search(r's="(\d+)"', a).group(1) for c, (a, _) in self.row_cells(template_row).items() if 's="' in a}
|
|
64
|
+
cur = self.row_cells(r)
|
|
65
|
+
cols = sorted(set(tmpl) | set(cur) | set(values), key=col_num)
|
|
66
|
+
out = []
|
|
67
|
+
for c in cols:
|
|
68
|
+
attrs = cur[c][0] if c in cur else (f' s="{tmpl[c]}"' if c in tmpl else "")
|
|
69
|
+
style = re.search(r's="\d+"', attrs)
|
|
70
|
+
s = f" {style.group(0)}" if style else ""
|
|
71
|
+
if c in values:
|
|
72
|
+
v = values[c]
|
|
73
|
+
if v is None or v == "":
|
|
74
|
+
out.append(f'<c r="{c}{r}"{s}/>')
|
|
75
|
+
elif isinstance(v, (int, float)):
|
|
76
|
+
out.append(f'<c r="{c}{r}"{s}><v>{v}</v></c>')
|
|
77
|
+
else:
|
|
78
|
+
out.append(f'<c r="{c}{r}"{s} t="inlineStr"><is><t xml:space="preserve">{escape(str(v))}</t></is></c>')
|
|
79
|
+
elif c in cur:
|
|
80
|
+
a, inner = cur[c]
|
|
81
|
+
out.append(f'<c r="{c}{r}"{a}>{inner}</c>' if inner else f'<c r="{c}{r}"{a}/>')
|
|
82
|
+
else:
|
|
83
|
+
out.append(f'<c r="{c}{r}"{s}/>')
|
|
84
|
+
span = self._row_span(r) or self._row_span(template_row)
|
|
85
|
+
head = re.match(r'<row [^>]*?(?=/?>)', self.xml[span[0]:span[1]]).group(0)
|
|
86
|
+
head = re.sub(r' r="\d+"', f' r="{r}"', head, 1)
|
|
87
|
+
if height is not None:
|
|
88
|
+
head = re.sub(r' (ht|customHeight)="[^"]*"', "", head) + f' ht="{height}" customHeight="1"'
|
|
89
|
+
new_row = head + ">" + "".join(out) + "</row>"
|
|
90
|
+
own = self._row_span(r)
|
|
91
|
+
if own:
|
|
92
|
+
self.xml = self.xml[:own[0]] + new_row + self.xml[own[1]:]
|
|
93
|
+
else:
|
|
94
|
+
later = [m for m in re.finditer(r'<row r="(\d+)"', self.xml) if int(m.group(1)) > r]
|
|
95
|
+
pos = later[0].start() if later else self.xml.index("</sheetData>")
|
|
96
|
+
self.xml = self.xml[:pos] + new_row + self.xml[pos:]
|
|
97
|
+
|
|
98
|
+
def extend_ranges(self, old_last_row, new_last_row):
|
|
99
|
+
"""Grow every DV / CF range and the <dimension> that ends exactly at old_last_row."""
|
|
100
|
+
def grow(m):
|
|
101
|
+
return f"{m.group(1)}{new_last_row}" if int(m.group(2)) == old_last_row else m.group(0)
|
|
102
|
+
def fix(attr_value):
|
|
103
|
+
return re.sub(r"(\b[A-Z]+\d+:[A-Z]+)(\d+)\b", grow, attr_value)
|
|
104
|
+
self.xml = re.sub(r'(<dimension ref=")([^"]+)(")', lambda m: m.group(1) + fix(m.group(2)) + m.group(3), self.xml)
|
|
105
|
+
self.xml = re.sub(r'(<(?:dataValidation|conditionalFormatting)\b[^>]*?sqref=")([^"]+)(")',
|
|
106
|
+
lambda m: m.group(1) + fix(m.group(2)) + m.group(3), self.xml)
|
|
107
|
+
|
|
108
|
+
def save(self, out_path):
|
|
109
|
+
with zipfile.ZipFile(out_path, "w") as zout:
|
|
110
|
+
for info in self.zf.infolist():
|
|
111
|
+
data = self.xml.encode("utf-8") if info.filename == self.part else self.zf.read(info.filename)
|
|
112
|
+
zout.writestr(info, data, compress_type=info.compress_type)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def package_diff(a, b):
|
|
116
|
+
za, zb = zipfile.ZipFile(a), zipfile.ZipFile(b)
|
|
117
|
+
names = set(za.namelist()) | set(zb.namelist())
|
|
118
|
+
return sorted(n for n in names if n not in za.namelist() or n not in zb.namelist() or za.read(n) != zb.read(n))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def layout_diff(a, b, skip_sheets=()):
|
|
122
|
+
"""Row heights, column widths and cell font names that differ per sheet (openpyxl, read-only)."""
|
|
123
|
+
from openpyxl import load_workbook
|
|
124
|
+
wa, wb = load_workbook(a), load_workbook(b)
|
|
125
|
+
report = {}
|
|
126
|
+
for name in wa.sheetnames:
|
|
127
|
+
if name in skip_sheets or name not in wb.sheetnames:
|
|
128
|
+
continue
|
|
129
|
+
x, y = wa[name], wb[name]
|
|
130
|
+
rows = [r for r in set(x.row_dimensions) | set(y.row_dimensions) if x.row_dimensions[r].height != y.row_dimensions[r].height]
|
|
131
|
+
cols = [c for c in set(x.column_dimensions) | set(y.column_dimensions) if x.column_dimensions[c].width != y.column_dimensions[c].width]
|
|
132
|
+
fonts = sum(1 for row in x.iter_rows() for c in row if c.has_style and c.font.name != y[c.coordinate].font.name)
|
|
133
|
+
if rows or cols or fonts:
|
|
134
|
+
report[name] = {"row_heights": len(rows), "col_widths": len(cols), "cell_fonts": fonts}
|
|
135
|
+
return report
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def excel_open_check(path, sheet_name, refs):
|
|
139
|
+
"""Open read-only in a private Excel instance; fail if Excel repairs the file. Returns {ref: value}."""
|
|
140
|
+
import win32com.client as win32
|
|
141
|
+
xl = win32.DispatchEx("Excel.Application")
|
|
142
|
+
xl.Visible, xl.DisplayAlerts = False, False
|
|
143
|
+
wb = None
|
|
144
|
+
try:
|
|
145
|
+
wb = xl.Workbooks.Open(path, UpdateLinks=0, ReadOnly=True, CorruptLoad=0)
|
|
146
|
+
if "修復" in wb.Name or "Repaired" in wb.Name:
|
|
147
|
+
raise RuntimeError(f"Excel repaired the file: {wb.Name}")
|
|
148
|
+
ws = wb.Worksheets(sheet_name)
|
|
149
|
+
return {ref: ws.Range(ref).Value for ref in refs}
|
|
150
|
+
finally:
|
|
151
|
+
if wb is not None:
|
|
152
|
+
wb.Close(False)
|
|
153
|
+
xl.Quit()
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
_META_FIELDS = (("docProps/core.xml", "dc:creator"), ("docProps/core.xml", "cp:lastModifiedBy"),
|
|
157
|
+
("docProps/app.xml", "Company"), ("docProps/app.xml", "Manager"))
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
def metadata_scan(path, names=()):
|
|
161
|
+
"""Before a workbook leaves the team (template, deliverable): what travels with it besides the cells.
|
|
162
|
+
|
|
163
|
+
Returns a list of (part, finding): filled author / company fields, the saved absolute path
|
|
164
|
+
(x15ac:absPath in xl/workbook.xml), and every part whose bytes contain one of `names` (case-insensitive, UTF-8)
|
|
165
|
+
— sharedStrings, comments, drawings and docProps included, not only cell values. Read-only."""
|
|
166
|
+
findings = []
|
|
167
|
+
with zipfile.ZipFile(path) as z:
|
|
168
|
+
parts = z.namelist()
|
|
169
|
+
for part, tag in _META_FIELDS:
|
|
170
|
+
if part in parts:
|
|
171
|
+
m = re.search(r"<%s(?:\s[^>]*)?>([^<]+)</%s>" % (tag, tag), z.read(part).decode("utf-8", "replace"))
|
|
172
|
+
if m and m.group(1).strip():
|
|
173
|
+
findings.append((part, f"{tag} = {m.group(1).strip()}"))
|
|
174
|
+
if "xl/workbook.xml" in parts:
|
|
175
|
+
wb = z.read("xl/workbook.xml").decode("utf-8", "replace")
|
|
176
|
+
m = re.search(r'absPath\s+url="([^"]+)"', wb)
|
|
177
|
+
if m:
|
|
178
|
+
findings.append(("xl/workbook.xml", f"x15ac:absPath = {m.group(1)}"))
|
|
179
|
+
defined = [n for n in re.findall(r'<definedName [^>]*name="([^"]+)"', wb)
|
|
180
|
+
if not n.startswith("_xlnm.")] # print areas, autofilter ranges: Excel's own
|
|
181
|
+
if defined:
|
|
182
|
+
findings.append(("xl/workbook.xml", f"{len(defined)} defined name(s) (left from earlier work?): "
|
|
183
|
+
+ ", ".join(sorted(set(defined))[:8])))
|
|
184
|
+
for part in parts: # links to other files carry their path and sheet names
|
|
185
|
+
if part.endswith(".rels"):
|
|
186
|
+
rels = z.read(part).decode("utf-8", "replace")
|
|
187
|
+
for target in re.findall(r'Target="([^"]+)"[^>]*TargetMode="External"', rels):
|
|
188
|
+
if not target.startswith(("http://", "https://", "mailto:")) or "externalLink" in part:
|
|
189
|
+
findings.append((part, f"external target = {target}"))
|
|
190
|
+
elif part.startswith("xl/externalLinks/") and part.endswith(".xml"):
|
|
191
|
+
findings.append((part, "external workbook link (its sheet names travel too)"))
|
|
192
|
+
elif part == "docProps/custom.xml":
|
|
193
|
+
props = re.findall(r'<property [^>]*name="([^"]+)"', z.read(part).decode("utf-8", "replace"))
|
|
194
|
+
if props:
|
|
195
|
+
findings.append((part, "custom document properties: " + ", ".join(props[:8])))
|
|
196
|
+
elif part.startswith("xl/") and "." not in os.path.basename(part):
|
|
197
|
+
findings.append((part, "unknown binary part (another application's metadata?)"))
|
|
198
|
+
for name in names:
|
|
199
|
+
needle = name.lower().encode("utf-8")
|
|
200
|
+
for part in parts:
|
|
201
|
+
if needle in z.read(part).lower():
|
|
202
|
+
findings.append((part, f"contains {name!r}"))
|
|
203
|
+
return findings
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
if __name__ == "__main__":
|
|
207
|
+
import argparse
|
|
208
|
+
ap = argparse.ArgumentParser(description="Read-only checks on an .xlsx package.")
|
|
209
|
+
ap.add_argument("command", choices=["scan-metadata"])
|
|
210
|
+
ap.add_argument("workbook")
|
|
211
|
+
ap.add_argument("--name", action="append", default=[], help="a name that must not travel (repeatable)")
|
|
212
|
+
args = ap.parse_args()
|
|
213
|
+
found = metadata_scan(args.workbook, args.name)
|
|
214
|
+
for part, what in found:
|
|
215
|
+
print(f"{part}: {what}")
|
|
216
|
+
print(f"{len(found)} finding(s)")
|
|
217
|
+
raise SystemExit(1 if found else 0)
|
|
@@ -350,3 +350,175 @@ skills:
|
|
|
350
350
|
runtime_support: [claude, codex]
|
|
351
351
|
dependencies: []
|
|
352
352
|
pack: core
|
|
353
|
+
|
|
354
|
+
- name: sdtk-xlsx-safe-edit
|
|
355
|
+
phase: specialist
|
|
356
|
+
role_tag: /xlsx-safe-edit
|
|
357
|
+
use_when: Read or modify a hand-maintained .xlsx/.xlsm (manuals, specs, test cases, Q&A logs, design documents) without losing pictures, layout or the person's edits.
|
|
358
|
+
primary_inputs:
|
|
359
|
+
- the target workbook (closed in Excel)
|
|
360
|
+
primary_outputs:
|
|
361
|
+
- the same workbook, only the requested cells / sheets / shapes changed
|
|
362
|
+
- backup copy and a change report
|
|
363
|
+
hard_gates:
|
|
364
|
+
- Never save a workbook with openpyxl; never attach to the person's Excel (Dispatch); never kill EXCEL.EXE.
|
|
365
|
+
- Check requests are read-only; touch only what was asked and verify package and layout diffs.
|
|
366
|
+
- A generated workbook the person finalized by hand is never re-rendered (final mode).
|
|
367
|
+
references: []
|
|
368
|
+
prompts: []
|
|
369
|
+
scripts:
|
|
370
|
+
- toolkit/skills/sdtk-xlsx-safe-edit/scripts/xlsafe.py
|
|
371
|
+
- toolkit/skills/sdtk-xlsx-safe-edit/scripts/xlsx_xml_edit.py
|
|
372
|
+
- toolkit/skills/sdtk-xlsx-safe-edit/scripts/pictures.py
|
|
373
|
+
runtime_support: [claude, codex]
|
|
374
|
+
dependencies: []
|
|
375
|
+
pack: core
|
|
376
|
+
- name: sdtk-session-handoff
|
|
377
|
+
phase: orchestration
|
|
378
|
+
role_tag: /session-handoff
|
|
379
|
+
use_when: A session ends, is compacted or hands over to a new session or person, or a moved project folder must keep its old sessions; packages memory, local instructions, a handoff document, a classification of every uncommitted file and a first prompt.
|
|
380
|
+
primary_inputs:
|
|
381
|
+
- git worktrees and their uncommitted files
|
|
382
|
+
- the session's decisions, released versions and open work
|
|
383
|
+
primary_outputs:
|
|
384
|
+
- .sdtk/handoff/session-<date>-<topic>/HANDOFF.md, STATUS.md, FILES.md (git-ignored)
|
|
385
|
+
- CLAUDE.local.md (Claude Code, git-excluded) and runtime memory entries
|
|
386
|
+
hard_gates:
|
|
387
|
+
- Every uncommitted file in every worktree is classified PR / LOCAL / STASH / DROP and dirty_files.py check exits 0 before the handoff is called done.
|
|
388
|
+
- Never git add -A; DROP only after the person said so; the handoff stays out of the repository.
|
|
389
|
+
references:
|
|
390
|
+
- toolkit/skills/sdtk-session-handoff/references/HANDOFF_TEMPLATE.md
|
|
391
|
+
- toolkit/skills/sdtk-session-handoff/references/MOVING_A_PROJECT.md
|
|
392
|
+
prompts: []
|
|
393
|
+
scripts:
|
|
394
|
+
- toolkit/skills/sdtk-session-handoff/scripts/dirty_files.py
|
|
395
|
+
runtime_support: [claude, codex]
|
|
396
|
+
dependencies: []
|
|
397
|
+
pack: core
|
|
398
|
+
- name: sdtk-customer-qa-sheet
|
|
399
|
+
phase: ba
|
|
400
|
+
role_tag: /customer-qa-sheet
|
|
401
|
+
use_when: Open questions (OQ-xx) go to a customer through their hand-maintained Q&A / issue-tracking Excel sheet, the customer's answers are read back into the spec and decision log, or a reply to the customer's question is written into that sheet.
|
|
402
|
+
primary_inputs:
|
|
403
|
+
- qa_sheet_profile.md of the project
|
|
404
|
+
- BA_SPEC open questions (OQ-xx) and the customer's Q&A workbook
|
|
405
|
+
primary_outputs:
|
|
406
|
+
- review draft of rows, then the approved rows in the customer's sheet
|
|
407
|
+
- spec / decision-log update proposal keyed by OQ id
|
|
408
|
+
hard_gates:
|
|
409
|
+
- Nothing is written before the person approves the exact row values or reply text.
|
|
410
|
+
- Never overwrite a cell holding text; never edit the customer's answer; writes go through the XML route of sdtk-xlsx-safe-edit.
|
|
411
|
+
- Rows and OQs are matched by id, never by position; candidates are checked against existing rows first.
|
|
412
|
+
references:
|
|
413
|
+
- toolkit/skills/sdtk-customer-qa-sheet/references/PROFILE_TEMPLATE.md
|
|
414
|
+
prompts: []
|
|
415
|
+
scripts:
|
|
416
|
+
- toolkit/skills/sdtk-customer-qa-sheet/scripts/oq_sync.py
|
|
417
|
+
runtime_support: [claude, codex]
|
|
418
|
+
dependencies: [sdtk-xlsx-safe-edit]
|
|
419
|
+
pack: core
|
|
420
|
+
- name: sdtk-db-design
|
|
421
|
+
phase: arch
|
|
422
|
+
role_tag: /db-design
|
|
423
|
+
use_when: A new table or column is proposed, a schema is reviewed / trimmed before release, a legacy database is replaced, or a schema change can reach machines holding real user data; decides what sdtk-arch's DATABASE_SPEC contains.
|
|
424
|
+
primary_inputs:
|
|
425
|
+
- requirements and approved decisions; current DDL and every write path
|
|
426
|
+
- legacy schema and external contracts when replacing or syncing
|
|
427
|
+
primary_outputs:
|
|
428
|
+
- fact inventory with a verdict per column (DATABASE_SPEC section 8)
|
|
429
|
+
- legacy column map, upgrade ladder and migration policy when data may exist
|
|
430
|
+
hard_gates:
|
|
431
|
+
- Every durable field names a writer, a reader, a recovery purpose and the requirement that fails without it.
|
|
432
|
+
- Read the DDL and all write paths before stating meaning; once real data can exist, never drop and recreate.
|
|
433
|
+
- Product semantics are the owner's decision; the schema of record changes only after sign-off.
|
|
434
|
+
references:
|
|
435
|
+
- toolkit/skills/sdtk-db-design/references/REVIEW_PROCESS.md
|
|
436
|
+
- toolkit/templates/docs/database/DATABASE_SPEC_TEMPLATE.md
|
|
437
|
+
prompts: []
|
|
438
|
+
scripts: []
|
|
439
|
+
runtime_support: [claude, codex]
|
|
440
|
+
dependencies: [sdtk-arch]
|
|
441
|
+
pack: core
|
|
442
|
+
- name: sdtk-screen-design-xlsx
|
|
443
|
+
phase: arch
|
|
444
|
+
role_tag: /screen-design-xlsx
|
|
445
|
+
use_when: A Japanese 画面設計書 Excel workbook (表紙 / 改訂記事 / 機能概要 / 画面流れ / 処理) must be built, updated or audited from the screen flow-action spec and other sources, through a reviewable YAML spec rendered by Excel COM.
|
|
446
|
+
primary_inputs:
|
|
447
|
+
- screen flow-action spec, design layout, API list, DB spec; screenshots or UI Automation dumps
|
|
448
|
+
- template set toolkit/templates/screen-design-xlsx/<set> (or the project's own)
|
|
449
|
+
primary_outputs:
|
|
450
|
+
- docs/screen_design/design_spec.yaml (the reviewed artifact)
|
|
451
|
+
- the 画面設計書 workbook, PNG previews, optional Markdown of the process sheets
|
|
452
|
+
hard_gates:
|
|
453
|
+
- validate_spec.py exits 0 before rendering; every rendered page is looked at as PNG.
|
|
454
|
+
- On an existing workbook only the changed sheets are rendered (--sheets); a finalized or hand-edited workbook is never re-rendered without the person's confirmation (final mode via sdtk-xlsx-safe-edit).
|
|
455
|
+
- Never save with openpyxl, never attach to the person's Excel; cite only identifiers that exist in the sources.
|
|
456
|
+
references:
|
|
457
|
+
- toolkit/skills/sdtk-screen-design-xlsx/references/SPEC_SCHEMA.md
|
|
458
|
+
- toolkit/skills/sdtk-screen-design-xlsx/references/REVIEW_AND_MISTAKES.md
|
|
459
|
+
- toolkit/templates/screen-design-xlsx/ja-default/TEMPLATE.md
|
|
460
|
+
prompts: []
|
|
461
|
+
scripts:
|
|
462
|
+
- toolkit/skills/sdtk-screen-design-xlsx/scripts/design_spec.py
|
|
463
|
+
- toolkit/skills/sdtk-screen-design-xlsx/scripts/validate_spec.py
|
|
464
|
+
- toolkit/skills/sdtk-screen-design-xlsx/scripts/build_design_xlsx.py
|
|
465
|
+
- toolkit/skills/sdtk-screen-design-xlsx/scripts/export_preview.py
|
|
466
|
+
- toolkit/skills/sdtk-screen-design-xlsx/scripts/export_spec_md.py
|
|
467
|
+
- toolkit/skills/sdtk-screen-design-xlsx/scripts/uia_dump.py
|
|
468
|
+
- toolkit/skills/sdtk-screen-design-xlsx/scripts/make_template.py
|
|
469
|
+
runtime_support: [claude, codex]
|
|
470
|
+
dependencies: [sdtk-screen-design-spec, sdtk-xlsx-safe-edit]
|
|
471
|
+
pack: core
|
|
472
|
+
- name: sdtk-smoke-test-spec
|
|
473
|
+
phase: qa
|
|
474
|
+
role_tag: /smoke-test-spec
|
|
475
|
+
use_when: Write or update a manual smoke / acceptance test document for one feature or task, traceable to the spec and runnable by testers or an automation runner keyed by case id.
|
|
476
|
+
primary_inputs:
|
|
477
|
+
- docs/qa/smoke_test_profile.md
|
|
478
|
+
- spec sources, decisions log and existing smoke suites named by the profile
|
|
479
|
+
primary_outputs:
|
|
480
|
+
- one smoke-test markdown file per feature or task (template set layout)
|
|
481
|
+
hard_gates:
|
|
482
|
+
- Never guess undecided behaviour; record it as an open point and mark the case.
|
|
483
|
+
- Expected results are visible to a tester; only section 4 holds cases; delivered case ids are never renumbered.
|
|
484
|
+
- validate_smoke_test.py exits 0 and the section 8 totals equal its counts before hand-over.
|
|
485
|
+
references:
|
|
486
|
+
- toolkit/templates/smoke-test/PROFILE_TEMPLATE.md
|
|
487
|
+
- toolkit/templates/smoke-test/vi-default/TEMPLATE.md
|
|
488
|
+
- toolkit/templates/smoke-test/vi-default/AUTHORING_RULES.md
|
|
489
|
+
- toolkit/templates/smoke-test/vi-default/SMOKE_TEST_TEMPLATE.md
|
|
490
|
+
prompts: []
|
|
491
|
+
scripts:
|
|
492
|
+
- toolkit/skills/sdtk-smoke-test-spec/scripts/validate_smoke_test.py
|
|
493
|
+
runtime_support: [claude, codex]
|
|
494
|
+
dependencies: []
|
|
495
|
+
pack: core
|
|
496
|
+
- name: sdtk-test-case-xlsx
|
|
497
|
+
phase: qa
|
|
498
|
+
role_tag: /test-case-xlsx
|
|
499
|
+
use_when: QA test cases must be an Excel workbook from the customer's template (testCaseSpecMode = xlsx) — create / update them, convert existing smoke-test or test-case markdown, or write executed results back.
|
|
500
|
+
primary_inputs:
|
|
501
|
+
- testcase_profile.md and testcase_profile.base.json of the project
|
|
502
|
+
- spec sources and existing test cases named by the profile
|
|
503
|
+
primary_outputs:
|
|
504
|
+
- test specification workbook (.xlsx) + markdown + spec.json (template set layout)
|
|
505
|
+
- executed results written into the tester's workbook
|
|
506
|
+
hard_gates:
|
|
507
|
+
- Never guess scope, check locations or undecided behaviour; ask or report them (§11).
|
|
508
|
+
- Cases are written as JSON and rendered; render_testcase.py exits 0; every existing case is converted (check_coverage.py).
|
|
509
|
+
- Never save a workbook with openpyxl; results go through write_results.py; cases are matched by sheet + No, never by position.
|
|
510
|
+
references:
|
|
511
|
+
- toolkit/templates/test-case-xlsx/PROFILE_TEMPLATE.md
|
|
512
|
+
- toolkit/templates/test-case-xlsx/ja-default/TEMPLATE.md
|
|
513
|
+
prompts:
|
|
514
|
+
- toolkit/skills/sdtk-test-case-xlsx/prompts/agent_brief_template.md
|
|
515
|
+
scripts:
|
|
516
|
+
- toolkit/skills/sdtk-test-case-xlsx/scripts/template_set.py
|
|
517
|
+
- toolkit/skills/sdtk-test-case-xlsx/scripts/extract_sources.py
|
|
518
|
+
- toolkit/skills/sdtk-test-case-xlsx/scripts/merge_parts.py
|
|
519
|
+
- toolkit/skills/sdtk-test-case-xlsx/scripts/render_testcase.py
|
|
520
|
+
- toolkit/skills/sdtk-test-case-xlsx/scripts/check_coverage.py
|
|
521
|
+
- toolkit/skills/sdtk-test-case-xlsx/scripts/write_results.py
|
|
522
|
+
runtime_support: [claude, codex]
|
|
523
|
+
dependencies: [sdtk-xlsx-safe-edit]
|
|
524
|
+
pack: core
|
|
@@ -32,7 +32,7 @@ $ARGUMENTS
|
|
|
32
32
|
- `docs/api/[FEATURE_KEY]_ENDPOINTS.md`
|
|
33
33
|
- `docs/api/[FEATURE_KEY]_API_DESIGN_DETAIL.md`
|
|
34
34
|
- `docs/api/[feature_snake]_api_flow_list.txt`
|
|
35
|
-
- `docs/database/DATABASE_SPEC_[FEATURE_KEY].md`
|
|
35
|
+
- `docs/database/DATABASE_SPEC_[FEATURE_KEY].md` (a new table, a legacy replacement or a migration that can meet real data: run `/db-design` first)
|
|
36
36
|
- `docs/design/DESIGN_LAYOUT_[FEATURE_KEY].md`
|
|
37
37
|
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`
|
|
38
38
|
|
|
@@ -62,6 +62,6 @@ forward as explicit OQ-xx items in BA_SPEC rather than silently resolved.
|
|
|
62
62
|
- Traceability summary table (REQ -> UC/BR/AC)
|
|
63
63
|
3. If source requirements are VI/JP, preserve the original text and add a literal EN translation in appendices.
|
|
64
64
|
4. For benchmark runs, apply `governance/ai/core/SDTK_BENCHMARK_OQ_POLICY.md`: keep benchmark-expected open questions explicitly OPEN and do not silently resolve them in BA output.
|
|
65
|
-
5. If anything is unclear, record OQ-xx in BA_SPEC "Open Questions" and escalate to PM.
|
|
65
|
+
5. If anything is unclear, record OQ-xx in BA_SPEC "Open Questions" and escalate to PM. OQs the customer must answer through their Q&A Excel sheet go there with `/customer-qa-sheet` (answers come back keyed by OQ id).
|
|
66
66
|
6. Update `SHARED_PLANNING.md` + `QUALITY_CHECKLIST.md` Phase 2.
|
|
67
67
|
7. Handoff: suggest user run `/pm` to proceed with PRD planning.
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: customer-qa-sheet
|
|
3
|
+
description: Use when open questions (OQ-xx, 確認事項, 仕様確認) must go to a customer through their hand-maintained Q&A or issue-tracking Excel sheet (one numbered question per row, an answer column), when reading the customer's answers back into the spec / decision log, or when writing replies to questions the customer asked in that sheet.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Input
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
# SDTK-SPEC Customer Q&A Sheet: questions, answers, replies
|
|
10
|
+
|
|
11
|
+
The sheet is a customer-facing record. Every row you add is read by the customer and answered in
|
|
12
|
+
writing, so a row must be correct, not a duplicate, in the sheet's own style, and approved by the
|
|
13
|
+
person before it lands. The workbook itself is hand-maintained.
|
|
14
|
+
|
|
15
|
+
**REQUIRED SUB-SKILL:** `sdtk-xlsx-safe-edit` — preflight, backup, XML route for every write. Never save
|
|
16
|
+
this workbook through Excel or openpyxl: that rewrites fonts and row heights on every other sheet.
|
|
17
|
+
|
|
18
|
+
## Critical Constraints
|
|
19
|
+
|
|
20
|
+
1. **Nothing is written before the person approves the exact row values** (or the exact reply text).
|
|
21
|
+
"The PM approved the wording" is not approval of row values, placement or numbering.
|
|
22
|
+
2. **Never overwrite a cell that holds text.** New questions go into empty rows; replies are appended
|
|
23
|
+
after existing answer text. The customer's answer text is never edited.
|
|
24
|
+
3. **Search before asking.** Every candidate is checked against the existing rows; overlap with an
|
|
25
|
+
unanswered row → reference it or drop the question; answered already → do not ask again.
|
|
26
|
+
4. **Rows and OQs are matched by id** — the `OQ-xx` in an OQ column or in the question text, and the
|
|
27
|
+
sheet's No — never by row position.
|
|
28
|
+
5. **Facts stated to the customer come from the code that runs, logs or a measurement**, not from
|
|
29
|
+
comments or design documents.
|
|
30
|
+
|
|
31
|
+
## Project profile (read first)
|
|
32
|
+
|
|
33
|
+
Project facts live in the project repository, not here: find `qa_sheet_profile.md` by file search over the
|
|
34
|
+
working tree (it may be untracked; `git ls-files` misses it). It names the workbook, sheet, header row,
|
|
35
|
+
column map, our contact name, the customer's, category values, numbering format, answer-block format,
|
|
36
|
+
ordering rule, and a ```json block the script reads. No profile → build one from
|
|
37
|
+
`.claude/skills/customer-qa-sheet/references/PROFILE_TEMPLATE.md` by reading the sheet, and confirm it with
|
|
38
|
+
the person.
|
|
39
|
+
|
|
40
|
+
Script: `.claude/skills/customer-qa-sheet/scripts/oq_sync.py` (`oqs`, `sheet`, `export`, `answers`, `write`).
|
|
41
|
+
It reads the workbook from a copy with openpyxl and writes only through `sdtk-xlsx-safe-edit`'s `xlsx_xml_edit`
|
|
42
|
+
(the sheet part changes, every other part stays byte-identical, a `.bak` is kept).
|
|
43
|
+
|
|
44
|
+
## Process
|
|
45
|
+
|
|
46
|
+
Read the profile, then follow the section that matches the request: A (adding questions), B (reading answers)
|
|
47
|
+
or C (replying to the customer). Each ends with a draft for the person before anything is written.
|
|
48
|
+
|
|
49
|
+
### A. Adding questions
|
|
50
|
+
|
|
51
|
+
1. **Read the sheet read-only** (`oq_sync.py sheet --profile …`): the last 5–10 filled rows for style, the
|
|
52
|
+
first empty number, pre-numbered empty rows, where data validation / conditional formatting end.
|
|
53
|
+
2. **Collect the candidates.** From the spec: `oq_sync.py export --profile … --spec docs/specs/BA_SPEC_<KEY>.md
|
|
54
|
+
--out <draft>.md` lists every OPEN OQ not yet in the sheet with a proposed No and row, and the rows that share
|
|
55
|
+
words with it ("possibly related" — rows written before OQ ids were used carry no id); OQs already in the
|
|
56
|
+
sheet are shown with their No (answered or not). Other candidates come from the person or the work.
|
|
57
|
+
3. **Check every candidate against existing rows.** Search the question, detail and function columns for
|
|
58
|
+
the same topic. Overlap with an unanswered row → reference it (e.g. "関連 No024") or drop the question.
|
|
59
|
+
4. **Keep only questions that block work:** the spec leaves a user-visible or data-affecting behaviour
|
|
60
|
+
undefined, or the spec cannot be built as written and a deviation needs consent. Do not ask what the spec
|
|
61
|
+
states clearly. A mockup is an illustration, not a decision; when a cell and a mockup disagree, quote
|
|
62
|
+
both. Before asking about a limit or rule in your own system, read the code that enforces it and state
|
|
63
|
+
what it really counts.
|
|
64
|
+
5. **Write each row's text in this shape** (the customer's language and the sheet's style):
|
|
65
|
+
1. context, 1–2 sentences: the spec sheet / section it comes from, and the current behaviour stated plainly
|
|
66
|
+
("not implemented yet", "limited to 20 in total");
|
|
67
|
+
2. the question; several points → one numbered item each — (1), (2)… — each answerable alone;
|
|
68
|
+
3. choices when they help: (A), (B)… with our proposal marked as the profile says (e.g. "… 弊社案");
|
|
69
|
+
4. a closing ask (e.g. "どちらがよろしいでしょうか。").
|
|
70
|
+
Each row carries its `OQ-xx` (OQ column, or the profile's `oq_tag` at the start of the text). Customer text
|
|
71
|
+
carries no code paths, no internal ticket ids, and no apology or correction of an earlier document unless
|
|
72
|
+
the person asks for one.
|
|
73
|
+
6. **Draft for review:** the export draft completed with, per row, every column value exactly as it will be
|
|
74
|
+
written, the existing rows on the same topic (or "none"), and a translation for the reviewer (not written to
|
|
75
|
+
Excel). End with the open choices and a default for each (start number, one row vs one row per point,
|
|
76
|
+
order, column values, date).
|
|
77
|
+
7. **Write only after the person approves.** Save the approved rows as JSON (`[{"row", "oq", "values": {<profile
|
|
78
|
+
column key>: text}}]`), run `oq_sync.py write --profile … --rows <file>` (dry run), then with `--apply`.
|
|
79
|
+
The script refuses rows that already hold a question, OQs already in the sheet, unknown columns, and any
|
|
80
|
+
value in the answer column. Report: rows written, No, backup path.
|
|
81
|
+
|
|
82
|
+
### B. Reading the customer's answers
|
|
83
|
+
|
|
84
|
+
1. `oq_sync.py answers --profile … --snapshot <last>.json --save-snapshot <new>.json` — rows whose answer is
|
|
85
|
+
non-empty and changed since the last snapshot, each with its `OQ-xx` ids (`unmatched: true` when the row
|
|
86
|
+
names none). Keep the snapshot next to the profile.
|
|
87
|
+
2. Per row: question, answer verbatim, the decision it implies, the specs or tasks it changes, and whether it
|
|
88
|
+
is ambiguous. Ambiguous → draft a follow-up row ("関連 No…") under section A. Any statement about how your
|
|
89
|
+
system works follows constraint 5.
|
|
90
|
+
3. **Propose** the spec update, keyed by OQ id: in BA_SPEC §5.2 the row's Status → `RESOLVED`, Resolution →
|
|
91
|
+
the decision + `(<sheet> No<n>, <answer date>)`; a dated row in the decision log. Show the patch; apply it
|
|
92
|
+
after the person agrees. Unmatched rows are reported, never guessed onto an OQ.
|
|
93
|
+
|
|
94
|
+
### C. Replying to a question the customer asked
|
|
95
|
+
|
|
96
|
+
1. Establish every fact you will state from the code that executes, logs or a measurement; note which of
|
|
97
|
+
these each fact rests on. Behaviour you did not measure is stated as design, not as observed.
|
|
98
|
+
2. When the person's statement contradicts the code (for example which version uses which path), write what
|
|
99
|
+
the code does and say so explicitly in the draft.
|
|
100
|
+
3. Draft the reply in the answer-block format from the profile (e.g. `YYYY/MM/DD <our name>` + newline +
|
|
101
|
+
text), in the sheet's existing style: 1–2 lines per item; several product versions → "path 1 / path 2"
|
|
102
|
+
with one note on top; commands short, one per line. Show the draft unless the person approved this exact
|
|
103
|
+
text.
|
|
104
|
+
4. Write it **after** any existing text in the answer cell (XML route of `sdtk-xlsx-safe-edit`), never over it.
|
|
105
|
+
|
|
106
|
+
## Red flags — stop
|
|
107
|
+
|
|
108
|
+
| Thought | Reality |
|
|
109
|
+
|---|---|
|
|
110
|
+
| "The PM approved the wording, just write it" | Approved wording ≠ approved row values / placement / a reply you composed. Show what you will write unless it was approved verbatim. |
|
|
111
|
+
| "Save once through Excel, it's quicker" | Every other sheet's layout changes. XML route. |
|
|
112
|
+
| "This question is new" | You have not searched the existing rows yet. |
|
|
113
|
+
| "The answers are in the same order as our OQs" | Match by OQ id; report rows without one. |
|
|
114
|
+
| "The mockup shows it, so it's required" | Ask only if the spec text is silent or contradicts it. |
|
|
115
|
+
| "I know how the app behaves" / "the design doc says so" | Read the code path that runs; quote what it counts or returns. |
|