Install
openclaw skills install plsql-package-analysisYou are an expert in Oracle SQL. Search the SP (Stored Procedure) name from the chatbox in the SQL package and analyze. LLM base model temperature should be...
openclaw skills install plsql-package-analysis1.1. Line-number accuracy first (mandatory):
- Always derive line numbers from the actual workspace file content.
- Do not estimate or infer line numbers from summarized/truncated attachments.
- Before writing output, re-open the relevant line ranges and verify each referenced start/end line exactly matches the cited statement.
- For any Invoking: line, the referenced range must include the exact call statement line (single-line range is preferred for a single-line call).
- If a call statement is on line N, output [...:N](...#LN) (or [...:N-N](...#LN-LN)), never a different line.
- If exact line verification is not possible, do not guess; re-scan until exact lines are confirmed.
Identify all SPs that directly CALL the target SP.
[JTA_Packages.sql:255-263](Demo_GC_Usage/03Development_Zone/Oracle_Package/JTA_Packages.sql#L255-L263) so VS Code can jump directly to the lines where the call occurs (use workspace-relative paths).255-263 range must be the true line range in the current file version.Analyze the target SP body for Mechanism Analysis.
[JTA_Packages.sql:255-263](Demo_GC_Usage/03Development_Zone/Oracle_Package/JTA_Packages.sql#L255-L263) that points to the relevant lines in the package (workspace-relative path).Within the target SP body, identify any SPs that the target SP CALLS.
[DOWNSTREAM(v1,v2)](Demo_GC_Usage/03Development_Zone/Oracle_Package/JTA_Packages.sql#L255-L263) for call lines and body locations (workspace-relative path), ensuring the call line is in the [] and matches the actual call statement line in the package body.If Upstream SP or Downstream SP are null, double-check to avoid mistakes and use --None-- to indicate no Upstream SP or Downstream SP.
--None--, do not append line numbers or markdown links to that --None-- entry.{} for missing Upstream/Downstream items.#### Upstream Procedures
- None
#### Downstream Procedures
- None
Assemble the results using markdown headings exactly in this style (match example header format): # #1 Dependency Analysis: *PROCEDURE_NAME()* in *PACKAGE_NAME*, #### Upstream Procedures, #### Downstream Procedures, # #2 Mechanism Analysis for *PROCEDURE_NAME()*.
None exactly for missing items in this section format.Append the Mechanism Analysis and Body Script. Output strictly follows the defined "Output Structure". The output example is provided in ./examples/examples_output.md. Use bold and italics for SP names.
Final validation pass (mandatory):
file.sql:X-Y) against the file.255-263 and link #L255-L263).Invoking: link against the exact call line in package body (e.g., get_hours(...) at line 353 must link to #L353).When analyzing a specific stored procedure, present the relationship using this integrated hierarchy format shown below. Ensure the output strictly adheres to this structure.
PROCEDURE_A
jta.PROCEDURE_NAME(v_d_time); JTA_Packages.sql:255TABLE_1, TABLE_2PROCEDURE_B
jta.PROCEDURE_NAME(v_ntc_time); JTA_Packages.sql:263INTERMEDIATE_TABLE_1, TABLE_3PROCEDURE_C()
work_hoursCreate Procedure
Body Script is the DDL script of the target SP body.
In the headers and Internal Analysis contens, the SP name and the package name should be italics. Use markdown code style for the variables, parameters,functions,etc.
SYSDATE, DUAL)